Skip to content

Instantly share code, notes, and snippets.

View henri's full-sized avatar
💭
hacking the mainframe

henri henri

💭
hacking the mainframe
View GitHub Profile
@scifiman
scifiman / gist:5109047
Created March 7, 2013 15:56
LaunchDaemon to check Adobe Flash version versus Apple's XProtect.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.company.xprotect_re-enable_adobe_flash</string>
<key>ProgramArguments</key>
<array>
<string>sh</string>
<string>/Library/Scripts/xprotect_re-enable_adobe_flash.sh</string>
@CocoaBeans
CocoaBeans / config.fish
Last active October 27, 2022 21:08
Fish shell custom prompt
########################################################################################
### Fish Custom Overrides
### Creates a shell prompt in the form of:
###
### ----------------------------------------------------------------------- 11:56:05
### kevin@kross /S/L/F/C/V/A/F/L/V/A/Support >
########################################################################################
set --global fish_prompt_username_color 555555
@dmytro
dmytro / ssh-multi.sh
Created October 31, 2012 03:46
Start multiple synchronized SSH connections with Tmux
#!/bin/bash
# ssh-multi
# D.Kovalov
# Based on http://linuxpixies.blogspot.jp/2011/06/tmux-copy-mode-and-how-to-control.html
# a script to ssh multiple servers over multiple tmux panes
starttmux() {
if [ -z "$HOSTS" ]; then
@MagerValp
MagerValp / 99-filtersecuredebug.sh
Created April 30, 2012 09:25
This removes lines containing passwordAsUTF8String in /var/log/secure.log*
#!/bin/bash
#
# This removes lines containing passwordAsUTF8String in /var/log/secure.log*
templog=`mktemp -t securelog`
for logfile in /var/log/secure.log*; do
echo "Filtering passwords from $logfile"
if [ ${logfile##*.} == "bz2" ]; then