Skip to content

Instantly share code, notes, and snippets.

Avatar
👀
hungry mind

s.cmanjarrez scmanjarrez

👀
hungry mind
View GitHub Profile
@scmanjarrez
scmanjarrez / userChrome.css
Last active Aug 13, 2021
firefox context menu and tab context menu css for linux http://imgur.com/fv4L3Cwl.png
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
scmanjarrez / route.sh
Last active Feb 16, 2021
fix routing (ssh) when connected to openvpn
View route.sh
# https://serverfault.com/questions/659955/allowing-ssh-on-a-server-with-an-active-openvpn-client
# https://serverfault.com/a/660106
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
scmanjarrez / guake2iterm.sh
Last active Aug 2, 2020
Convert guake current theme to iterm theme.
View guake2iterm.sh
#!/bin/bash
while getopts ":o:" opt; do
case ${opt} in
o) output=$OPTARG ;;
esac
done
if [ -z "$output" ]; then
echo "Usage: $0 -o output_file"
@scmanjarrez
scmanjarrez / tmux-migrate-options.py
Created Oct 10, 2019 — forked from tbutts/tmux-migrate-options.py
For tmux configs: Merge deprecated/removed -fg, -bg, and -attr options into the -style option
View tmux-migrate-options.py
#!/usr/bin/env python
# vim: set fileencoding=utf-8
#
# USAGE:
# 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-migrate-options.py ~/.tmux.conf.orig > ~/.tmux.conf
#
@scmanjarrez
scmanjarrez / fkucortana.ps
Created Aug 17, 2019
fix the f***ng cortana index problem resulting in best match not clickable
View fkucortana.ps
Get-AppXPackage -Name Microsoft.Windows.Cortana | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
View dark-scrollbar.as.css
scrollbar, scrollbar *, scrollcorner {
-moz-appearance: none !important;
--scrollbar-width: 10px;
--scrollbar-height: var(--scrollbar-width);
}
scrollbar, scrollcorner {
background: #282828 !important;
}
scrollbar[orient="vertical"] {
@scmanjarrez
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
scmanjarrez / setColorsSiko.py
Created May 11, 2018
change colors of calls and crypto-xor in IDA Pro, from https://practicalmalwareanalysis.com/setcolorssiko-py/
View setColorsSiko.py
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":
funcCalls.append(i)
print "Number of calls: %d" % (len(funcCalls))
@scmanjarrez
scmanjarrez / radare.md
Last active May 4, 2018
radare cheatsheet (official cheatsheet)
View radare.md

Radare2

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
scmanjarrez / filter_monitor.js
Created Mar 14, 2018
filter alt+tab by monitor, need Alternatetab addon
View filter_monitor.js
// https://www.reddit.com/r/gnome/comments/507bqd/only_feature_im_missing_alttab_filterd_by_monitor/
// 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;
}