Skip to content

Instantly share code, notes, and snippets.

View retornam's full-sized avatar
🎯
Focusing

retornam retornam

🎯
Focusing
View GitHub Profile
@retornam
retornam / sorted-all-tenders.csv
Last active October 3, 2023 15:06
all-tenders.csv
This file has been truncated, but you can view the full file.
Awarding Agency:,Tender Package No:,Tender Type:,Contract Type:,Lot #:,Tender Description:,Approval Auth:,Justification:,Contract Date:,Delivery / Completion Date:,Contract Currency:,Contract Award Price:,Contract Awarded To:,Company Email:,Company Address:,Company Tel:,Supplier #:
Controller And Accountant General Department,GR/CAGD/GD/0005/12/60,-,Single Sourced,1,,Central Tender Review Committee,-,"03rd July, 2013","28th August, 2013",Ghana Cedi,Gh¢12000000.00,Innolink Limited,,"P.O.Box AF 274,Accra",,-
Forestry Commission,IFT NO.FC/NCT/GR/05/2014,NCT,Open Tender,1,,Entity Tender Committee,"11th June, 2014","01st June, 2015",Ghana Cedi,Gh¢1176600.00,Auto Mall Ghana Limited,,"P. O. Box CT 5766, Cantonment, Accra, Ghana",,-
Driver and Vehicle Licensing Authority (DVLA),GR/DVLA/GD/0076/2013,NCT,Open Tender,1,"All tenders are to be accompanied by the following documents: 1. Valid SSNIT Clearance Certificates as at the date of opening 2. Valid GRA Clearance Certificates as at date of opening 3. VAT Registra
@retornam
retornam / cheat_sheet.txt
Created January 22, 2023 00:57
GDB cheat sheet
GDB commands by function - simple guide
---------------------------------------
More important commands have a (*) by them.
Startup
% gdb -help print startup help, show switches
*% gdb object normal debug
*% gdb object core core debug (must specify core file)
%% gdb object pid attach to running process
% gdb use file command to load object
@retornam
retornam / BufferOverflow.md
Created January 21, 2023 23:34 — forked from AliZafar120/BufferOverflow.md
Buffer Overflow

// taken from source https://gist.github.com/apolloclark/6cffb33f179cc9162d0a

Disabling memory randomization, enabling core dumps

cat /proc/sys/kernel/randomize_va_space
sudo bash -c 'echo "kernel.randomize_va_space = 0" >> /etc/sysctl.conf'
sudo sysctl -p
cat /proc/sys/kernel/randomize_va_space
# verify "0"
ulimit -c unlimited
@retornam
retornam / pushgen.py
Created September 22, 2022 19:51 — forked from offlinemark/pushgen.py
Shellcode helper. Given a string, generate push instructions to push string onto stack.
#!/usr/bin/env python
'''
Tool for writing shellcode. Give it a string to push onto the stack and it
generates the corresponding push instructions.
'''
import sys
@retornam
retornam / resources.md
Created March 24, 2022 19:53 — forked from muff-in/resources.md
A curated list of Assembly Language / Reversing / Malware Analysis / Game Hacking-resources

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

@retornam
retornam / key.md
Created March 31, 2019 02:39 — forked from colingourlay/key.md
Twitter (un)official Consumer Key

Twitter Official Consumer Key

Twitter for Android

type:            PIN
Consumer key:    3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for iPhone

type:            PIN

Consumer key: IQKbtAYlXLripLGPWd0HUA

@retornam
retornam / postgres-cheatsheet.md
Last active May 25, 2018 18:11 — forked from Kartones/postgres-cheatsheet.md
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Restore from file

@retornam
retornam / Jenkinsfile.groovy
Created January 17, 2018 19:26 — forked from Faheetah/Jenkinsfile.groovy
Jenkinsfile idiosynchrasies with escaping and quotes
node {
echo 'No quotes in single backticks'
sh 'echo $BUILD_NUMBER'
echo 'Double quotes are silently dropped'
sh 'echo "$BUILD_NUMBER"'
echo 'Even escaped with a single backslash they are dropped'
sh 'echo \"$BUILD_NUMBER\"'
echo 'Using two backslashes, the quotes are preserved'
sh 'echo \\"$BUILD_NUMBER\\"'
echo 'Using three backslashes still results in preserving the single quotes'
@retornam
retornam / country-bounding-boxes.py
Created November 16, 2017 20:45 — forked from graydon/country-bounding-boxes.py
country bounding boxes
# extracted from http//www.naturalearthdata.com/download/110m/cultural/ne_110m_admin_0_countries.zip
# under public domain terms
country_bounding_boxes = {
'AF': ('Afghanistan', (60.5284298033, 29.318572496, 75.1580277851, 38.4862816432)),
'AO': ('Angola', (11.6400960629, -17.9306364885, 24.0799052263, -4.43802336998)),
'AL': ('Albania', (19.3044861183, 39.624997667, 21.0200403175, 42.6882473822)),
'AE': ('United Arab Emirates', (51.5795186705, 22.4969475367, 56.3968473651, 26.055464179)),
'AR': ('Argentina', (-73.4154357571, -55.25, -53.628348965, -21.8323104794)),
'AM': ('Armenia', (43.5827458026, 38.7412014837, 46.5057198423, 41.2481285671)),