- 私有Repo需要付费
- 私有协作需要付费
- 托管空间512MB
- 300K - 500K
- 工单 & Wiki
- Pages 服务
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Harry Jeffery <harry|@|exec64|.|co|.|uk> | |
# Contributor: Alex Jordan <alexander3223098@gmail.com> | |
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=() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import requests | |
from bs4 import BeautifulSoup as bs | |
import re | |
import xmlrpc.client | |
import sys | |
import xml.etree.ElementTree as et | |
""" | |
Usage: python 163.py <url of the content> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Here c refer to content ,p refer to the pointer | |
# or the length of parsed text | |
DEBUG = True | |
decode_func = {} | |
def print_debug(fn): | |
def wrapper(c,p): | |
if DEBUG: | |
print(fn.__name__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import requests | |
from bs4 import BeautifulSoup | |
import sys | |
import time | |
import concurrent.futures | |
import random | |
import json | |
import os | |
import re |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<style type="text/css"> | |
body{ | |
margin:0; | |
} | |
.wrapper{ | |
margin: auto; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Redirector(StaticFileHandler): | |
def initialize(self, path, default_filename=None): | |
root, self.filename = os.path.split(path) | |
super(Redirector, self).initialize(root) | |
@coroutine | |
def get(self, include_body=True): | |
yield super(RedirectStaticFileHandler, self).get(self.filename, include_body) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
algos=$(find /lib/modules/`uname -r` -type f -name "*.ko" | sed -n "s/.*ipv4\/tcp_\(\w*\)\..*/\1/p" | sort -u) | |
server="XXX.XXX.XX.XXX" | |
filesize="10M" | |
for i in $algos | |
do | |
echo "Test $i"; | |
sudo modprobe tcp_$i; | |
for t in {1..3} | |
do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from peewee import Model | |
from playhouse.db_url import connect | |
db = connect(os.env.get('DATABASE') or options.database) | |
class BaseModel(Model): | |
@classmethod | |
def try_get(cls, **kwargs): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gsettings set org.gnome.settings-daemon.plugins.media-keys volume-down F9 | |
gsettings set org.gnome.settings-daemon.plugins.media-keys volume-mute F8 | |
gsettings set org.gnome.settings-daemon.plugins.media-keys volume-up F10 | |
gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/','/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom2/']" | |
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/ name 'BrightnessDown' | |
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/ binding 'F6' | |
gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/ command 'xdotool key XF86MonBrightnessDown' | |
gsettings set org.gnome.setti |
OlderNewer