Skip to content

Instantly share code, notes, and snippets.

@Map987
Map987 / google_drive_to_machine.md
Created October 16, 2024 11:21 — forked from anoopkcn/google_drive_to_machine.md
Downloading google drive data

Get the file ID:

  1. Go to your Google Drive in your browser.
  2. Right-click (or control-click) the file you want to download and click “Get shareable link”. The link looks like this: https://drive.google.com/open?id=XXXXX. Make note of the file ID “XXXXX”; you will be needing it below.

Get an OAuth token:

  1. Go to OAuth 2.0 Playground
  2. In the “Select the Scope” box, scroll down, expand “Drive API v3”, and select https://www.googleapis.com/auth/drive.readonly
  3. Click “Authorize APIs” and then “Exchange authorization code for tokens”. Copy the “Access token”; you will be needing it below.
@Map987
Map987 / -untitled57-ipynb-ipynb.ipynb
Created October 14, 2024 01:17
-untitled57-ipynb-ipynb.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Map987
Map987 / cron.python
Created September 11, 2024 02:30 — forked from retasretas/cron.python
SlackにDLsiteとDMM同人の販売本数をスクレイピングして投稿するスクリプト
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import scraperwiki
import requests
import re
from pyquery import PyQuery as pq
# 3rd party library
try:
// ==UserScript==
// @name Abema 区域限制
// @version 1.0.0
// @run-at document-end
// @namespace Violentmonkey Scripts
// @match https://abema.tv/*
// @grant none
// ==/UserScript==
Object.defineProperty(__CLIENT_REGION__, 'isAllowed', {
get: () => true
@Map987
Map987 / gist:8d58121b7443cab517cf46cf1859690a
Created July 13, 2024 00:48 — forked from wacko/gist:5577187
SSH between Mac OS X host and Virtual Box guest

On Mac OS (host):

Shutdown your VM and do:

VirtualBox > Settings > Network > Add (you will get vboxnet0)

On a terminal ifconfig will show you new interface vboxnet0

VM's Settings > System > check "Enable I/O APIC." VM's Settings > Network > Adapter 2 > host-only vboxnet0

@Map987
Map987 / anipota.rb
Created June 29, 2024 09:33 — forked from ha4gu/anipota.rb
アキバ総研 (https://akiba-souken.com/) 様の新作アニメリストページから情報を取得し、録画サーバ2台での録画予約リストを作成するための個人的なスクリプト。
### ここから依存パッケージ定義パート
# NokogiriとChronicをgemでインストールしておくように。
require 'open-uri'
require 'nokogiri'
require 'date'
require 'time'
require "active_support/all"
require 'chronic'
@Map987
Map987 / foobar2000-dsd-sacd.md
Created April 30, 2024 02:59 — forked from milnak/foobar2000-dsd-sacd.md
[Foobar 2000 DSD and SACD support] Guide to setting up Foobar2000 player for hi-res audio (DSF, DFF, SACD, ISO)

Foobar2000 DSD and SACD support

I've successfully followed these steps to get DSD (.dsf filetype) and SACD (.iso filetype) playing at high bit rate using foobar2000 on my S.M.S.L M500 DAC.

Introduction

DSD stands for Direct Stream Digital and it is a high-definition lossless audio format with a twist. PCM signal solutions (like FLAC, TTA or APE) measure a set of bits multiple times per second to capture the audio data, hence the 16/24-bit parameter. On the other hand, DSD uses only one bit but samples it 2.8 million times a second to capture the audio signal.

ASIO Output (Required)