Skip to content

Instantly share code, notes, and snippets.

View neochrome's full-sized avatar
⌨️
Hacking

Johan Stenqvist neochrome

⌨️
Hacking
View GitHub Profile
@neochrome
neochrome / netcheck
Created September 16, 2020 11:46
netcheck
#!/usr/bin/env bash
red=$(tput setaf 1)
green=$(tput setaf 2)
blue=$(tput setaf 4)
reset=$(tput sgr0)
while true; do
ERROR=$(ping -q -c 1 -W 10 google.com 2>&1 1>/dev/null)
printf "[${blue}%s${reset}] " $(date +'%H:%M')
if [[ -z "$ERROR" ]]; then

Keybase proof

I hereby claim:

  • I am neochrome on github.
  • I am neochrome (https://keybase.io/neochrome) on keybase.
  • I have a public key ASBVfr7XU-g5TlEeLNOymQxQjv6c8YDnI6CEjZ5S0GMp7Qo

To claim this, I am signing this object:

@neochrome
neochrome / debug-not-working.ml
Last active April 6, 2018 12:37
Bucklescript TEA debugger / inspector hooks
open Tea_app
type 'msg dmsg =
| Client_msg of 'msg
[@@bs.deriving {accessors}]
let standardProgram : ('flags, 'model, 'msg) standardProgram -> Web.Node.t Js.null_undefined -> 'flags -> 'msg programInterface =
fun {init; update; view; subscriptions} pnode args ->
let dinit () =
let model,cmd = init () in
[Adblock Plus 1.1]
##iframe[id^="google_ads_iframe"]