Skip to content

Instantly share code, notes, and snippets.

View chezsick's full-sized avatar
🐦
Bonjour GitHub Et Microsoft !

Newa chezsick

🐦
Bonjour GitHub Et Microsoft !
View GitHub Profile
@chezsick
chezsick / pterm.txt
Created January 4, 2020 18:04
Colorize PTerm From Futty
pterm -xrm "pterm.Colour0:194,198,199" -xrm "pterm.Colour1:255,255,255" -xrm "pterm.Colour2:0,0,0" -xrm "pterm.Colour3:77,73,97" -xrm "pterm.Colour4:0,0,0" -xrm "pterm.Colour5:2,162,238" -xrm "pterm.Colour6:0,0,0" -xrm "pterm.Colour7:95,95,75" -xrm "pterm.Colour8:156,41,41" -xrm "pterm.Colour9:255,108,108" -xrm "pterm.Colour10:0,151,64" -xrm "pterm.Colour11:100,253,162" -xrm "pterm.Colour12:218,170,3" -xrm "pterm.Colour13:244,248,139" -xrm "pterm.Colour14:39,46,139" -xrm "pterm.Colour15:120,167,255" -xrm "pterm.Colour16:137,0,187" -xrm "pterm.Colour17:200,125,250" -xrm "pterm.Colour18:60,170,183" -xrm "pterm.Colour19:142,242,253" -xrm "pterm.Colour20:197,197,197" -xrm "pterm.Colour21:254,254,254"
@chezsick
chezsick / gencolorspace.php
Created December 20, 2019 00:14
Generate A Unique Color Space
<?php
function random($min,$max)
{
$out = (pow(256,2)*ord(fgetc(STDIN)))+(pow(256,1)*ord(fgetc(STDIN)))+(pow(256,0)*ord(fgetc(STDIN)));
return (($out/16777216)*($max-$min))+$min;
}
$coefr = random(0,1);
$coefg = random(0,1);
$coefb = random(0,1);
echo "# Encode ::\n";
@chezsick
chezsick / datafuck.py
Last active November 27, 2019 12:14
DataFuck ;;;;;;;;;;;;;; prog datafuck begin end
import sys
import math
fs = open(sys.argv[1])
begin = int(sys.argv[2])
end = int(sys.argv[3])
lines = fs.readlines()
mux = int(lines[0])
def tri(n):
return pow(n+1,2)/2
@chezsick
chezsick / syster_logicemu.php
Last active November 25, 2019 12:56
Generate Parameter For CryptImage, But With LogicEmu ;;;;;;;;;;;;;;;; args ::::::: prog xnor_field xor_field cut_begin/primary_table cut_end/demi ;;;;;;;;;; input ::::: num_frame ;;;;;; output ::::::::: parameter ;;;;;;;;;;;; stdin :::::: urandom ;;;;;; stdout ::::::: circuit
<?php
echo "s s s s s s s s s s s s s s s s s s s s s s s s \n| | | | | | | | | | | | | | | | | | | | | | | |I1";
for ($l = 0;$l < intval($argv[1]);$l++)
{
echo "\n";
$mat = array_fill(0,32,null);
for ($a = 0;$a < 24;$a++)
{
$mat[$a] = ord(fgetc(STDIN));
}
@chezsick
chezsick / webworld.py
Last active November 21, 2019 22:36
Generate Your Web Graph For Fun! ;;;;;;;;;;;;;;;;;; args :::::::::::::::: prog webname num_pages
import sys
import random
import os
webname = str(sys.argv[1])
npages = int(sys.argv[2])
syllab = "azertyuiopqsdfghjklmwxcvbn3"
random.seed(webname)
syc = len(syllab)
for l in range(1,npages+1):
fs = open("%s.txt" %(l),"w")
@chezsick
chezsick / secret_cantread.txt
Created November 17, 2019 06:07
Create A Secret For A Human Can't Read!
# encode
convert +antialias -font $font -pointsize 16 label:$code \( +clone -negate \) -fx "i%2?u:v" $output
# decode
convert $input \( +clone -negate \) -fx "i%2?u:v" $output
@chezsick
chezsick / iptv_teletext.py
Last active November 14, 2019 08:48
Generate A Teletext Just For Fun ;;;;;;;;;;;;;;; args ::::::::::::::: url channelname output
import sys
import hashlib
import random
import os
from tempfile import mkstemp
a = mkstemp()[1]
b = mkstemp()[1]
f = mkstemp()[1]
syllab = "azertyuiopqsdfghjklmwxcvbn3"
font = "/usr/local/share/fonts/EuropeanTeletext.ttf"
@chezsick
chezsick / podcastzeronet.bash
Last active November 12, 2019 03:20
Make A Podcast For ZeroNet ;;;;;;;;;;;;;;;;;;; args :::::::::::::::::::: prog address privatekey timesplit
address=$1
privatekey=$2
timesplit=$3
time=0
rec livemain.mp3 trim 0 $timesplit
mv livemain.mp3 data/$address/livemain.mp3
printf "<audio controls autoplay=true><source src='livemain.mp3#t=$time'></audio>" > data/$address/index.html
python3 zeronet.py siteSign --publish $address $privatekey
time=$(expr $time + $timesplit)
while test 1
@chezsick
chezsick / geninterruption.bash
Last active June 26, 2020 05:27
Create Your Own Interruption! ;;;;;;;;;;; args :::::::::: vid1 vid2 vid3 vid4 vid5 outvid [second_for_countdown] ;;;;;;;;;;;;;;;;;;;;;;;; Inspired By ::::::::::::::::::::: https://www.youtube.com/watch?v=V3qdak_VgqQ
intone=30
inttwo=43
intthree=67
intfour=101
intfive=115
tmp=$(mktemp -d)
ffmpeg -y -t $intone -i "$1" -vf framerate=40,scale=768x576 -vcodec libx264 -an $tmp/one.avi
ffmpeg -y -t $inttwo -i "$2" -vf framerate=40,scale=768x576 -vcodec libx264 -an $tmp/two.avi
@chezsick
chezsick / tirage.php
Last active October 22, 2019 08:54
Recreate A Lotto Like Rapido From Francaise Des Jeux With PipeGlade ;;;;;;;; cmd ::::::: php tirage.php < /dev/urandom | pipeglade tirage.ui
<?php
// Debug De Config
$nbballdef = 30;
$tiragedef = 5;
$time = 150;
// Fin De Config
$numero = 1;
while (false !== ($o = fread(STDIN,$tiragedef)))
{
echo "numero set_text \"N" . $numero ."\"\n";