This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\Users\protomouse>ssh-agent -c | |
setenv SSH_AUTH_SOCK /tmp/ssh-KSLohh2068/agent.2068; | |
setenv SSH_AGENT_PID 1356; | |
echo Agent pid 1356; | |
C:\Users\protomouse>ssh-agent -c | findstr setenv | |
setenv SSH_AUTH_SOCK /tmp/ssh-vlpZah2964/agent.2964; | |
setenv SSH_AGENT_PID 1840; | |
C:\Users\protomouse>for /f "tokens=2,3 delims= " %a in ('ssh-agent -c ^| findstr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
MOUNTS=(/proc /sys /dev /dev/pts) | |
if [ -n "$1" ]; then | |
for f in "${MOUNTS[@]}"; do | |
mount --bind $f "$1$f" | |
done | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
TTL=60 | |
DYNDNS_CACHE=/tmp/dyndns_cache | |
ip=$(nvram get wan_ipaddr) | |
dyndns_ip=$(cat $DYNDNS_CACHE 2>/dev/null) | |
hostname=$(nvram get wan_hostname) | |
domain=$(nvram get wan_domain) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
CONFIG_FILE="/etc/backup.conf" | |
print_error() { | |
echo "error: $1" 1>&2; | |
} | |
source $CONFIG_FILE 2>/dev/null || { print_error "could not read config file $CONFIG_FILE"; exit 127; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BACKUP_EXCLUDES="/dev /media /mnt /proc /run /sys" | |
BACKUP_KEYRING="/var/lib/duplicity/keyring" | |
BACKUP_KEY="DEADBEEF" | |
BACKUP_INTERVAL_FULL="1W" | |
BACKUP_RETENTION="3M" | |
BACKUP_AWS_KEY="MY_AWS_KEY_ID" | |
BACKUP_AWS_SECRET="MY_AWS_SECRET" | |
BACKUP_BUCKET="my-backup-bucket" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<parent> | |
<groupId>pm.monkey.mygame</groupId> | |
<artifactId>mygame</artifactId> | |
<version>0.1.0-SNAPSHOT</version> | |
</parent> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo scutil --set ComputerName "hyrule" | |
sudo scutil --set HostName "hyrule" | |
sudo scutil --set LocalHostName "hyrule" | |
sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName -string "hyrule" | |
defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false | |
defaults write NSGlobalDomain AppleHighlightColor -string '0.807843 0.976500 0.517647' | |
defaults write NSGlobalDomain AppleShowScrollBars -string "Always" | |
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true | |
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true | |
defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
sudo -v | |
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null & | |
sudo scutil --set ComputerName "homeworld" | |
sudo scutil --set HostName "homeworld" | |
sudo scutil --set LocalHostName "homeworld" | |
sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName -string "homeworld" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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>ANSIBlackColor</key> | |
<data> | |
YnBsaXN0MDDUAQIDBAUGKSpYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS | |
AAGGoKcHCBMXGyImVSRudWxs1QkKCwwNDg8QERJcTlNDb21wb25lbnRzVU5TUkdCXE5T | |
Q29sb3JTcGFjZV8QEk5TQ3VzdG9tQ29sb3JTcGFjZVYkY2xhc3NPECgwLjAyNzQ1MTAw | |
NjcgMC4yMTE3NjQ3MjMxIDAuMjU4ODIzNDg0MiAxTxAoMC4wMzkzODA3NDc4MiAwLjE2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<string>CommandLine</string> | |
<string>JNI</string> | |
<string>BundledApp</string> | |
<string>WebStart</string> | |
<string>Applets</string> |
OlderNewer