Skip to content

Instantly share code, notes, and snippets.

View pandada8's full-sized avatar
🐟
摸鱼

pandada8 pandada8

🐟
摸鱼
View GitHub Profile
@pandada8
pandada8 / wallpaper.sh
Created July 20, 2015 01:45
wallpaper
#!/bin/sh
shopt -s nullglob
cd ~/Wallpaper
while true; do
files=()
for i in *.jpg *.png; do
[[ -f $i ]] && files+=("$i")
done
range=${#files[@]}
@pandada8
pandada8 / zerotier-one
Last active August 28, 2015 05:53
PKGBUILDS
# Maintainer: Harry Jeffery <harry|@|exec64|.|co|.|uk>
# Contributor: Alex Jordan <[email protected]>
pkgname=zerotier-one
pkgver=1.0.5
pkgrel=1
pkgdesc="Creates virtual Ethernet networks of almost unlimited size."
arch=('i686' 'x86_64')
url="https://www.zerotier.com/index.html"
license=('GPL3')
groups=()
import subprocess
import tempfile
import os
import sys
def getUpdateList(rsync_source, target_source):
files = subprocess.check_output(['/usr/bin/rsync', '--no-motd', '-havn', '--exclude=Sources', rsync_source, target_source]).decode()
print(files)
ret = []
for i in *.rar;do
unrar x "$i" -p扶她奶茶;
name=$(basename "$i" .rar)
7z a -mx=9 "$name".zip "$name"
rm -rf "$name"
done;
sun7i#version
U-Boot 2011.09-rc1-00000-gf75abad-dirty (Oct 21 2013 - 18:44:22) Allwinner Technology
arm-linux-gnueabihf-gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
GNU ld (GNU Binutils for Ubuntu) 2.22
sun7i#printenv
baudrate=115200
boot_fastboot=fastboot
boot_normal=bootm 48000000
boot_recovery=sunxi_flash read 40007800 recovery;boota 40007800
6in4
6to4
ChinaDNS
agentx1
aria2
bandwidth-pandorabox
base-files
blkid
block-mount
busybox
@pandada8
pandada8 / Hitman
Last active December 22, 2015 15:19 — forked from zealic/Email
Please use CAPTCHA as additional message
^%5e(u@ppp%>`C#vp8p9p#Hpppp"K`;|cpwHp*+5psz|:v}F"Dwr%BaA^H'pu@a>
2z|eC9yg*~x7;7~a8u'v6H"Zpvys:tpty?c~zIg`*fFv8x73{g4F:%}fr<_;Hq!#
+F<9=8+dz4Fv`?H?@4A~%|CJ4q=x"ah:`D*>=~64sH*g<ep;'@wA&tG4s~=f+4+w
e96fc`}A>{C?);|!8$@:_%ruJ7B=_+tz*dc+Cqp8#&hHHJf!Je$ep4<>=!$7EtfD
}>s6I+h%u98qf@;#v*e{yw~#}K%w&tKt|6)|Dr;sBy)(8%u"pD@$BvuCzf2DqAH|
_c%:fbd&rz^=6_x3>*|D2t;_shre~~v}<?zB(q;gGs7uD2+@:2cIxr3h$eE4Fy4I
3"a_u)J:cA^cvbD}#~{~{*`B{*!&*}c%Ehu*fd8I`HKayyJ4C=)tz>Ewd4(+ef!z
p&wyx&4J$%DI}tI_4azK@bz;+HDe}eG<<^d<4@q_|DFFra?q:@q|y`eF@?*cKH2Z
9"5^?rFa>ZIy<hr!&vtvJ<hCf`>_}xGzs*2ud#cg^%6"x9?~pppppy|u*fuZ84wH
ppv:p^tsppqK_3bDD4#?ZHxpppppqu=2
#!/bin/python3
import requests
import re
import os
import requests
import json
def getIp():
s = os.popen('ssh [email protected] ifconfig').read()
ip = re.search(r'eth0.2[\w\W]+?(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})', s).groups()[0]
INTERFACE="eth0.2"
DOMAIN=""
SUBDOMAIN=$(echo $DOMAIN | cut -d. -f1)
IP=$(ifconfig $INTERFACE | awk '/inet addr/ {gsub("addr:", "", $2); print $2}')
echo "get ip address $IP";
ORIGIN=$(curl "119.29.29.29/d?dn=$DOMAIN" 2>/dev/null)
echo "get origin ip address $ORIGIN"
DOMAIN_ID=""
RECORD_ID=""
TOKEN=""
@pandada8
pandada8 / readme.md
Last active April 11, 2016 15:01
Setting gpg keys with yubikey
  1. Buy a yubikey 4

  2. install the community/yubikey-personalization using pacman.

  3. Unlock the yubikey withykpersonalize

      # ykpersonlize -m86
    

now, the gpg smart card function is enabled.

  1. prepare the gpg.conf