This file contains hidden or 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
mpd_host = "[email protected]" | |
mpd_port = "6600" | |
mpd_music_dir = "/path/to/music" | |
mpd_stream = "http://mpd.example.com/mpd.mp3" | |
message_delay_time = "3" | |
playlist_shorten_total_times = "yes" | |
playlist_display_mode = "columns" | |
browser_display_mode = "columns" | |
search_engine_display_mode = "columns" | |
playlist_editor_display_mode = "columns" |
This file contains hidden or 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 | |
if [ $# -lt 3 ]; then | |
echo "usage: mirror-git <source repo> <local cache> <destination repo>" >&2 | |
exit 1 | |
fi | |
SOURCE=$1 | |
LOCAL_CACHE=$2 | |
DESTINATION=$3 |
This file contains hidden or 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
diff --git main/php.h main/php.h | |
index c2d0d93..d9be0fa 100644 | |
--- main/php.h | |
+++ main/php.h | |
@@ -245,6 +245,8 @@ END_EXTERN_C() | |
/* macros */ | |
#define STR_PRINT(str) ((str)?(str):"") | |
+#define _STRINGIFY(x) #x | |
+#define STRINGIFY(x) _STRINGIFY(x) |
This file contains hidden or 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> |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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; } |