Skip to content

Instantly share code, notes, and snippets.

View seyrenus's full-sized avatar

Seyren seyrenus

  • china
View GitHub Profile
@seyrenus
seyrenus / tag_v2ex_username.js
Created October 25, 2023 05:41 — forked from y4code/tag_v2ex_username.js
给 V2EX 用户打标签
// ==UserScript==
// @name 给 V2EX 用户打标签
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.v2ex.com/*
// @match http*://*.v2ex.com/*
// @match http*://v2ex.com/*s
// @match https://v2ex.com/
@seyrenus
seyrenus / backup.sh
Last active July 26, 2023 05:54 — forked from FindHao/backup.sh
vps backup
#!/usr/bin/env bash
# This script is based on Copyright (C) 2013 - 2020 Teddysun <i@teddysun.com>
# Modified by FindHao <find@findhao.net>
# https://findhao.net/easycoding/2605.html
# You must to modify the config before run it!!!
# [[ $EUID -ne 0 ]] && echo "Error: This script must be run as root!" && exit 1
@seyrenus
seyrenus / shanbay_remember.js
Created December 1, 2020 23:18 — forked from yihong0618/shanbay_remember.js
扇贝加密破解自动发送今日新词到 telegram
const https = require("https");
const token = ""; // change this to you telegram bot token!
const chatId = ""; // change this to your telegram chat id!
const cookie = ""; // change this to your shanbay cookie!
const PATH_API = (page) =>
`/wordsapp/user_material_books/blozps/learning/words/today_learning_items?ipp=10&page=${page}&type_of=NEW`;
const options = {
@seyrenus
seyrenus / config.yml
Created April 23, 2019 05:03 — forked from lddsb/config.yml
run clash in docker
# 2018-10-11 00:15:14
#---------------------------------------------------#
## 配置文件需要放置在 $HOME/.config/clash/config.yml
#---------------------------------------------------#
# HTTP 代理端口
port: 7890
# SOCKS5 代理端口
socks-port: 7891
@seyrenus
seyrenus / zsh_to_fish.py
Created May 11, 2017 13:09 — forked from dvdbng/zsh_to_fish.py
Migrate zsh history to fish
import os
import re
def zsh_to_fish(cmd):
return (cmd.replace('&&', '; and ')
.replace('||', '; or '))
def is_valid_fish(cmd):

如何在路由器中实现透明代理?

0 互联网现状

目前整个互联网环境,被破坏最严重地部分,是 Web 服务体验。当直接破坏难以实现时,就会从流程链的上下游着手,如:DNS 污染。

其它地互联网服务类型,例如:邮件,可能小部分会受到 Web 服务上下游破坏地余震,但整体上基本不受影响。

ffmpeg -i input.mp4 \
-map 0:1 \
-c:a copy \
-y output.m4a
@seyrenus
seyrenus / cheatsheet.py
Created August 27, 2016 00:09 — forked from fuyufjh/cheatsheet.py
My Python Cheatsheet
Python Cheatsheet
=================
################################ Input & Output ###############################
name = input('please enter your name: ')
print('hello,', name)
ageStr = input('please enter your age: ')
age = int(ageStr)
@seyrenus
seyrenus / pyspider.py
Created November 17, 2015 14:51
pyspider script
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
# Created on 2015-04-29 17:01:27
# Project: spider
from pyspider.libs.base_handler import *
from pyquery import PyQuery as pq
import MySQLdb
import sys,os
default_encoding = 'utf-8'
@seyrenus
seyrenus / css_resources.md
Last active August 29, 2015 14:22 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides