Skip to content

Instantly share code, notes, and snippets.

View sbrannstrom's full-sized avatar

Simon Brännström sbrannstrom

View GitHub Profile
@sbrannstrom
sbrannstrom / tailwind.config.js
Last active January 20, 2021 06:49
Tailwind + Ionic colors
// Add this section as your color section in tailwind.config.js so that you can use the ionic defined colors, ex: 'bg-primary-default':
colors: {
primary: {
default: 'var(--ion-color-primary)',
shade: 'var(--ion-color-primary-shade)',
tint: 'var(--ion-color-primary-tint)',
},
secondary: {
default: 'var(--ion-color-secondary)',
shade: 'var(--ion-color-secondary-shade)',
@sbrannstrom
sbrannstrom / game.py
Created December 2, 2019 09:53
Script to beat the game on port 1337 of Vulnhub box 'Djinn'. First thing I've written in python so not very pretty...
from pwn import *
import operator
r = remote('172.16.123.208', 1337)
a = r.readline_startswith('(').decode("utf-8")
first = int(a[1])
oper = a[5]
second = int(a[9])
ops = {"+": operator.add, "-": operator.sub,
'*': operator.mul, '/': operator.truediv}