首先猫会介绍一下最近都有神马激动人心的新坑出现了~
Firefox 要增加针对数字内容版权的 drm 支持啦...
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import os | |
import sys | |
''' | |
Clone of WWStar, an ancient Classical Chinese translator. | |
usage: python3 WWStarClone.py [dir] |
# INCORRECT! DON'T DO THIS! | |
>>> x = "www.alliancefrançaise.nu" # This is the problematic line. Forgot to make this a Unicode string. | |
>>> print x | |
www.alliancefrançaise.nu | |
>>> x.encode('punycode') | |
'www.Alliancefranaise.nu-h1a31e' | |
>>> x.encode('punycode').decode('punycode') | |
u'www.Alliancefran\xc3\xa7aise.nu' | |
>>> print x.encode('punycode').decode('punycode') | |
www.alliancefrançaise.nu |
CUTTER = python3 jumpcutter/jumpcutter.py | |
%_0.3.mp4: %.mkv | |
ffmpeg -i $< -c:v copy $(basename $<).mp4 | |
if [ -d ./TEMP ]; then rm -r ./TEMP; fi | |
${CUTTER} --silent_threshold 0.3 --input_file $(basename $<).mp4 --output_file $(basename $<)_0.3.mp4 | |
%_wechat.mp4: %_0.3.mp4 | |
ffmpeg -i $< -c copy -t 00:05:00.00 $@ | |
%_0.1.mp4 %_0.2.mp4 %_0.3.mp4: %.mp4 | |
if [ -d ./TEMP ]; then rm -r ./TEMP; fi |
For KVM and Laptop
I want full control what boots the computer to avoid the so called evil maid attack. That requires setting SecureBoot with only my own keys.
#!/usr/bin/env python3 | |
import asyncio | |
import multiprocessing | |
import os | |
import ssl | |
from time import sleep | |
port = 9000 |
diff --git a/drivers/input/mouse/synaptics.c b/drivers/input/mouse/synaptics.c | |
index 16c3046..ca912ce 100644 | |
--- a/drivers/input/mouse/synaptics.c | |
+++ b/drivers/input/mouse/synaptics.c | |
@@ -173,6 +173,7 @@ static const char * const smbus_pnp_ids[] = { | |
"LEN0046", /* X250 */ | |
"LEN004a", /* W541 */ | |
"LEN200f", /* T450s */ | |
+ "LEN0073", /* X1 Carbon 5 (Elantech) */ | |
NULL |
{ | |
"update_interval_minutes": { | |
"2G": 1440, | |
"3G": 1440, | |
"4G": 1440, | |
"WIFI": 1440 | |
}, | |
"version": 1526088187, | |
"url_list": [ | |
{ |
#!/bin/bash | |
if [ "$4" == "" ]; then | |
echo "usage: $0 <local_ip> <remote_ip> <new_local_ip> <new_remote_ip>" | |
echo "creates an ipsec tunnel between two machines" | |
exit 1 | |
fi | |
SRC="$1"; shift | |
DST="$1"; shift |
#! /usr/bin/python | |
# Usage `python list-url.py` | |
import frida,sys | |
jspayload= """ | |
setImmediate(function() { |