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 | |
# By Zibri (www.zibri.org) | |
# Usage: reindent script.sh >script_nicer.sh | |
# | |
reindent () | |
{ | |
rstr=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1); | |
source <(echo "Zibri () {";cat "$1"|sed -e "s/^\s\s\s\s/$rstr/"; echo "}"); | |
echo '#!/bin/bash'; | |
declare -f Zibri | head --lines=-1 | tail --lines=+3 | sed -e "s/^\s\s\s\s//;s/$rstr/ /" |
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 | |
# Get android network usage statistics from phone. | |
# by Zibri | |
function getUsage () | |
{ | |
rb=0; | |
tb=0; | |
for a in $(adb shell dumpsys netstats|grep "rb="|cut -d "=" -f 3|cut -d " " -f 1); | |
do | |
rb=$((rb+a/1024)); |
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
// This code produces a different 6 digits OTP every 30 seconds. | |
// numDigits must be between 1 and 8 | |
otp = await (async (secret,numDigits)=>(Array.prototype.reduce.call(new Uint8Array(await crypto.subtle.digest('SHA-512',new TextEncoder().encode(secret+(Math.floor(new Date().getTime()/30000)).toString(16)))), (a,b,c)=>((((a*257) ^ b) >>> 0) % (10**numDigits)) )).toString().padStart(numDigits,"0")) | |
("test_secret",6) | |
OR | |
Object.defineProperty(window, 'otp', { get: async (secret="test_secret",numDigits=6)=>(Array.prototype.reduce.call(new Uint8Array(await crypto.subtle.digest('SHA-512',new TextEncoder().encode(secret+(Math.floor(new Date().getTime()/30000)).toString(16)))), (a,b,c)=>((((a*257) ^ b) >>> 0) % (10**numDigits)) )).toString().padStart(numDigits,"0") }); |
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
diff -u openssh-7.6p1/scp.c openssh-7.6p1Z/scp.c | |
--- openssh-7.6p1/scp.c 2020-01-15 17:20:57.000000000 +0200 | |
+++ openssh-7.6p1Z/scp.c 2020-01-15 17:19:37.699437700 +0200 | |
@@ -153,6 +153,9 @@ | |
/* This is the program to execute for the secured connection. ("ssh" or -S) */ | |
char *ssh_program = _PATH_SSH_PROGRAM; | |
+/* This is used to store the source_port specified by -Z */ | |
+char *source_port = NULL; | |
+ |
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 | |
# | |
# By Zibri (2019) | |
# | |
# Usage: gitclean username password giturl | |
# | |
gitclean () | |
{ | |
odir=$PWD; | |
if [ "$#" -ne 3 ]; then |
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
// CRT effect with flickering scanlines and RGB grid. | |
// By zibri@zibri.org | |
// <html class="crt"> </html> | |
@keyframes flicker { | |
50% { | |
top: -3px | |
} | |
} |
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
@echo off | |
title Microsoft Office 2019 versions are supported!&cls&echo | |
============================================================================&echo | |
#Project: Activating Microsoft software products for FREE without software&echo | |
============================================================================&echo.&echo | |
#Supported products:&echo - Microsoft Office Standard 2019&echo - Microsoft Office Professional Plus 2019&echo.&echo.&(if exist | |
"%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles%\Microsoft Office\Office16")&(if exist | |
"%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles(x86)%\Microsoft Office\Office16")&(for /f %%x in ('dir /b | |
..\root\Licenses16\ProPlus2019VL*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&(for /f %%x in ('dir /b | |
..\root\Licenses16\ProPlus2019VL*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&echo.&echo |
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 irc(nickname, server, chan, onmsg, onjoin) { | |
nickname = nickname || "nick_" + new Date().getTime().toString(36) + new Date().getMilliseconds().toString(36) | |
chan = chan || "Z" + new Date().getTime().toString(18) + Math.random().toString(36).substring(2) | |
server = server || "irc.unrealircd.org" | |
var init = 0 | |
var ws = new WebSocket("wss://" + server); | |
var s = (c,l)=>setTimeout(console.log.bind(this, "%c%s", "font-size: 14px; color:" + c, new Date().toLocaleString("it") + ": " + l)) | |
ws.onmessage = m=>{ | |
if (m.data.indexOf("PING") == 0) | |
ws.send(m.data.replace("PI", "PO")); |
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
;--------------------------------------- | |
; Vertical Bars | |
; By Zibri/RamJam 2020 | |
;--------------------------------------- | |
.ORG $2f5 | |
boot | |
SEI | |
newline TSX |
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 | |
# install megacmd from mega.nz first. | |
# put your usernames and passwords | |
# run this once a month :D | |
while read a b;do | |
mega-login &>/dev/null $a $b && mega-logout &>/dev/null && echo refreshed $a || echo error $a | |
done <<EOF | |
email1 password1 | |
email2 password2 |