Skip to content

Instantly share code, notes, and snippets.

View Kafva's full-sized avatar
😶‍🌫️

Kafva

😶‍🌫️
View GitHub Profile
 e700 dev-bing_small
 e701 dev-css_tricks
 e702 dev-git
 e703 dev-bitbucket
 e704 dev-mysql
 e705 dev-streamline
 e706 dev-database
 e707 dev-dropbox
 e708 dev-github_alt
 e709 dev-github_badge
@Kafva
Kafva / genfont.sh
Last active December 9, 2022 21:56
#!/usr/bin/env bash
: '''
Copied from Kafva/nass
-----------------------------------------------------
Subset a TTF file to only contain extended ASCII and
the glyphs that are actually used in the application.
Also create a .min.css file with classes for each glyph.
'''
die(){ printf "$1\n" >&2 ; exit 1; }
info(){ printf "\033[34m!>\033[0m $1\n" >&2; }
@Kafva
Kafva / nerdfonts.raw
Last active November 12, 2022 14:04
Nerdfonts index
 e700 dev-bing_small
 e701 dev-css_tricks
 e702 dev-git
 e703 dev-bitbucket
 e704 dev-mysql
 e705 dev-streamline
 e706 dev-database
 e707 dev-dropbox
 e708 dev-github_alt
 e709 dev-github_badge
diff --git a/docker-compose.local.yml b/docker-compose.local.yml
index e0d092b..4711da4 100644
--- a/docker-compose.local.yml
+++ b/docker-compose.local.yml
@@ -3,21 +3,113 @@ version: '3'
services:
db:
image: postgres
+ restart: always
environment:
@Kafva
Kafva / chat506.flm
Created July 28, 2020 15:00
Decompiled SWF
movie 'chat506.swf' compressed // flash 6, total frames: 41, frame rate: 24 fps, 760x480 px
fileAttributes attrHasMetadata
metadata '<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:Description rdf:about="" xmlns:dc="http://purl.org/dc/elements/1.1/"> <dc:format>application/x-shockwave-flash</dc:format> </rdf:Description> <rdf:Description rdf:about="" xmlns:xmp="http://ns.adobe.com/xap/1.0/"> <xmp:MetadataDate>2019-01-02T16:51:40Z</xmp:MetadataDate> <xmp:ModifyDate>2019-01-02T16:51:40Z</xmp:ModifyDate> </rdf:Description> <rdf:Description rdf:about="" xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/" xmlns:stRef="http://ns.adobe.com/xap/1.0/sType/ResourceRef#"> <xmpMM:InstanceID>xmp.iid:14E12954AC0EE911999AA803D5FB6508</xmpMM:InstanceID> <xmpMM:DocumentID>xmp.did:14E12954AC0EE911999AA803D5FB6508</xmpMM:DocumentID> <xmpMM:OriginalDocumentID>xmp.did:EF0084689F0EE911999AA803D5FB6508</xmpMM:OriginalDocumentID> <xmpMM:DerivedFrom rdf:parseType="Resource"> <stRef:instanceID>xmp.iid:C7BF12
@Kafva
Kafva / TCP_Connection.py
Last active February 9, 2020 05:59
Scapy scripts to perform a TCP handshake and an attempted slow lorris attack
from scapy.all import *
from random import randint
from sys import maxsize
from time import sleep
from threading import Thread
load_layer('http')
conf.use_pcap = True
# SEQ: Updated when an acknowldegment that ensures the data transmitted has been recieved
#
@Kafva
Kafva / Print_argv.s
Created May 11, 2019 14:22
Printing the argument vector on x86_64 MAC OS X (Assembly)
// •••••••••••••••••••••
// %bx, %bp and %r12 – %r14 (NEED TO BE PUSHED)
// •••••••••••••••••••••
// Argument parsing : %ri , %si , %dx , %cx , %r8 , %r9
// •••••••••••••••••••••
.extern _puts
.text
.global print_argv
print_argv:
// Save the return address from print_argv in %rax