Skip to content

Instantly share code, notes, and snippets.

@powersee
powersee / github-links-new-tab.js
Last active June 19, 2021 01:33 — forked from kuceb/github-notification-new-tab.js
Tampermonkey script to open all links from github in new tab.
@powersee
powersee / dynv6.sh
Created March 28, 2020 08:16 — forked from corny/dynv6.sh
Update script for dynv6.com to set your IPv4 address and IPv6 prefix
#!/bin/sh -e
hostname=$1
device=$2
file=$HOME/.dynv6.addr6
[ -e $file ] && old=`cat $file`
if [ -z "$hostname" -o -z "$token" ]; then
echo "Usage: token=<your-authentication-token> [netmask=64] $0 your-name.dynv6.net [device]"
exit 1
fi
# coding: utf-8
# 更新于2017/10/02,python3测试通过
import re
import requests
# 领取 X 铜币
# 每日登录奖励已领取
base_headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.57 Safari/537.36 OPR/40.0.2308.15 (Edition beta)', 'Referer': 'https://www.v2ex.com/signin', 'Origin': 'https://www.v2ex.com'}
@powersee
powersee / 502.py
Created April 14, 2019 10:24 — forked from 1gg/502.py
看到有需要502论坛自动签到脚本,支持多马甲
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
#forked from https://www.hostloc.com/forum.php?mod=viewthread&tid=452950
import sys
from urllib import request
from http import cookiejar
from random import randint
account_dict = {
'0': {'username': 'xxxx', 'password': 'xxx'},