Skip to content

Instantly share code, notes, and snippets.

View yukixz's full-sized avatar
❤️
Your Sponsor

Dazzy Ding yukixz

❤️
Your Sponsor
View GitHub Profile
@yukixz
yukixz / v2ray-routing.json
Last active April 17, 2019 04:54
v2ray routing rules for cn&!cn
{
"domainStrategy" : "IPOnDemand",
"rules" : [
{
"type" : "field",
"outboundTag" : "direct",
"domain" : [
"geosite:cn",
"geosite:apple",
"domain:me.com",
#include<stdio.h>
#include<string.h>
int main(int argc, char **argv) {
// UTF-8 is 3 byte long.
int W = 3;
// Input
char str[256];
scanf("%s", str);
int len = strlen(str);
#!/bin/bash
v=24.0.0.194
wget https://fpdownload.adobe.com/pub/flashplayer/pdc/$v/flash_player_ppapi_linux.x86_64.tar.gz
wget https://fpdownload.adobe.com/pub/flashplayer/pdc/$v/flash_player_ppapi_linux.i386.tar.gz
wget https://fpdownload.adobe.com/pub/flashplayer/pdc/$v/install_flash_player_ppapi.exe
wget https://fpdownload.adobe.com/pub/flashplayer/pdc/$v/install_flash_player_osx_ppapi.dmg
@yukixz
yukixz / gist:278d32027a4d8801567ccca9fd6a0751
Created October 8, 2016 12:21
test packet for ec battle
ev1 = new CustomEvent('game.response', {
bubbles: true,
cancelable: true,
detail: {
method: 'POST',
path: '/kcsapi/api_req_combined_battle/ec_battle',
body: {"api_deck_id": 1,"api_ship_ke": [-1,586,615,527,592,576,576],"api_ship_ke_combined": [-1,555,527,575,575,575,575],"api_ship_lv": [-1,1,1,1,1,1,1],"api_ship_lv_combined": [-1,1,1,1,1,1,1],"api_nowhps": [-1,79,64,46,16,41,73,350,96,76,66,37,37],"api_maxhps": [-1,101,70,49,37,87,86,350,96,76,66,37,37],"api_nowhps_combined": [-1,-1,-1,-1,-1,-1,-1,57,76,35,35,35,35],"api_maxhps_combined": [-1,-1,-1,-1,-1,-1,-1,57,76,35,35,35,35],"api_eSlot": [[547,548,549,532,-1],[556,557,558,558,-1],[505,506,515,525,-1],[550,550,545,525,-1],[502,545,542,-1,-1],[502,545,542,-1,-1]],"api_eSlot_combined": [[506,525,542,543,-1],[505,506,515,525,-1],[502,545,542,-1,-1],[502,545,542,-1,-1],[502,545,542,-1,-1],[502,545,542,-1,-1]],"api_fParam": [[115,0,120,107],[75,84,60,82],[63,139,49,63],[57,54,116,53],[65,0,90,84],[70,0,88,83]],"api_eParam": [[180,0,130,150],[2
@yukixz
yukixz / foobar.json
Last active August 19, 2016 16:47
A battle packet with land base air crops
{
"version": "2.0",
"map": [35, 3, 10],
"desc": "出击 (Boss)",
"time": 1471624605549,
"fleet": {
"type": 2,
"main": [{
"api_id": 119,
"api_sortno": 101,
@yukixz
yukixz / api_start2_diff.py
Created May 6, 2016 16:18
Diff api_start2
#!/usr/bin/env python3
'''
Diff api_start2.json
Usage: api_start2_diff.py api_start2.old.json api_start2.new.json
'''
import json
import sys
@yukixz
yukixz / proxy.pac
Created April 30, 2016 05:07
PAC file to different proxy for HTTP and HTTPS connection.
// MyFleetGirls: "PROXY 127.0.0.1:8080"
// Shimakaze Go: "PROXY 127.0.0.1:8099"
// Shadowsocks: "SOCKS5 127.0.0.1:1080"
var http_proxy = "PROXY 127.0.0.1:8080"; // Proxy for HTTP connection
var https_proxy = "PROXY 127.0.0.1:8099"; // Proxy for HTTPS connection
function FindProxyForURL(url, host) {
if (url.startsWith('https:')) {
return https_proxy;
@yukixz
yukixz / Core-decode.py
Last active January 22, 2017 17:40
Decode kancolle's Core.swf.
#!/usr/bin/env python3
import sys
ORDER = [0, 7, 2, 5, 4, 3, 6, 1]
SRC = sys.argv[1]
DEST = sys.argv[2]
@yukixz
yukixz / surge_main.conf
Created December 7, 2015 11:17 — forked from jason5ng32/surge.conf
Surge Configs ( Both 2 files are needed )
[General]
loglevel = notify
skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12,127.0.0.0/24,100.64.0.0/10
bypass-tun = 0.0.0.0/8, 1.0.0.0/9, 1.160.0.0/11, 1.192.0.0/11, 10.0.0.0/8, 14.0.0.0/11, 14.96.0.0/11, 14.128.0.0/11, 14.192.0.0/11, 27.0.0.0/10, 27.96.0.0/11, 27.128.0.0/9, 36.0.0.0/10, 36.96.0.0/11, 36.128.0.0/9, 39.0.0.0/11, 39.64.0.0/10, 39.128.0.0/10, 42.0.0.0/8, 43.224.0.0/11, 45.64.0.0/10, 47.64.0.0/10, 49.0.0.0/9, 49.128.0.0/11, 49.192.0.0/10, 54.192.0.0/11, 58.0.0.0/9, 58.128.0.0/11, 58.192.0.0/10, 59.32.0.0/11, 59.64.0.0/10, 59.128.0.0/9, 60.0.0.0/10, 60.160.0.0/11, 60.192.0.0/10, 61.0.0.0/10, 61.64.0.0/11, 61.128.0.0/10, 61.224.0.0/11, 100.64.0.0/10, 101.0.0.0/9, 101.128.0.0/11, 101.192.0.0/10, 103.0.0.0/10, 103.192.0.0/10, 106.0.0.0/9, 106.224.0.0/11, 110.0.0.0/7, 112.0.0.0/9, 112.128.0.0/11, 112.192.0.0/10, 113.0.0.0/9, 113.128.0.0/11, 113.192.0.0/10, 114.0.0.0/9, 114.128.0.0/11, 114.192.0.0/10, 115.0.0.0/8, 116.0.0.0/8, 117.0.0.0/9, 117.128.0.0/10, 118.0.0.0/11, 118.64.0.0/10, 118.128.0.0
@yukixz
yukixz / gist:3a307dd97aab69684234
Created November 22, 2015 11:25
api_start2.json
This file has been truncated, but you can view the full file.
{
"api_result": 1,
"api_result_msg": "成功",
"api_data": {
"api_mst_ship": [
{
"api_id": 1,
"api_sortno": 31,
"api_name": "睦月",
"api_yomi": "むつき",