This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# List up & Filter Vultr's Compute Instance plans* in tsv & json using vultr-cli and jq. | |
# (filterd by Region & your own condition. sorted by monthly cost. * BareMetal not supprted.) | |
# | |
# (Please use "Open Raw" and use curl/wget to download & rename or symlink as Makefile) | |
# | |
# usage: | |
# * Edit REGION below with your region code (refer "vultr-cli regions list") and "make" | |
# (or "REGION=xxx make") | |
# * Change filter conditions below as you like |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config | |
hostname: burmilla | |
rancher: | |
upgrade: | |
#url: https://raw.githubusercontent.com/benok/burmilla-os-releases/master/releases.yml | |
url: https://raw.githubusercontent.com/burmilla/releases/master/releases.yml | |
repositories: | |
console: | |
url: https://raw.githubusercontent.com/benok/burmilla-os-console/master | |
console: debian-testing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Xikestor managed switch SKS3200M auto-select english on login | |
// @namespace https://github.com/benok | |
// @version 2024.05.23.1 | |
// @description auto-select "English" on login (confirmed on firmware version 1.9) | |
// @author benok | |
// @match http://192.168.10.12/login.cgi | |
// @match http://(modify with your ip here)/login.cgi | |
// @icon https://xikestor.com/img/web_support/XikeStor.jpg | |
// @grant none |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Save Windows Spotlight cache images | |
# (execute from Git-bash, please) | |
CACHE_DIR=${LOCALAPPDATA}/Packages/Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy/LocalState/Assets | |
DEST_DIR=~/Pictures/WindowsSpotlight | |
mkdir -p $DEST_DIR | |
cd ${CACHE_DIR} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
program RzSizePanelTest; | |
uses | |
Vcl.Forms, | |
Unit1 in 'Unit1.pas' {Form1}; | |
{$R *.res} | |
begin | |
Application.Initialize; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:((i,a,p,c,m,s,l,e,j,r,u)=>{ | |
if($('#'+i)[0])return; | |
$('#stream-player').append( | |
`<div id=${i} textAlign="center"> | |
Jump: | |
<button>-30s</button><button> -10s</button> | |
<button> +10s</button><button>+30s</button><button>+1m</button><button> +3m</button><button>+10m</button> | |
Rate: | |
<input type=number step=0.05 min=0.25 max=4.0 value=1.00 style=width:4em> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name GitHub Gist apply dark theme on secret Gists | |
// @namespace https://github.com/benok/ | |
// @description Apply dark theme to your secret Gists on GitHub Gist | |
// @include https://gist.github.com/* | |
// @version 2022.11.30.1 | |
// @homepage https://gist.github.com/benok/69b98fc38aa5884234fe50326ef014ae | |
// @downloadURL https://gist.github.com/benok/69b98fc38aa5884234fe50326ef014ae/raw/github-gist-apply-dark-theme-on-secret-gists.user.js | |
// @author benok | |
// @grant none |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name GitHub apply dark theme on private repo | |
// @namespace https://github.com/benok/ | |
// @description Apply dark theme to your private repository pages on Github | |
// @match https://github.com/* | |
// @run-at document-idle | |
// @version 2022.11.30.0 | |
// @homepage https://gist.github.com/benok/301f7a9667a598202f10111af054ae77 | |
// @downloadURL https://gist.github.com/benok/301f7a9667a598202f10111af054ae77/raw/github-apply-dark-theme-on-private-repos.user.js | |
// @updateURL https://gist.github.com/benok/301f7a9667a598202f10111af054ae77/raw/github-apply-dark-theme-on-private-repos.user.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/ash | |
list_pkgs() { | |
opkg list-installed | cut -f 1 -d " " | |
} | |
show_deps() { | |
opkg depends $1 | sed -e 1d -e 's/^\s*//' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Usage: chdir to parent directory & set target directory name to D | |
# (zsh pipe related -> https://stackoverflow.com/a/4995875/26736) | |
# (md5 creation -> https://serverfault.com/a/120597/70666) | |
# TODO: convert this one liner to function or shell script with options | |
tar cvSf - $D 2> >(xargs -I '{}' sh -c "test -f '{}' && md5sum '{}'" |tee $D.md5) | pv -pteb -s $(du -sB1 $D |awk '{print$1}') | nice -10 zstd -15 --sparse -T0 | tee ./$D.tar.zst | md5sum | sed "s/-/$D.tar.zst/" >> $D.md5 |
NewerOlder