Skip to content

Instantly share code, notes, and snippets.

@sohsatoh
sohsatoh / main.py
Last active December 21, 2021 13:10
An interactive script to delete time machine backup(s) selectively
#!/usr/bin/env python3
from pick import Picker
import subprocess
# Install pick first ("pip install pick")
print("Retrieving the backup destination...")
dest = subprocess.check_output("sudo tmutil machinedirectory", shell=True).decode("utf-8")
print("Retrieving the backup list...")
@sohsatoh
sohsatoh / userscript.js
Last active October 9, 2021 15:00
Paizaの結果一覧ページをランク順、点数順にソートするユーザースクリプト
// ==UserScript==
// @name Sort Paiza Results
// @namespace https://satoh.dev/
// @version 0.1
// @description This will sort the Paiza results by rank. Also sort the results for each question of each rank by score.
// @author Soh Satoh
// @match https://paiza.jp/career/mypage/results
// @icon https://www.google.com/s2/favicons?domain=paiza.jp
// @grant none
// ==/UserScript==

Keybase proof

I hereby claim:

  • I am sohsatoh on github.
  • I am sohsatoh (https://keybase.io/sohsatoh) on keybase.
  • I have a public key ASAjZYqMI0RuWol027LNxo-hkW2BY_dk3ml4psCvIG37VQo

To claim this, I am signing this object:

@sohsatoh
sohsatoh / README.md
Created December 8, 2020 17:54
エンジニア課題解法 - dely, Inc.

新卒エンジニア課題解法 - dely, Inc

概要

まず、私が課題を解くにあたって使用した言語は Javascript である。 理由としては、

  • ブラウザで動作すること
  • ある程度慣れている言語であること
@sohsatoh
sohsatoh / proxy.pac
Last active September 11, 2020 17:06
Adblock proxy for Japanese
var DIRECT = "DIRECT";
var PROXY = "PROXY 127.0.0.1:8119";
var blacklist = [
"pagead2.googlesyndication.com",
"exosrv.com",
"coremetrics.com",
"100651.advision-adnw.jp",
"2.chmato.me",
"2mdn.info",
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ACPI</key>
<dict>
<key>Add</key>
<array>
<dict>
<key>Comment</key>
@sohsatoh
sohsatoh / YodoGet.js
Last active April 30, 2020 06:02
Gmailからヨドバシカメラでの購入金額合計を取得、スプレッドシートに記入するGoogle Apps Script
function getTotalOnYodobashi() {
//ベースコード:https://note.com/ky120930/n/n97cd39a4ad2e
//スプレッドシートの内容をリセット
var sheet = SpreadsheetApp.getActiveSheet().clear();
// Gmailの検索条件
var subject = 'ヨドバシ・ドット・コム:ご注文商品出荷のお知らせ';
@sohsatoh
sohsatoh / gist:f6bbcc3483cfdf6088f4251e9ff2613b
Created April 30, 2020 05:56
Gmailからヨドバシカメラでの購入金額合計を取得、スプレッドシートに記入するGoogle Apps Script
We couldn’t find that file to show.
@sohsatoh
sohsatoh / unipass.js
Created April 29, 2020 13:37
UNIVERSAL PASSPORTから、再履修科目の検索、評定一覧が表示できるスクリプト
document.body.appendChild((function(){
var jq = document.createElement("script");
jq.src = '//ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js';
return jq;
})());
if(confirm('OKで評定検索、キャンセルで再履修科目の検索')){
searchGrade();
}else{
searchRepeat();
SpringBoard PID is 2516
[Error] initing exception with build: count=build_commit_count: override me! sha=build_commit_sha: override me!
[Error] initing exception with build: count=7 sha=3efed152b1ccdcec3a9950c0eaec273e58c04128
[Error] initing exception with build: count=build_commit_count: override me! sha=build_commit_sha: override me!
[Error] initing exception with build: count=7 sha=3efed152b1ccdcec3a9950c0eaec273e58c04128
[Error] Double exception! Error in line=222
libc++abi.dylib: terminating with uncaught exception of type tihmstar::TKexception: std::exception