Skip to content

Instantly share code, notes, and snippets.

hungry mind

s.cmanjarrez scmanjarrez

hungry mind
View GitHub Profile
scmanjarrez / userChrome.css
Last active Aug 13, 2021
firefox context menu and tab context menu css for linux
View userChrome.css
menupopup {
--panel-background: var(--arrowpanel-background) !important;
--panel-color: var(--arrowpanel-color) !important;
--panel-border-color: var(--arrowpanel-border-color) !important;
--panel-border-radius: var(--arrowpanel-border-radius) !important;
--panel-padding: var(--arrowpanel-padding) !important;
menuseparator {
appearance: inherit !important;
scmanjarrez /
Last active Feb 16, 2021
fix routing (ssh) when connected to openvpn
ip rule add from x.x.x.x table 128
ip route add table 128 to y.y.y.y/y dev ethX
ip route add table 128 default via z.z.z.z
# Where x.x.x.x is your public IP, y.y.y.y/y should be the subnet
# of your public IP address, ethX should be your public Ethernet
# interface, and z.z.z.z should be the default gateway.
# Note that this hasn't worked for me (using Debian and PrivateInternetAccess)
scmanjarrez /
Last active Aug 2, 2020
Convert guake current theme to iterm theme.
while getopts ":o:" opt; do
case ${opt} in
o) output=$OPTARG ;;
if [ -z "$output" ]; then
echo "Usage: $0 -o output_file"
scmanjarrez /
Created Oct 10, 2019 — forked from tbutts/
For tmux configs: Merge deprecated/removed -fg, -bg, and -attr options into the -style option
#!/usr/bin/env python
# vim: set fileencoding=utf-8
# Back up your tmux old config, run the script and redirect stdout to your conf
# file. Example:
# $ cp ~/.tmux.conf ~/.tmux.conf.orig
# $ python ./ ~/.tmux.conf.orig > ~/.tmux.conf
scmanjarrez /
Created Aug 17, 2019
fix the f***ng cortana index problem resulting in best match not clickable
Get-AppXPackage -Name Microsoft.Windows.Cortana | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
scrollbar, scrollbar *, scrollcorner {
-moz-appearance: none !important;
--scrollbar-width: 10px;
--scrollbar-height: var(--scrollbar-width);
scrollbar, scrollcorner {
background: #282828 !important;
scrollbar[orient="vertical"] {
scmanjarrez / efi_boot.bat
Last active Jun 13, 2018
Change efi boot order
View efi_boot.bat
bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi
REM bcdedit /deletevalue {bootmgr} path \EFI\ubuntu\grubx64.efi
REM bcdedit /set {bootmgr} path \EFI\Microsoft\Boot\bootmgfw.efi
scmanjarrez /
Created May 11, 2018
change colors of calls and crypto-xor in IDA Pro, from
from idautils import *
from idc import *
#Color the Calls off-white
heads = Heads(SegStart(ScreenEA()), SegEnd(ScreenEA()))
funcCalls = []
for i in heads:
if GetMnem(i) == "call":
print "Number of calls: %d" % (len(funcCalls))
scmanjarrez /
Last active May 4, 2018
radare cheatsheet (official cheatsheet)


Command line options

-L: List of supported IO plugins
-q: Exit after processing commands
-w: Write mode enabled
-i [file]: Interprets a r2 script
-A: Analyze executable at load time (xrefs, etc)
-n: Bare load. Do not load executable info as the entrypoint
scmanjarrez / filter_monitor.js
Created Mar 14, 2018
filter alt+tab by monitor, need Alternatetab addon
View filter_monitor.js
// open lg and copypaste this
imports.ui.altTab.WindowSwitcherPopup.prototype._getWindowList = function() {
let workspace = this._settings.get_boolean('current-workspace-only') ? global.screen.get_active_workspace() : null;
let allWindows = global.display.get_tab_list(Meta.TabList.NORMAL, workspace);
allWindows = allWindows.filter(w => w.get_monitor() === global.screen.get_current_monitor());
return allWindows;