I hereby claim:
- I am dangmai on github.
- I am dangmai (https://keybase.io/dangmai) on keybase.
- I have a public key whose fingerprint is D3B9 A561 E16B 8625 C784 23E5 9B3E 5E5F E2B9 117D
To claim this, I am signing this object:
import groovy.json.JsonOutput | |
public static String rootTopic() { return "hubitat" } | |
metadata { | |
definition (name: "IOT Link Machine", namespace: "iotlink", author: "Dang Mai") { | |
attribute "idleTime", "number" | |
} | |
capability "Actuator" |
I hereby claim:
To claim this, I am signing this object:
chain --autofree https://boot.netboot.xyz |
# https://boxstarter.org/package/url?https://gist.githubusercontent.com/dangmai/eaa8fed8f116fd2d90f3d0df62f50cad/raw/test-bs.ps1 | |
choco install firefox | |
Invoke-Reboot | |
choco install flashplayerplugin |
# Open in IE: https://boxstarter.org/package/url?https://gist.githubusercontent.com/dangmai/f3c30a601099bb0e6ee0dc24b2713180/raw/boxstarter.ps1 | |
# Prompt for inputs | |
$pcName = Read-Host 'Specify PC Name' | |
$jumpcloudconnectKey = Read-Host 'Specify JumpCloud Connect Key' | |
#---- TEMPORARY --- | |
Disable-UAC | |
#--- Windows Settings --- |
curl -H "Accept: application/vnd.github.everest-preview+json" \ | |
-H "Authorization: token <your-token-here>" \ | |
--request POST \ | |
--data '{"event_type": "manual-jorje-update"}' \ | |
https://api.github.com/repos/dangmai/apex-ast-serializer/dispatches |
Array.from(document.querySelectorAll("li.tracklist-row")).map(it => [it.querySelector(".tracklist-name").innerText, it.querySelector(".tracklist-row__artist-name-link").innerText, it.querySelector(".tracklist-duration").innerText].join("\t")).join("\r\n") |
function FindProxyForURL(url, host) { | |
return "SOCKS5 localhost:9001; SOCKS5 localhost:9002"; | |
} |
#!/bin/bash | |
# It's best to do ssh-copy-id to the destination before running this script | |
# This script takes 3 params: | |
# The first is the prefix for the volume names, usually it's the docker compose dir name without special chars | |
# Second is the user@host ssh location | |
# Third optional: Replace the original prefix with a different prefix on the destrination | |
docker volume ls --format "{{.Name}}" | grep "^${1}" | while read vol | |
do |
#!/usr/bin/env python | |
""" | |
Simulation of Heroku performances under different routing mechanisms (random/ | |
naive vs intelligent). Inspired by RapGenius' simulation, which can be found | |
at http://rapgenius.com/James-somers-herokus-ugly-secret-lyrics. | |
This simulation uses numpy, scipy and pandas for data management/processing, | |
and it has slightly different algorithm than the simulation by RapGenius, | |
though the result is very similar. |