Skip to content

Instantly share code, notes, and snippets.

View rahimnathwani's full-sized avatar

Rahim Nathwani rahimnathwani

View GitHub Profile
@rahimnathwani
rahimnathwani / setup.sh
Last active November 24, 2020 06:26 — forked from bradp/setup.sh
New Mac Setup Script
echo "Creating an SSH key for you..."
ssh-keygen -t rsa -b 2048
echo "Please add this public key to Github \n"
echo "https://github.com/account/ssh \n"
echo "and to virtual servers\n"
read -p "Press [Enter] key after this..."
echo "Installing xcode-stuff"
xcode-select --install
# wget https://github.com/xtaci/kcptun/releases/download/v20170525/kcptun-linux-amd64-20170525.tar.gz
# tar xvf kcptun-linux-amd64-20170525.tar.gz
mv server_linux_amd64 /usr/local/bin/kcptun_server
mv /usr/local/bin/server_linux_amd64 /usr/local/bin/kcptun_server
sudo mkdir -p /etc/kcptun
sudo bash -c "cat <<EOT > /etc/kcptun/server_conf.json
{
\"listen\": \":21\",
\"target\": \"127.0.0.1:20001\",
@rahimnathwani
rahimnathwani / gist:57f1a5743566d85e9a4c
Last active October 12, 2015 04:31 — forked from andrewlkho/gist:23b5b5bcf853b3473421
How to install debian to a USB drive for use on a MacBook Air

This guide shows how to install debian so that it can be booted and run from a USB drive on a MacBook Air. I use this to store a copy of my PGP master keypair. Networking is deliberately not configured and all operations requiring the master keypair (such as signing other people's keys) are done only on this system. See the debian wiki for information on how to separate your key. Note that this is slightly different to using a live CD. It is not possible to tailor the base configuration of a live CD to one's own requirements, and they frequently automatically connect to the nearest local network. Nevertheless, if you wish to use a live CD instead, I recommend Tails. Arturo Filastò has written a similar guide for Tails.

The method I use requires [VirtualBox][4], which should also contain a working debian installation itself. An alternative method would be to use [debootstrap][5] b

from __future__ import division
from scikits.audiolab import flacread
from numpy.fft import rfft, irfft
from numpy import argmax, sqrt, mean, diff, log
from matplotlib.mlab import find
from scipy.signal import blackmanharris, fftconvolve
from time import time
import sys
from parabolic import parabolic

Twitter公式クライアントのコンシューマキー

Twitter for iPhone

Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU

Twitter for Android

Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for iPad

Consumer key: CjulERsDeqhhjSme66ECg