Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
SCREEN_DIR=~/
SCREEN_PROMPT=1
FONT=-*-terminus-*-*-*-*-32-*-*-*-*-*-*-*
GM="gm"
window='root'
#!/bin/bash
# Wavy thing.
# ,.'`'.,.'`'.,.'`'.,.'`'.,.'`'.,.'`'.,
if [ "$1" = "wave" ]; then
cycle=", . ' \` ' ."
while true
do
for char in ${cycle}
@louipc
louipc / matos
Last active October 24, 2021 01:40
First Annual Bitconnect Ceremony
Royal Cliff Hotel's Peach Convention Center
Pattaya, Thailand
28 October 2017
Featured Speaker - Carlos Matos
Transcription by louipc
Misspellings intentional for effect.
Reference link https://youtu.be/lJ_M4Ke3-_o?t=13381
#!/bin/bash
NC='\033[0m'
K='\033[0;30m'
R='\033[0;31m'
G='\033[0;32m'
O='\033[0;33m'
B='\033[0;34m'
M='\033[0;35m'
@louipc
louipc / 8ball.c
Last active October 10, 2024 01:42
/* 8ball.c
* louipc <base64:bG91aXBjQGdteC5jb20=>
* cc -o 8ball 8ball.c
*/
#include <stdio.h>
#include <stdlib.h>
#include <sys/random.h>
/* Pick randomish digit from 0 to divisor */
/* urldecode.c
louipc <base64:bG91aXBjQGdteC5jb20=>
build:
gcc -l curl urldecode.c -o urldecode
*/
#include <stdio.h>
#include <string.h>
#include <curl/curl.h>
#!/bin/python3
import sys
import urllib.parse as parse
print(parse.unquote(sys.argv[1]))
exit(0)
import locale
locale.setlocale(locale.LC_NUMERIC,"en_US")
locale.atof("20,444.44")
@louipc
louipc / bees.c
Last active January 31, 2022 23:07
/* bees.c
* louipc <base64:bG91aXBjQGdteC5jb20=>
* http://www.scpwiki.com/bees
*
* gcc -o bees bees.c
*/
#include <stdio.h>
#include <stdlib.h>
#include <sys/random.h>
/*
Repeat given string
*/
#include <string.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
char *repeat_str(int count, const char *src) {
char *dest = malloc((strlen(src)*count)+1);