Skip to content

Instantly share code, notes, and snippets.

View arzzen's full-sized avatar
Focusing

arzzen

Focusing
  • ☁️
  • Ỏ̷͖͈̞̩͎̻̫̫̜͉
View GitHub Profile
@munificent
munificent / generate.c
Last active January 27, 2025 18:14
A random dungeon generator that fits on a business card
#include <time.h> // Robert Nystrom
#include <stdio.h> // @munificentbob
#include <stdlib.h> // for Ginny
#define r return // 2008-2019
#define l(a, b, c, d) for (i y=a;y\
<b; y++) for (int x = c; x < d; x++)
typedef int i;const i H=40;const i W
=80;i m[40][80];i g(i x){r rand()%x;
}void cave(i s){i w=g(10)+5;i h=g(6)
+3;i t=g(W-w-2)+1;i u=g(H-h-2)+1;l(u
@Buom01
Buom01 / ic_logo.xml
Last active December 23, 2019 18:03
TWA splashscreen
<!---
IMPORTANT NOTE: This gist in now useless since splashscreen are now supported: https://github.com/GoogleChromeLabs/svgomg-twa/pull/23/files#diff-4ad2826e1292d083a4995de57bfaf133
-->
<!-- import here your svg logo (in drawables)
See https://stackoverflow.com/questions/30923205/easiest-way-to-use-svg-in-android/39266840#39266840
-->
@tkrotoff
tkrotoff / FrontendFrameworksPopularity.md
Last active April 9, 2025 13:42
Front-end frameworks popularity (React, Vue, Angular and Svelte)
@dodikk
dodikk / watchTokenTransfers.js
Created October 2, 2018 14:42 — forked from dsemenovsky/watchTokenTransfers.js
Token transfers watcher
function watchTokenTransfers() {
// Instantiate web3 with WebSocketProvider
const web3 = new Web3(new Web3.providers.WebsocketProvider('wss://rinkeby.infura.io/ws'))
// Instantiate token contract object with JSON ABI and address
const tokenContract = new web3.eth.Contract(
TOKEN_ABI, process.env.TOKEN_CONTRACT_ADDRESS,
(error, result) => { if (error) console.log(error) }
)
@SalahHamza
SalahHamza / install_ngrok.md
Last active March 18, 2025 14:06
How to install ngrok on linux subsystem for windows
Real-life becnhmarks (master vs patch)
======================================
master typed diff
blog 169 168 -0.77%
fw 818 809 -1.10%
qdig 716 716 0.04%
scrum 517 502 -2.84%
ZF1 Hello 2,637 2,605 -1.23%
ZF2 Test 675 667 -1.13%
@flipace
flipace / gdpr-list.json
Last active March 24, 2025 12:59
List of URLs where you can request your data according to GDPR/DSGVO laws
[
{ "name": "Amazon", "url": "https://www.amazon.de/gp/help/customer/contact-us?", "note": "Select, in this order: 'Digitale Dienste' -> 'Datenauskunft beantragen' -> 'Datenauskunft für eine spätere Zusendung beantragen' -> 'Daten aus allen Kategorien anfordern' -> Namen eingeben und Nachricht vervollständigen. -- Amazon Support Staff will review your request and send you an email, asking about a postal address. If you don't answer to their mail, your request won't be fulfilled." },
{ "name": "McDonalds", "url": "https://corporate.mcdonalds.com/corpmcd/gdpr-rights-center.html" },
{ "name": "willhaben.at", "url": "https://datenschutz.willhaben.at/" },
{ "name": "Spotify", "url": "https://www.spotify.com/account/privacy/" },
{ "name": "Google", "url": "https://takeout.google.com" },
{ "name": "PlayStation", "email": "[email protected]" },
{ "name": "Humble Bundle", "email": "[email protected]" },
{ "name": "REWE Group AT", "email": "[email protected]" },
{ "name": "BILLA", "url": "https:
#!/bin/bash
if [ "$1" == "-h" ] || [ "$1" == "--help" ]
then
me=`basename "$0"`
echo "Find information about TCP/IP ports."
echo -e "Usage:\n\t./${me} [port|service]"
echo -e "Example:\n\t./${me} snmp\n\t./${me} 3389"
exit 1
fi
@polonskiy
polonskiy / encrypted-git-repo.md
Created February 7, 2018 12:13
Transparent Git Encryption

Transparent Git Encryption

This document has been modified from its [original format][m1], which was written by Ning Shang ([email protected]). It has been updated and reformatted into a [Markdown][m2] document by [Woody Gilk][m3] and [republished][m4].

Description

When working with a remote git repository which is hosted on a third-party storage server, data confidentiality sometimes becomes

@bsartek
bsartek / send_mj_templates.sh
Created January 25, 2018 17:14
Send a mailjet template through a shell script using environment variables
#!/bin/bash
: ${MJ_APIKEY_PUBLIC:="YOUR PUBLIC APIKEY HERE"}
: ${MJ_APIKEY_PRIVATE:="YOUR PRIVATE APIKEY HERE"}
: ${TEMPLATE:="291077"}
: ${TO:='[email protected]'}
: ${TO_NAME:='Testers'}
: ${FROM:='[email protected]'}
: ${FROM_NAME:='Your name'}
: ${SUBJECT:="Email sent by script $0"}