Skip to content

Instantly share code, notes, and snippets.

View pjq's full-sized avatar

Jianqing Peng pjq

View GitHub Profile
@pjq
pjq / auto.sh
Last active August 29, 2015 13:58 — forked from rixtox/openssl.py
#!/bin/sh
i=0
server=$1
mkdir -p tmp/${server}
while [ $i -lt 100000 ];do
file=`date "+%y%m%d%H%M"`.$i
echo "python ssl.py $1 >tmp/${server}/${file}"
python ssl.py ${server} >tmp/${server}/${file}
sleep 1
@ragusa87
ragusa87 / bluetooth-a2dp
Last active December 17, 2024 15:51
Enable bluetooth A2DP on Raspberry-PI via pulseaudio. To install, edit /etc/udev/rules.d/99-input.rules and add the line: SUBSYSTEM=="bluetooth", RUN+="/usr/lib/udev/bluetooth" Then save this script as /usr/lib/udev/bluetooth and set it executable. Bluetooth devices must be linked first.
#!/bin/bash
# This script is called by udev when you link a bluetooth device with your computer
# It's called to add or remove the device from pulseaudio
#
#
# Output to this file
LOGFILE="/var/log/bluetooth_dev"
# Name of the local sink in this computer
@DavidToca
DavidToca / git.plugin.zsh
Created July 10, 2012 22:17
oh-my-zsh git alias
# Aliases
alias g='git'
compdef g=git
alias gst='git status'
compdef _git gst=git-status
alias gl='git pull'
compdef _git gl=git-pull
alias gup='git fetch && git rebase'
compdef _git gup=git-fetch
alias gp='git push'