Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Yangyu Chen cyyself

🎯
Focusing
Block or report user

Report or block cyyself

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
View windows_utc_time.reg
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
"RealTimeIsUniversal"=dword:00000001
View ppt2pptx.py
import os
import os.path
import win32com
import win32com.client
import time
def ppt2pptx(file):
powerpoint = win32com.client.Dispatch('PowerPoint.Application')
win32com.client.gencache.EnsureDispatch('PowerPoint.Application')
powerpoint.Visible = 1
ppt = powerpoint.Presentations.Open(file)
@cyyself
cyyself / 合式判断.cpp
Created Feb 27, 2019
离散数学老师的作业,欢迎Hack
View 合式判断.cpp
/*
'A'-'Z'表示命题
!表示非
&表示合取
|表示析取
A@B表示如果A,那么B
A#B表示双条件
()表示优先级
*/
#include <bits/stdc++.h>
View curl.php
<?php
$curl_cmd = trim(fgets(STDIN));
$filename = md5($curl_cmd) . '.html';
while (1) {
$ret = shell_exec($curl_cmd.' -w %{http_code} -o '. $filename .' -i');
if ($ret != '503') break;
}
echo 'Saved to ' . $filename . "\n";
?>
@cyyself
cyyself / hostapd(rpi 3b+).conf
Last active Sep 3, 2018
Raspberry Pi 3B+ 11ac Hotspot
View hostapd(rpi 3b+).conf
interface=wlan0
driver=nl80211
hw_mode=a
ieee80211n=1
ieee80211ac=1
ieee80211d=1
ieee80211h=1
require_ht=1
require_vht=1
@cyyself
cyyself / ipv6passthrough.sh
Last active Sep 3, 2018
IPv6 Pass Through
View ipv6passthrough.sh
#!/bin/sh
ebtables -t broute -A BROUTING -p ! ipv6 -j DROP
brctl addbr ipv6br
ifconfig ipv6br up
brctl addif ipv6br eth0
brctl addif ipv6br wlan0
You can’t perform that action at this time.