Skip to content

Instantly share code, notes, and snippets.

bigeagle bigeagle

Block or report user

Report or block bigeagle

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View iptables.sh
iptables -N sshban
iptables -A sshban -p tcp -m tcp --dport 22 -m state --state NEW -m recent --set --name DEFAULT --rsource
iptables -A sshban -p tcp -m tcp --dport 22 -m state --state NEW -m recent --update --seconds 60 --hitcount 4 --name DEFAULT --rsource -j DROP
View tunet.sh
#!/bin/bash
USER="username"
PASSWORD="password"
PASSWORD=`echo -n $PASSWORD|md5sum|cut -d' ' -f1`
curl 'https://net.tsinghua.edu.cn/do_login.php' -X 'POST' -H 'Origin: http://net.tsinghua.edu.cn' \
--data "action=login&username=${USER}&password={MD5_HEX}${PASSWORD}&ac_id=1"
View keymap_bigeagle.c
#include "keymap_common.h"
#include "led.h"
#include "action_layer.h"
/*
* HHKB Layout
*/
const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* 0: Default layer
* ,-----------------------------------------------------------.
@bigeagle
bigeagle / QuickPhrase.mb
Last active Aug 29, 2015
Fcitx Quick Phrase
View QuickPhrase.mb
tj ☯
' 『
' 』
" “
" ”
' ‘
' ’
0 零
1 壹
@bigeagle
bigeagle / vimrc.vim
Last active Aug 29, 2015
vim-config-sample
View vimrc.vim
if !exists("g:vimrc_loaded")
" 设置颜色主题为 molokai
colorscheme molokai
let g:molokai_original = 1
if has("gui_running")
" 设置 gvim 的外观
set guioptions-=T "隐藏工具栏
set guioptions-=L
set guioptions-=r
set guioptions-=m
@bigeagle
bigeagle / stylish.css
Created May 3, 2015
Suzumiya Haruhi as Google Background
View stylish.css
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("www.google.com") {
@namespace url(http://www.w3.org/1999/xhtml);
#cnt {
background: url(https://dl.dropboxusercontent.com/u/4574342/SuzumiyaHaruhiNoYuutsu3.png) fixed no-repeat 100% 100% transparent;
}
}
View pacman -Qe
abook-vcard 0.6.0pre2-1
ack 2.14-1
acroread-fonts-systemwide 11.0.10-1
adobe-source-han-sans-cn-fonts 1.001-1
adobe-source-han-sans-jp-fonts 1.001-1
aisleriot 3.14.2-1
aliedit 1.0.3.20-2
alsa-utils 1.0.29-1
android-sdk-platform-tools r22-2
android-tools 5.0.2_r1-1
@bigeagle
bigeagle / thu6tunnel.sh
Created Feb 6, 2015
ISATAP tunnel for Tsinghua University
View thu6tunnel.sh
#!/bin/bash
### begin user configuration
# thu6tunnel eth0 start
# thu6tunnel eth0 stop
# iface - interface name that is to be created for the 6in4 link
iface=sit1
touch /tmp/6tunnel
View icecast.sh
gst-launch-1.0 \
v4l2src device=/dev/video1 ! video/x-raw,width=864,height=480 ! videoconvert ! \
clockoverlay shaded-background=true time-format="%H:%M:%S" ! vp8enc ! tee name=videoTee \
pulsesrc ! vorbisenc ! tee name=audioTee \
webmmux name=streamMux ! shout2send ip=IP port=PORT password=PASSWORD mount=/tuna.webm \
webmmux name=fileMux ! filesink location=tuna.webm \
audioTee. ! queue ! streamMux.audio_0 \
videoTee. ! queue ! streamMux.video_0 \
audioTee. ! queue ! fileMux.audio_0 \
videoTee. ! queue ! fileMux.video_0
@bigeagle
bigeagle / tunet.go
Last active Sep 2, 2015
TUNET connector
View tunet.go
package main
import (
"bufio"
"crypto/md5"
"crypto/rc4"
"encoding/base64"
"flag"
"fmt"
"io"
You can’t perform that action at this time.