Skip to content

Instantly share code, notes, and snippets.

@droidScriptKiddy
droidScriptKiddy / CLI-not-so-known_handy_utils.md
Created September 8, 2020 23:05 — forked from pabloab/CLI-not-so-known_handy_utils.md
List of not-so-known handy CLI utils

List of not-so-known handy CLI utils

Inspired from this Twitter post.

  • tig # text-mode interface for Git
  • diff-so-fancy # 11.5k
  • ncdu # Disk usage analyzer
  • bat # cat alternative
  • fzf # 20.4k A command-line fuzzy finder. Probably there is a oh-my-zsh plugin
  • httpie # 40.3k CLI, cURL-like tool for humans. See https://httpie.org/
@droidScriptKiddy
droidScriptKiddy / google-app-engine-ip-pool-lookup.sh
Created September 6, 2020 18:07
Google-App-Engine IP-Pool Lookup Shell Script
#!/bin/sh
for R in echo $(for X in $(nslookup -q=TXT _cloud-netblocks.googleusercontent.com 8.8.8.8|grep 'text ='|cut -d\" -f2);do nslookup -q=TXT $(echo $X | grep 'include:' | cut -d\: -f2) 8.8.8.8 | grep 'text =' | cut -d\" -f2;done); do echo $R|grep 'ip'|cut -d\: -f2-;done
#SOURCE https://cloud.google.com/appengine/kb/#static-ip
#RESULT So 6. Sep 20:06:10 CEST 2020
#
#2600:1900::/35
#8.34.208.0/20
#8.35.192.0/21
#8.35.200.0/23
Platform: espressif
---------------------------------------------------------------------------------------------------------------------
Type MCU Frequency Flash RAM Name
---------------------------------------------------------------------------------------------------------------------
huzzah esp8266 80Mhz 4096kB 80kB Adafruit HUZZAH ESP8266
esp_wroom_02 esp8266 80Mhz 4096kB 50kB ESP-WROOM-02
espduino esp8266 80Mhz 4096kB 80kB ESPDuino (ESP-13 Module)
espino esp8266 80Mhz 4096kB 80kB ESPino
espresso_lite_v1 esp8266 80Mhz 4096kB 80kB ESPresso Lite 1.0
espresso_lite_v2 esp8266 80Mhz 4096kB 80kB ESPresso Lite 2.0
{
"packages": [
{
"maintainer": "ESP8266 Community",
"help": {
"online": "http://esp8266.com/arduino"
},
"websiteURL": "https://github.com/esp8266/Arduino",
"platforms": [
{
<!DOCTYPE html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin<style id="jsbin-css">
footer {text-align: center;}
label{display:block;
width: 10em;
}
@droidScriptKiddy
droidScriptKiddy / index.html
Created March 15, 2020 00:27
Web Socket Performance Test // source https://jsbin.com/wajosoliso
<!doctype html>
<title>Web Socket Performance Test</title>
<form onsubmit="return !1;">
<h3>WebSocket Monitor</h3>
<label>Host:</label>
<input type="text" id="host" value="" style="width:160px;" placeholder="ws://hostname:port/ws"/>
@droidScriptKiddy
droidScriptKiddy / css-property-check.js
Created September 15, 2019 01:54 — forked from rageandqq/css-property-check.js
Check if a browser supports a specific CSS property
//Taken from SpinKit (https://github.com/tobiasahlin/SpinKit)
function browserSupportsCSSProperty(propertyName) {
var elm = document.createElement('div');
propertyName = propertyName.toLowerCase();
if (elm.style[propertyName] != undefined)
return true;
var propertyNameCapital = propertyName.charAt(0).toUpperCase() + propertyName.substr(1),
domPrefixes = 'Webkit Moz ms O'.split(' ');
@droidScriptKiddy
droidScriptKiddy / password.js
Last active September 15, 2019 01:54 — forked from ValeriiVasin/password.js
Reading password node.js
// Get a password from the console
function getPassword(done) {
process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.setRawMode(true);
var password = '';
process.stdout.write('Password: ');
process.stdin.on('data', function(ch) {
ch = ch + '';
@droidScriptKiddy
droidScriptKiddy / bye.js
Created August 17, 2019 20:22
d$K DroidScript 'Hello World' Example Remover
var fn=app.GetPath()+'/Hello World';
if(app.IsFolder(fn)){
app.DeleteFolder(fn);
app.WriteFile(fn,'bye');
alert('bye bye...');
}
app.Exit();