Skip to content

Instantly share code, notes, and snippets.

@fuyuanli
fuyuanli / dmm.com
Last active March 28, 2024 11:52
dmm.com
document.cookie = "cklg=welcome;expires=Sun, 09 Feb 2019 09:00:09 GMT;domain=.dmm.com;path=/";
document.cookie = "cklg=welcome;expires=Sun, 09 Feb 2019 09:00:09 GMT;domain=.dmm.com;path=/netgame/";
document.cookie = "cklg=welcome;expires=Sun, 09 Feb 2019 09:00:09 GMT;domain=.dmm.com;path=/netgame_s/";
document.cookie = "ckcy=1;expires=Sun, 09 Feb 2019 09:00:09 GMT;domain=.dmm.com;path=/";
document.cookie = "ckcy=1;expires=Sun, 09 Feb 2019 09:00:09 GMT;domain=.dmm.com;path=/netgame/";
document.cookie = "ckcy=1;expires=Sun, 09 Feb 2019 09:00:09 GMT;domain=.dmm.com;path=/netgame_s/";
@fuyuanli
fuyuanli / cloudflare-pve-acme.sh
Last active January 20, 2024 05:43
acme.sh + Proxmox VE
# CloudFlare API
#
# Please install "acme.sh" before runnung this script.
# curl https://get.acme.sh/ | sh
#
export CF_Email="Your_CloudFlare_Account@example.com"
export CF_Key="Your_CloudFlare_API_Key"
/root/.acme.sh/acme.sh --issue \
-d $DOMAIN \
@fuyuanli
fuyuanli / getAdobeCC2018.sh
Created November 4, 2018 03:47
透過 Aria2 下載 Adobe CC 2018 試用板
aria2c -x16 http://prdl-download.adobe.com/Photoshop/66A1D1E00DE44601B041A631261EC584/1507846032938/AdobePhotoshop19-mul_x64.zip
aria2c -x16 http://prdl-download.adobe.com/LightroomCC/B739B5BBE924450E85E3CCA3F4E58DF2/1507817913973/LRCC_1.0_20170919-1412-ccb76bd_win64_Release_ESD.zip
aria2c -x16 http://prdl-download.adobe.com/Lightroom/C92BB55D87554077A61FB4B39229DF85/1509474343363/LR_7.0.1_1142117_win64_Release_ESD.zip
aria2c -x16 http://prdl-download.adobe.com/Illustrator/C1208DBFE1D04A81A21C62CDF6A96AC6/1509968804429/AdobeIllustrator22_HD_win64.zip
aria2c -x16 http://prdl-download.adobe.com/InDesign/0AE9CC3E24054F7CAAEF89371F6B8E8E/1507852089154/InDesign_13_LS20_Win64.zip
aria2c -x16 http://prdl-download.adobe.com/Acrobat%20Professional/7D1CAD83986848F092F39734E60DCFEA/1508138997522/Acrobat_DC_Web_WWMUI.exe
aria2c -x16 http://prdl-download.adobe.com/Dimension/BA884A82C5AB47569685C2BD7D1289AD/1508226581127/Dimension_1.0-20170927.r.672-f179c9c-ESD.zip
aria2c -x16 http://prdl-download.adobe.com/Bridge/FA969603
@fuyuanli
fuyuanli / php.ini
Created September 29, 2016 12:06
Disable Dangerous PHP Functions
disable_functions = "apache_child_terminate, apache_setenv, define_syslog_variables, escapeshellarg, escapeshellcmd, eval, exec, fp, fput, ftp_connect, ftp_exec, ftp_get, ftp_login, ftp_nb_fput, ftp_put, ftp_raw, ftp_rawlist, highlight_file, ini_alter, ini_get_all, ini_restore, inject_code, mysql_pconnect, openlog, passthru, php_uname, phpAds_remoteInfo, phpAds_XmlRpc, phpAds_xmlrpcDecode, phpAds_xmlrpcEncode, popen, posix_getpwuid, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, posix_setuid, posix_uname, proc_close, proc_get_status, proc_nice, proc_open, proc_terminate, shell_exec, syslog, system, xmlrpc_entity_decode"
#!/bin/sh
# GET Recore ID
#curl -x get "https://api.cloudflare.com/client/v4/zones/YOUR_ZONE_ID/dns_records" \
#-h "x-auth-email:YOUR_EMAIL@gmail.com" \
#-h "x-auth-key:YOUR_GLOBAL_API_KEY" \
#-h "content-type: application/json"
NEW_IP=`curl -s http://ipv4.icanhazip.com`
reg add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v "ShowSecondsInSystemClock" /t reg_dword /d 1 /f >nul 2>nul1
@fuyuanli
fuyuanli / putty.log
Created July 4, 2015 13:23
nextvod-pdk7105-215-xbmc-12.3-Frodo-20150209.tar.xz
=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2015.07.04 21:16:27 =~=~=~=~=~=~=~=~=~=~=~=
Board: STx7105-PDK [32-bit mode]
U-Boot 1.3.1 (Oct 6 2013 - 04:36:18) - stm23_0045
DRAM: 256 MiB
SPI: ST M25P80 (1MiB) device (page=256,erase=4096)
ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc
@fuyuanli
fuyuanli / rem_proxmox_popup.sh
Created November 12, 2019 08:27 — forked from tavinus/rem_proxmox_popup.sh
Remove PROXMOX 5.x / 6.x subscription message popup
#!/bin/sh
#######################################################
#
# Edits the proxmox Subscription file to make it
# think that it has a Subscription.
#
# Will disable the annoying login message about
# missing subscription.
#
@fuyuanli
fuyuanli / auto-snap.sh
Last active October 5, 2019 05:00
ZFS 自動快照
#!/bin/bash
# 目標 Dataset
DATASET="data/home"
# 要保留的 Snapshot 數量
SNAP_NUM=168
# 日期
TODAY=$(date +"%Y-%m-%d-%H%M%S")