Skip to content

Instantly share code, notes, and snippets.

View nolim1t's full-sized 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 June 10, 2009 03:14
HTTP Request in C using low level write to socket functionality
#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>
@nolim1t
nolim1t / gist:458126
Created June 30, 2010 02:10
How to visualize UITouch events on the iPhone/iPad
/*
* This bit of code is to visualize how touches works
* so that we can use it to drag around objects on a screen.
*/
-(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
UITouch *touch = [touches anyObject];
CGPoint touchPoint = [touch locationInView:self.view];
NSLog(@"touchesBegan: X: %2.2f Y: %2.2f", touchPoint.x, touchPoint.y);
}
@nolim1t
nolim1t / sign.js
Last active June 15, 2023 21:35
node.js HMAC SHA512 signing
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
}
@nolim1t
nolim1t / bitcoin.conf
Created November 24, 2019 14:39
My bitcoin conf works on 0.19.0.1 (Release Notes: https://bitcoin.org/en/release/v0.19.0.1)
server=1
rest=1
rpcallowip=127.0.0.1
rpcallowip=192.168.0.1/24
rpcallowip=192.168.1.1/24
rpcallowip=10.0.0.0/8
rpcallowip=172.16.0.0/12
maxmempool=512
#txindex=1
467uy7xzWLji5rurva74Qkjn2yPnTiTfQEuUqos2RyeLFHD9tDihRwzAwsNWXUouEa8U4ow5hwamwE8ZihyLKpYiSTqFwMp
#!/bin/bash
getArray() {
array=()
while IFS= read -r line
do
array+=("$line")
done < "$1"
}
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 December 15, 2021 05:45
Regex based forwarding for nginx
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
@nolim1t
nolim1t / proof-of-profile.txt
Last active October 12, 2021 09:20
Proof of Profile
-----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 August 15, 2021 06:29
CLI Joinmarket (Modified for joinmarket base)