Skip to content

Instantly share code, notes, and snippets.

View supersonictw's full-sized avatar
🦋

不知火 Shiranui supersonictw

🦋
View GitHub Profile
@supersonictw
supersonictw / violet-schema.xml
Last active February 28, 2020 04:18
The default schema for StarStart! Service
<!--
Violet - The default schema for StarStart! Service
https://github.com/star-inc/butterfly
(c)2020 Star Inc.
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
-->
<!-- Move to https://github.com/star-inc/violet -->
@supersonictw
supersonictw / black_hole_4numbers.py
Last active February 29, 2020 08:50
To verify black hole number by python
# /usr/bin/env python3
# (c) 2020 SuperSonic (https://github.com/supersonictw)
import random
def int_split(num: int):
return [i for i in str(num)]
def int_com(num: list):
@supersonictw
supersonictw / autocompile_golang.bash
Last active February 29, 2020 10:32
To auto-compile programs for every platforms Go supported
#!/bin/bash
# autocompile_golang.bash
# To auto-compile programs for every platforms Go supported
# (c)2020 Star Inc. (https://starinc.xyz)
# https://golang.org/doc/install/source#environment
GOOS_LIST=('android' 'darwin' 'linux')
GOARCH_LIST=('386' 'amd64' 'arm' 'arm64')
BUILD_LOG_LIST='.compile_log'
@supersonictw
supersonictw / 89s51-1.c
Last active March 7, 2020 13:45
Keli C TEST Code for Atmel AT89S51
#include <reg51.h>
#define LED P1
// (c) 2020 SuperSonic (https://github.com/supersonictw)
sbit buzzer = P0 ^ 1;
void delay500us(int);
void pulse_bz(int, int, int);
{
"Afghanistan": {
"zh_TW": "阿富汗",
"location": [
33,
65
]
},
"Albania": {
"zh_TW": "阿爾巴尼亞",
<?php
/**
* Given a URL, normalize that URL.
* @param String URL
* @return String Normalized URL
*/
function normalizeUrl($input_url)
{
$newUrl = "";
$url = parse_url($input_url);
@supersonictw
supersonictw / popcat.taiwan.js
Last active September 28, 2021 12:28
The inject script for popcat.click to help Taiwan get No.1.
(function(){
const app = document.getElementById("app").__vue__;
setInterval(()=>{
app.bot=false;
app.accumulator = 800;
}, 5);
})();
@supersonictw
supersonictw / sources.debian.list
Last active September 19, 2023 10:00
sudo curl -sSLo /etc/apt/sources.list https://ncurl.xyz/s/oxO54wiSg
# Security updates
deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
deb-src http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
## Debian mirror
# Base repository
deb http://opensource.nchc.org.tw/debian bookworm main contrib non-free non-free-firmware
deb-src http://opensource.nchc.org.tw/debian bookworm main contrib non-free non-free-firmware
@supersonictw
supersonictw / timezone.json
Created March 23, 2024 03:18 — forked from EmadAdly/timezone.json
Common timezone list in json
[
{
"zone": "Pacific/Midway",
"gmt": "(GMT-11:00)",
"name": "Midway Island"
},
{
"zone": "US/Samoa",
"gmt": "(GMT-11:00)",
"name": "Samoa"
@supersonictw
supersonictw / ISO-639-1-language.json
Created March 23, 2024 05:09 — forked from jrnk/ISO-639-1-language.json
ISO 639-1 Alpha-2 codes of languages JSON
[
{ "code": "aa", "name": "Afar" },
{ "code": "ab", "name": "Abkhazian" },
{ "code": "ae", "name": "Avestan" },
{ "code": "af", "name": "Afrikaans" },
{ "code": "ak", "name": "Akan" },
{ "code": "am", "name": "Amharic" },
{ "code": "an", "name": "Aragonese" },
{ "code": "ar", "name": "Arabic" },
{ "code": "as", "name": "Assamese" },