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 termite.conf
[options]
scroll_on_output = false
scroll_on_keystroke = true
audible_bell = false
mouse_autohide = false
allow_bold = true
dynamic_title = true
urgent_on_bell = true
clickable_url = true
font = monospace 11
View keybase.md

Keybase proof

I hereby claim:

  • I am bigeagle on github.
  • I am bigeagle (https://keybase.io/bigeagle) on keybase.
  • I have a public key whose fingerprint is 15CC 6A61 738B 1599 0095 E256 CB67 DA7A 865B AC3A

To claim this, I am signing this object:

View udevedu-autolock.py
#!/usr/bin/env python2
# -*- coding:utf-8 -*-
from __future__ import print_function, division, unicode_literals
from udevedu.utils import invoke
import os
def init():
print("Monitoring Yubikey Remove Event")
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"
@bigeagle
bigeagle / autorenew.ini
Created Mar 5, 2016
Let'sencrypt Auto-Renew
View autorenew.ini
email = admin@example.com
domains = d1.example.com,d2.example.com
webroot-path = /home/wwwroot/letsencrypt
@bigeagle
bigeagle / fishroom2danmaku.py
Created Feb 29, 2016
Fishroom to TUNA Danmaku
View fishroom2danmaku.py
#!/usr/bin/env python2
# -*- coding:utf-8 -*-
from __future__ import print_function, division, unicode_literals
import requests
import hashlib
FISHROOM_TOKEN_ID = ""
FISHROOM_TOKEN_KEY = ""
FISHROOM_ADDR = "https://fishroom.tuna.moe/api/messages"
@bigeagle
bigeagle / conky.conf
Created Dec 31, 2013
conky for i3-bar
View conky.conf
### Conky configuration file
## Output is printed to the console -> i3bar
# Modified: 27.11.2011 - mseed : http://www.fastlinux.eu
# Modified: 10.09.2012 - Sagar Behere
## No output to X <yes/no>
out_to_x no
## Create own window to draw <yes/no>
View tornado_motor_test.py
#!/usr/bin/env python2
# -*- coding:utf-8 -*-
import tornado.ioloop
import tornado.web
import tornado.gen
import motor
import json
class PersistantHandler(tornado.web.RequestHandler):
View primes.scala
object Main extends App{
def primes(nums: Stream[Int]): Stream[Int] =
Stream.cons(nums.head, primes(nums.tail filter (_ % nums.head > 0)))
val p = primes(Stream.from(2))
println(p apply 201314)
}
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
You can’t perform that action at this time.