Skip to content

Instantly share code, notes, and snippets.

View aldoridhoni's full-sized avatar

Aldo Ridhoni aldoridhoni

View GitHub Profile
@aldoridhoni
aldoridhoni / andromax.m3y
Last active February 9, 2021 14:28
URLs Andromax M3Y
andromax.m3y/mark_home.w.xml
andromax.m3y/mark_title.w.xml
andromax.m3y/mark_set_ip.w.xml
andromax.m3y/mark_set_basic.w.xml
andromax.m3y/mark_conn.w.xml
andromax.m3y/mark_engineer.w.xml
andromax.m3y/rand.w.xml
andromax.m3y/read_imei.w.xml
andromax.m3y/open_diag.w.xml
andromax.m3y/close_diag.w.xml
@aldoridhoni
aldoridhoni / passwd&shadow
Created December 29, 2016 08:01
STB IPTV file tree
root:$1$YinWP4CA$9YsLRT1/rzO2yCHdW4Lx00:0:0:root:/root:/bin/sh
usr:$1$k3sVqeOn$BcweChtGFoYN2n4drIh4n1:1000:1000:Linux User,,,:/var:/bin/sh
dbus:*:81:81:System message bus:/:/sbin/nologin
haldaemon:*:68:68:HAL daemon:/:/sbin/nologin
#!/bin/bash
checkExisting(){
echo "Checking if already existing device on file..."
while read fileLine; do
if [ "$line" = "$fileLine" ]; then
echo "[WARNING] Device already initialized on this system. Nothing to do here"
var supportsWebGL = ( function () { try { return !! window.WebGLRenderingContext && !! document.createElement( 'canvas' ).getContext( 'experimental-webgl' ); } catch( e ) { return false; } } )();
if ( supportsWebGL ) {
alert( 'FTW!' );
}
@aldoridhoni
aldoridhoni / lock.sh
Last active December 19, 2015 03:48
Sleep and Lock
#
# Lock current screen from command line
#
/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend
#
# SSH port forwarding to server
#
remote_ip=8.8.8.8
remote_user=root
local_port=22
remote_port=2222
ssh -f -N -R $remote_ip:$remote_port:localhost:$local_port $remote_user@$remote_ip