Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Destablizing Authoritarian governments to ₿UIDL ₿ack ₿etter

nolim1t - f6287b82CC84bcbd nolim1t

💭
Destablizing Authoritarian governments to ₿UIDL ₿ack ₿etter
View GitHub Profile
@nolim1t
nolim1t / socket.c
Created Jun 10, 2009
HTTP Request in C using low level write to socket functionality
View socket.c
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <netinet/tcp.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
View monero.txt
467uy7xzWLji5rurva74Qkjn2yPnTiTfQEuUqos2RyeLFHD9tDihRwzAwsNWXUouEa8U4ow5hwamwE8ZihyLKpYiSTqFwMp
View satsback-draw.sh
#!/bin/bash
getArray() {
array=()
while IFS= read -r line
do
array+=("$line")
done < "$1"
}
@nolim1t
nolim1t / sign.js
Last active Jul 19, 2022
node.js HMAC SHA512 signing
View sign.js
var crypto = require("crypto");
function encrypt(key, str) {
var hmac = crypto.createHmac("sha512", key);
var signed = hmac.update(new Buffer(str, 'utf-8')).digest("base64");
return signed
}
View whatisthematrix.sh
while :;do echo $LINES $COLUMNS $(($RANDOM%$COLUMNS)) $(perl -CO -E "say chr $(($RANDOM%99+180))");sleep .02;done|gawk '{a[$3]=0;for(x in a){o=a[x];a[x]++;printf "\033[%s;%sH\033[2;32m%s",o,x,$4;printf "\033[%s;%sH\033[1;37m%s\033[0;0H",a[x],x,$4;if(a[x]>$1)a[x]=0;}}'
@nolim1t
nolim1t / nginx-vhost.conf
Created Dec 15, 2021
Regex based forwarding for nginx
View nginx-vhost.conf
server {
# match all requests
location ~ ^(.*)$ {
# send headers to client
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
# forward to below
proxy_pass http://localhost:12345;
}
# listen on ports
View proof-of-profile.txt
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
I am the owner of the following profiles:
Matrix
@nolim1t:tedomum.net
@nolim1t:matrix.nolim1t.co (Because sovereignty rocks!)
@nolim1t:converser.eu (Because decentralization - currently down)
@nolim1t:matrix.org (OG account, but I've deleted it)
@nolim1t
nolim1t / joinmarket-cli-install.md
Created Aug 15, 2021
CLI Joinmarket (Modified for joinmarket base)
@nolim1t
nolim1t / node-backup.sh
Created Jul 28, 2021
best used with github.com/lncm/thebox-compose-system (or probably citadel node which uses the same structure. May also work with umbrel too)
View node-backup.sh
#!/bin/bash
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
# IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
@nolim1t
nolim1t / gist:208993
Created Oct 13, 2009
Converting a binary file to base64 encoding
View gist:208993
<?php
$file="/parh/to/binary";
$fp = fopen($file, "rb");
$binary = fread($fp, filesize($file));
echo base64_encode($binary);
?>