Skip to content

Instantly share code, notes, and snippets.

View FFY00's full-sized avatar
🌈
struggling to live

Filipe Laíns FFY00

🌈
struggling to live
View GitHub Profile
@FFY00
FFY00 / fix-up.txt
Created August 4, 2018 14:32
Fixup git commit (typo)
git add ... # Stage a fix
git commit --fixup=a0b1c2d3 # Perform the commit to fix broken a0b1c2d3
git rebase -i --autosquash a0b1c2d3~1 # Now merge fixup commit into broken commit
@FFY00
FFY00 / PKGBUILD
Created August 20, 2018 17:24
Datrie PKGBUILD
# Maintainer: Clint Valentine <valentine.clint@gmail.com>
# Contributor: Filipe Laíns (FFY00) <lains@archlinux.org>
pkgbase=python-datrie
_pkgname=${pkgbase#python-}
pkgname=(python-$_pkgname python2-$_pkgname)
pkgver=0.7.1
pkgrel=2
pkgdesc="Super-fast, efficiently stored Trie for Python"
arch=('x86_64')
@FFY00
FFY00 / TransparencyConfig.theme
Last active September 9, 2018 15:58
My Discord Setup
//META {"name":"Transparency Theme","description":"If you have any question or suggestion just message me at discord _Twiistrz#8016","author":"_Twiistrz#8016","version":"Config"}*//{}
/**
* To make editing this theme easier I recommend using Notepad++ , you can download it for free here - https://notepad-plus-plus.org/download/
*
* Any images you use MUST end with .jpg or .png or any other image extension
* This is NOT a valid link, https://imgur.com/a/ycjL2
* This is a valid link, https://i.imgur.com/rCqnrQ7.jpg
*
* If you find an image I would STRONGLY recommend rehosting the image on imgur https://imgur.com/upload
@FFY00
FFY00 / settings.json
Created September 8, 2018 21:02
My VS Code settings
{
"workbench.iconTheme": "material-icon-theme",
"workbench.colorTheme": "Material Theme Darker",
"workbench.sideBar.location": "left",
"window.zoomLevel": -0.05,
"window.restoreWindows": "all",
"editor.fontFamily": "Source Code, Menlo, Monaco, Courier New, Monospace",
"editor.fontSize": 14,
@FFY00
FFY00 / timeout.txt
Created September 9, 2018 15:50
Change Hexchat timeout
/set net_ping_timeout <value (secs)>
@FFY00
FFY00 / config
Created September 16, 2018 19:24
Restore Gnome sessions in i3wm
# Restore GNOME's settings
exec --no-startup-id /usr/libexec/gnome-settings-daemon-localeexec
# Fix a bug in gnome-settings-daemon: http://feeding.cloud.geek.nz/posts/creating-a-modern-tiling-desktop-environment-using-i3/
exec --no-startup-id dconf write /org/gnome/settings-daemon/plugins/cursor/active false
@FFY00
FFY00 / output.log
Created October 21, 2018 21:57
Manticore Test
2018-10-21 22:45:34,168: [15565] m.c.c.x86:WARNING: CPUID with EAX=80000000 not implemented @ 7ffffffcd26b
2018-10-21 22:45:34,374: [15565] m.c.executor:ERROR: Exception:
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/manticore/platforms/linux.py", line 2235, in execute
self.current.execute()
File "/usr/lib/python3.7/site-packages/manticore/core/cpu/abstractcpu.py", line 851, in execute
raise e
File "/usr/lib/python3.7/site-packages/manticore/core/cpu/abstractcpu.py", line 841, in execute
implementation(*insn.operands)
File "/usr/lib/python3.7/site-packages/manticore/core/cpu/abstractcpu.py", line 938, in new_method
@FFY00
FFY00 / solve.py
Created October 21, 2018 23:05
Mainticore Test 2
#!/usr/bin/python
from manticore import Manticore
from manticore.models import strlen
m = Manticore('main-sec-pw')
buffer_addr=0
num_bytes=127
@FFY00
FFY00 / nameplate.scad
Last active November 26, 2018 00:49
Unisolder Frontplate - IPLeiria Hardware CTF Team
/// Vars
// Plaque
width = 55;
height = 25;
round_radius = 5;
tickness = 2.5;
// Hole
hole_diameter = 3.2;
@FFY00
FFY00 / screw_hole.scad
Last active December 7, 2018 18:09
Screw Hole module for OpenSCAD
module screw_hole(d = 3, height = 30, $fn = 80) {
hull() {
// Down small
translate([0, -height/2, 0])
sphere(d = d / 1.4, center = true, $fn = $fn);
// Up small
translate([0, height/2, 0])
sphere(d = d / 1.4, center = true, $fn = $fn);