Skip to content

Instantly share code, notes, and snippets.

View SukkaW's full-sized avatar
👓
Learning everything...

Sukka SukkaW

👓
Learning everything...
View GitHub Profile
#!/usr/bin/env bash
# Created by Sukka (https://skk.moe)
# wget --no-check-certificate -O snell.sh https://gist.githubusercontent.com/SukkaW/88a748fcd9faa93675789bdb24b95762/raw/snell.sh && chmod +x snell.sh && ./snell.sh && rm -rf snell.sh
CONF="/etc/snell/snell-server.conf"
SYSTEMD="/etc/systemd/system/snell.service"
PSK="o_sase_sd_wan_is_the_best_6666"
apt-get update -y
apt-get install unzip curl -y
@SukkaW
SukkaW / cfdc.json
Last active March 28, 2022 05:20
JSON format data of Cloudflare Data Centers
{
"AMS": {
"name": "Amsterdam, Netherlands",
"cnName": "荷兰阿姆斯特丹"
},
"ATH": {
"name": "Athens, Greece",
"cnName": "希腊雅典"
},
"BCN": {
This file has been truncated, but you can view the full file.
/******/ (function() { // webpackBootstrap
/******/ var __webpack_modules__ = ({
/***/ 1145:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
"use strict";
```md
## Breaking Change
refactor(box): remove Bluebird.asCallback @SukkaW [#4379]
feat: bring up config.updated_option @SukkaW [#4278]
feat(open_graph): drop 'keywords' option from front-matter @curbengh [#4174]
fix(#3464): override permalink use the front-matter @SukkaW [#4359]
refactor: remove lodash from global variable @SukkaW [#4266]
chore/ci: drop Node.js 8 and add Node.js 14 @SukkaW [#4255]
refactor: remove site config from theme config @SukkaW [#4145]

Keybase proof

I hereby claim:

  • I am sukkaw on github.
  • I am sukka (https://keybase.io/sukka) on keybase.
  • I have a public key ASATNbNkxvEf1Hrc0AlrrsnZd4O7j-VnKXza7axwS3DIuQo

To claim this, I am signing this object:

// ==UserScript==
// @name 远景资讯自动回复
// @namespace http://tampermonkey.net/
// @version 0.5
// @description try to take over the world!
// @author Sukka
// @include http://www.pcbeta.com/viewnews*.html
// @include http://www.pcbeta.com/portal.php?mod=view&aid=*
// @grant none
// ==/UserScript==
mycss=prompt('请输入你需要的CSS');
formhash=document.querySelector('input[name=formhash]').value;
fetch("/home.php?mod=spacecp&ac=index", {"credentials":"include","headers":{"content-type":"application/x-www-form-urlencoded"},"body":"spacecss="
+ encodeURIComponent(mycss) + "&formhash=" + formhash + "&style=t8&layoutdata=" + encodeURIComponent('<?xml version="1.0" encoding="ISO-8859-1"?><root><item id="diypage"><item id="frame`frame1"><item id="attr"><item id="name"><![CDATA[frame1]]></item><item id="moveable"><![CDATA[false]]></item><item id="className"><![CDATA[frame cl]]></item><item id="titles"></item></item><item id="column`frame1_left"><item id="attr"><item id="name"><![CDATA[frame1_left]]></item><item id="className"><![CDATA[z column]]></item></item><item id="block`profile"><item id="attr"><item id="name"><![CDATA[profile]]></item><item id="className"><![CDATA[block move-span]]></item><item id="titles"><item id="0"><item id="text"><![CDATA[头像]]></item><item id="href"><![CDATA[http://bbs.pcbeta.com/home.php?mo
@SukkaW
SukkaW / bookmark-remove-restrictions.min.js
Last active September 25, 2019 17:51
Remove website restrictions
javascript:(function(){var doc=document,body=document.body;with(body.onselectstart=body.oncopy=body.onpaste=body.onkeydown=body.oncontextmenu=body.onmousemove=body.ondragstart=document.onselectstart=document.oncopy=document.onpaste=document.onkeydown=document.oncontextmenu=null,document.onselectstart=document.onkeydown=document.oncontextmenu=document.onmousedown=function(){return!0},document.wrappedJSObject||document)onmouseup=null,onmousedown=null,oncontextmenu=null;for(var arAllElements=document.getElementsByTagName("*"),i=arAllElements.length-1;i>=0;i--){var elmOne=arAllElements[i];with(elmOne.style.userSelect="initial",elmOne.style.pointerEvents="initial",elmOne.wrappedJSObject||elmOne)onmouseup=null,onmousedown=null}body.style.webkitUserSelect="auto!important",body.style.MozUserSelect="normal!important",alert("已经解除右键和复制限制!")})();
# Archive Today
130.0.234.124 archive.vn
51.38.113.224 archive.vn
134.119.220.26 archive.vn
89.163.224.67 archive.vn
91.121.82.32 archive.vn
130.0.234.124 archive.is
51.38.113.224 archive.is
@SukkaW
SukkaW / fight-math-battle.js
Last active July 5, 2019 13:48
Be the best in the Math Battle
function math() {
let x = parseInt(document.getElementById('task_x').innerHTML, 10);
let y = parseInt(document.getElementById('task_y').innerHTML, 10);
let op = document.getElementById('task_op').innerHTML;
let res = parseInt(document.getElementById('task_res').innerHTML, 10);
let choose = {
true: () => document.getElementById('button_correct').click(),
false: () => document.getElementById('button_wrong').click()
}