Skip to content

Instantly share code, notes, and snippets.

View void285's full-sized avatar
🎯
Focusing

Leonarda void285

🎯
Focusing
View GitHub Profile
@jfcherng
jfcherng / st4-changelog.md
Last active April 20, 2024 00:25
Sublime Text 4 changelog just because it's not on the official website yet.
@jasondavis
jasondavis / Markdown_2_HTML.ahk
Last active March 10, 2020 09:16
AutoHotScript (AHK) Markdown 2 HTML GUI App
/*
AutoHotScript (AHK) Markdown 2 HTML GUI App
- AutoHotScript GUI Window to Convert Markdown 2 HTML
1) Markdown text Edit GUI
2) HTML Text Edit GUI parsed from above Markdown text
3) HTML Activex GUI Webpage with above parsed Markdown as HTML for preview
- Based on:
- Markdown2HTML code in GenDocs library - https://github.com/fincs/GenDocs/blob/master/Lib/Markdown2HTML.ahk
- jsonFormatter - JSON Beautifier/Pretty Print Script using JavaScript here https://autohotkey.com/board/topic/94687-jsonformatter-json-pretty-print-using-javascript/
- Github Gist - https://gist.github.com/jasondavis/157d0fa2ce47086c30fd1c8ca83f4785
@asukakenji
asukakenji / 0-go-os-arch.md
Last active July 24, 2024 05:41
Go (Golang) GOOS and GOARCH

Go (Golang) GOOS and GOARCH

All of the following information is based on go version go1.17.1 darwin/amd64.

GOOS Values

GOOS Out of the Box
aix
android
@9b
9b / what_runs.py
Created August 26, 2017 03:51
Simple tool to use WhatRuns API to get technologies used on a page. Doesn't submit the page if it's not in the database.
import ast
import datetime
import json
import sys
import requests
import urllib
from tabulate import tabulate
url = "https://www.whatruns.com/api/v1/get_site_apps"
data = {"data": {"hostname": sys.argv[1], "url": sys.argv[1],
@vhanla
vhanla / Aardio.sublime-syntax
Last active February 6, 2020 13:25
Aardio Syntax Highlighter for SublimeText 3, place it inside Data/Packages/User directory
%YAML 1.2
---
# http://www.sublimetext.com/docs/3/syntax.html
name: Aardio
file_extensions: [aardio, aau]
scope: source.aardio
contexts:
main:
- match: '^\s*(import)\s+([^ ;]*);'
scope: meta.keyword.using.source.aardio
@oraoto
oraoto / phpfunctions.sql
Last active April 30, 2024 14:33
Big Query统计最常用php函数
#standardSQL
CREATE TEMPORARY FUNCTION parseFunction(src STRING)
RETURNS ARRAY<STRING>
LANGUAGE js AS """
var result = [];
var regex = /([:\\w]+?)(?:\\()/g;
var match;
while (match = regex.exec(src)) {
result.push(match[1]);
}
@Alex-Just
Alex-Just / Main.sublime-menu
Last active May 23, 2024 21:03
Sublime Text plugin "Count Duplicates". Adds command in the Edit main menu that counts number of duplicate rows in a file and prints it in the first left column.
[
{
"id": "edit",
"children":
[
{ "command": "count_duplicates" }
]
}
]
@cyfdecyf
cyfdecyf / linode-speedtest.sh
Created August 4, 2015 07:53
Linode speedtest
#!/bin/bash
list="
http://speedtest.newark.linode.com/100MB-newark.bin
http://speedtest.atlanta.linode.com/100MB-atlanta.bin
http://speedtest.dallas.linode.com/100MB-dallas.bin
http://speedtest.fremont.linode.com/100MB-fremont.bin
http://speedtest.frankfurt.linode.com/100MB-frankfurt.bin
http://speedtest.london.linode.com/100MB-london.bin
http://speedtest.singapore.linode.com/100MB-singapore.bin
@carcinocron
carcinocron / debugger pause beforeunload
Last active July 10, 2024 08:48
Chrome: pause before redirect
// Run this in the F12 javascript console in chrome
// if a redirect happens, the page will pause
// this helps because chrome's network tab's
// "preserve log" seems to technically preserve the log
// but you can't actually LOOK at it...
// also the "replay xhr" feature does not work after reload
// even if you "preserve log".
window.addEventListener("beforeunload", function() { debugger; }, false)
@jgrossi
jgrossi / Math.php
Created November 11, 2014 22:18
Math class from Taylor Otwell. Thanks to @brad (captain_jim1@yahoo.com) for the class content.
<?php
class Math {
/**
* The base.
*
* @var string
*/
private static $base = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';