Skip to content

Instantly share code, notes, and snippets.

View maekawatoshiki's full-sized avatar
🍀
:)

Toshiki Maekawa maekawatoshiki

🍀
:)
View GitHub Profile
@kennwhite
kennwhite / vpn_psk_bingo.md
Last active May 21, 2026 11:48
Most VPN Services are Terrible

Most VPN Services are Terrible

Short version: I strongly do not recommend using any of these providers. You are, of course, free to use whatever you like. My TL;DR advice: Roll your own and use Algo or Streisand. For messaging & voice, use Signal. For increased anonymity, use Tor for desktop (though recognize that doing so may actually put you at greater risk), and Onion Browser for mobile.

This mini-rant came on the heels of an interesting twitter discussion: https://twitter.com/kennwhite/status/591074055018582016

@jiaaro
jiaaro / installing_pyaudio.md
Last active May 2, 2024 10:15
How to install PyAudio into a VirtualEnv on Mac OS X 10.10

Install portaudio using homebrew (or method of your choice)

brew install portaudio

create $HOME/.pydistutils.cfg using the include and lib directories of your portaudio install:

[build_ext]
@naosim
naosim / renameGitBranch.md
Last active May 5, 2024 01:14
ローカルとリモートのブランチ名を変更する

#ローカルとリモートのブランチ名を変更する

以下、ブランチ名を hoge から foo に変更する例

  • ローカルのブランチ名変更
git branch -m hoge foo
  • リモートのブランチを消す
#include <string>
#include <memory>
#include <exception>
#include <type_traits>
#include <cstdint>
#include <cctype>
#include <cstddef>
#include <cstdlib>
#include <cstdio>
#include <cstring>
@Kesin11
Kesin11 / webspeech.html
Created August 27, 2013 07:30
Web Speech API (Greater than Chrome 25 only)
<html>
<head>
<title>Web Speech API</title>
<meta charset="utf-8">
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
</head>
<body>
<input type="button" value="音声認識開始" onclick="startRecognition();"/>
<input type="button" value="音声認識終了" onclick="recognition.stop();"/>
連続認識<input id="continuous" type="checkbox">
@YukiSakamoto
YukiSakamoto / mandelbrot.c
Created July 25, 2013 16:03
Mandelbrot set by C language.
#include <stdio.h>
#include <math.h>
const int times = 200;
const double x_max = 1;
const double x_min =-2;
const double y_max = 1;
const double y_min =-1;
const double dx = 0.02;
const double dy = 0.02;
@KartikTalwar
KartikTalwar / Documentation.md
Last active May 9, 2026 23:00
Rsync over SSH - (40MB/s over 1GB NICs)

The fastest remote directory rsync over ssh archival I can muster (40MB/s over 1gb NICs)

This creates an archive that does the following:

rsync (Everyone seems to like -z, but it is much slower for me)

  • a: archive mode - rescursive, preserves owner, preserves permissions, preserves modification times, preserves group, copies symlinks as symlinks, preserves device files.
  • H: preserves hard-links
  • A: preserves ACLs