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 | |
# name this script /etc/auto.nfs4 and make it executable | |
PATH=/bin | |
tryconnect() { | |
local host="$1" | |
# if you don't have nmap-ncat, but your bash does support pseudo-redirection |
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> | |
<array> | |
<dict> | |
<key>AudioList</key> | |
<array> | |
<dict> | |
<key>AudioBitrate</key> | |
<string>320</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
Name: heroku-toolbelt | |
Version: 3.2.1 | |
Release: 1%{?dist} | |
Summary: Heroku Toolbelt Client | |
Group: Development | |
License: Unknown | |
URL: https://toolbelt.heroku.com/ | |
#Source0: | |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
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 | |
# source this file in the shell | |
# | |
# the shell function tmx will start a new, persistent (meaning you can be | |
# connected to it multiple times at the same time), with the ssh-agent | |
# connection available even if you get disconnected and reconnect | |
# | |
# start or connect to an instance named "default" | |
# tmx |
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
httpd \ | |
-f /dev/null \ | |
-C 'LoadModule autoindex_module modules/mod_autoindex.so' \ | |
-C 'LoadModule log_config_module modules/mod_log_config.so' \ | |
-C 'LoadModule dir_module modules/mod_dir.so' \ | |
-C "DocumentRoot $( readlink -f .)" \ | |
-C 'Listen 7000' \ | |
-C 'ErrorLog /dev/stdout' \ | |
-C 'PidFile /tmp/pidfile' \ | |
-C 'LogFormat "%h %l %u %t \"%r\" %>s %b" common' \ |
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
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" | |
https://coderwall.com/p/euwpig |
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 -x | |
set -e | |
rm -rvf /srv/mypup/ /var/lib/puppetmaster/* | |
# Where you'll deploy puppet configuration (this is what you want version controlled) | |
# You may expect this to be /etc/puppet or /etc/puppetmasters, but deploying regularly | |
# updated stuff to /etc makes my sysadmin sense tingle (in a bad way), and the | |
# manifests can get kind of large |
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
Summary: git-crypt git module | |
Name: git-crypt | |
Version: 0.3 | |
Release: 1%{?dist} | |
License: GPL | |
Group: Development/Tools | |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(id -un)-root | |
Source0: %{name}-%{version}.tar.bz2 | |
Requires: openssl >= 0.9.8, pam, openssh-server, openssh | |
URL: https://www.agwa.name/projects/git-crypt/ |
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
file { "/my/wrapper": | |
source => "puppet://...." | |
} | |
exec { "work-that-requires-key": | |
command => "ssh-agent /my/wrapper", | |
require => File["/my/wrapper"] | |
} |
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/php | |
<?php | |
date_default_timezone_set("GMT"); | |
$type = "a type"; | |
$key = "some identifier"; | |
$json = "canonical url of this json stuff"; | |
$entries = json_decode(file_get_contents("php://stdin")); |