Skip to content

Instantly share code, notes, and snippets.

pandada8 pandada8

Block or report user

Report or block pandada8

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
@pandada8
pandada8 / readme.md
Last active May 21, 2019
完全使用 Yubikey 进行密码管理
View readme.md

完全使用 Yubikey 进行密码管理

目标:不依赖第三方服务

密码存储和管理

使用 gopass 管理密码,gopass 是 https://www.passwordstore.org/ 的 go 语言实现。密码会被加密之后存储到 git repo 里,多个设备间使用 git 进行同步。

Chrome && Firefox

@pandada8
pandada8 / build.sh
Created Apr 19, 2019
Build ubuntu kernel package with your own patch
View build.sh
# checkout repo
git clone git://kernel.ubuntu.com/ubuntu/ubuntu-bionic.git ubuntu-bionic
# install related stuff
apt build-dep linux-image-$(uname -r)
apt install libncurses5-dev libudev-dev libssl-dev
# patch -p1 < you patch
make oldconfig
make -j $(nproc) deb-pkg LOCALVERSION=-your-suffix
@pandada8
pandada8 / userscript.js
Last active Jan 18, 2019
jira absolute time
View userscript.js
// ==UserScript==
// @name Better JIRA time preview
// @namespace http://tampermonkey.net/
// @version 0.0.2
// @description Display the actual date and time from each comment/action.
// @author Lucas Dasso http://www.c238.com.ar
// @match https://jira.in.chaitin.net/browse*
// @grant none
// @updateURL https://gist.githubusercontent.com/pandada8/7efceb1df3af2fb87f472571cc7e40f7/raw/userscript.js
@pandada8
pandada8 / main.go
Created Oct 18, 2018
mongo-go-driver
View main.go
package main
import "github.com/mongodb/mongo-go-driver/bson"
type Test struct {
Bool *bool `bson:"bool"`
}
func Bool(payload bool) *bool {
return &payload
View kernel.syslog
-- Logs begin at Mon 2018-07-16 15:58:02 CST, end at Sun 2018-08-19 20:17:36 CST. --
Aug 19 20:07:54 panda-hp kernel: microcode: microcode updated early to revision 0x96, date = 2018-05-15
Aug 19 20:07:54 panda-hp kernel: Linux version 4.18.3-arch1-1-ARCH (builduser@heftig-24267) (gcc version 8.2.0 (GCC)) #1 SMP PREEMPT Sat Aug 18 09:22:54 UTC 2018
Aug 19 20:07:54 panda-hp kernel: Command line: \\vmlinuz-linux root=UUID=6a2c6f7f-bbdf-4354-8fc3-d2c138b11137 rootflags=subvol=root rw initrd=/intel-ucode.img initrd=/initramfs-linux.img
Aug 19 20:07:54 panda-hp kernel: KERNEL supported cpus:
Aug 19 20:07:54 panda-hp kernel: Intel GenuineIntel
Aug 19 20:07:54 panda-hp kernel: AMD AuthenticAMD
Aug 19 20:07:54 panda-hp kernel: Centaur CentaurHauls
Aug 19 20:07:54 panda-hp kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
Aug 19 20:07:54 panda-hp kernel: x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
View poweron.sh
#!/bin/bash
host="10.9.0.1"
pw="root"
user="root"
ipmitool -I lanplus -H $host -U $user -P $pw power on;
sleep 1;
ipmitool -I lanplus -H $host -U $user -P $pw raw 0x30 0x30 0x01 0x00;
ipmitool -I lanplus -H $host -U $user -P $pw raw 0x30 0x30 0x02 0xff 0x10; # could be 0x00 - 0xff
@pandada8
pandada8 / ziroom.py
Created Jul 5, 2018
简单的自如爬虫
View ziroom.py
import pymongo
import requests
import sys
col = pymongo.MongoClient().get_database('ziroom').get_collection('room')
r = requests.session()
r.headers['User-Agent'] = 'Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1'
def get_list_of_room(name):
page = 1
@pandada8
pandada8 / hp-ac.txt
Created Jun 7, 2018
octane benchmark
View hp-ac.txt
Richards: 30575
DeltaBlue: 59837
Crypto: 29045
RayTrace: 80726
EarleyBoyer: 51088
RegExp: 7426
Splay: 26069
SplayLatency: 47685
NavierStokes: 30627
PdfJS: 21522
@pandada8
pandada8 / fix.sh
Created Apr 29, 2018
captival_fix.sh
View fix.sh
adb shell settings put global captive_portal_http_url http://www.google.cn/generate_204
adb shell settings put global captive_portal_https_url https://www.google.cn/generate_204
adb shell settings put global captive_portal_fallback_url http://www.google.cn/generate_204
adb shell settings put global captive_portal_other_fallback_urls http://www.qualcomm.cn/generate_204
@pandada8
pandada8 / readme.md
Last active Mar 24, 2018
Feralhosting reachability / Is your Feralhosting slot blocked by GFW ?
View readme.md
Nodes status
aether ✔️
agrius ✔️
aigaion ✔️
aion
alcyoneus ✔️
aloadae ✔️
ananke ✔️
anax ✔️
You can’t perform that action at this time.