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
# Download ASH Viewer from https://github.com/akardapolov/ASH-Viewer/releases/ | |
# Check java version and required version on download page | |
java --version | |
# If java is missing, install with | |
apt-get install default-jre |
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
# Download Oracle SQL developer "Other Platforms" from https://www.oracle.com/tools/downloads/sqldev-downloads.html | |
# Check java version and required version on download page | |
java --version | |
# If java is missing, install with | |
apt-get install default-jre |
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
create or replace function bytes2human(val in varchar2) return varchar2 is | |
res varchar2(50); | |
num number; | |
unit varchar2(1); | |
pow integer; | |
type array_t is varray(6) of varchar2(1); | |
pow2unit array_t := array_t('', 'K', 'M', 'G', 'T', 'P'); | |
begin | |
num := regexp_replace(val, '[^0-9,.]', ''); |
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
function post(url, data) { | |
var form = $(document.createElement('form')); | |
$(form).attr("action", url); | |
$(form).attr("method", "POST"); | |
$(form).prop("hidden", true); | |
for (const key in data) { | |
var input = $("<input>") | |
.attr("type", "text") | |
.attr("name", key) |
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/bash | |
### CONFIG INI | |
HOST='subdom' | |
DOMAIN='example.com' | |
PASSWD='<SECRET>' | |
URL='https://dynamicdns.park-your-domain.com/update' | |
### CONFIG END | |
IP=$(curl -s ifconfig.me) |
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
date -us "$(curl -Is google.com | grep '^Date:' | cut -d' ' -f3-)" |
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/bash | |
declare $(xinput | grep -i touchscreen | awk {'print$5'}) | |
monitor=$(xrandr | grep primary | awk {'print$1'}) | |
xinput map-to-output ${id} ${monitor} |
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/bash | |
readonly LOG_FILE=/var/log/droidcam.log | |
exec 1>$LOG_FILE | |
exec 2>&1 | |
port=4747 | |
date | |
env | |
/usr/bin/id |
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
for i in *.wav; do test -f "${i%.wav}.mp3" || lame -b 320 -h "${i}" "${i%.wav}.mp3"; done |
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/bash | |
# To get the vmid, use: | |
# VBoxManage list vms | |
VM="{3b019d6d-16d1-4a8b-909d-8c79e53abd2d}"; | |
XN=4; | |
XS=/tmp/.X11-unix; | |
# Create a new X server on vt8 |
NewerOlder