Skip to content

Instantly share code, notes, and snippets.

Avatar
🤦‍♂️
Hard at work

Roderik van der Veer roderik

🤦‍♂️
Hard at work
View GitHub Profile
@roderik
roderik / gist:6865795
Created Oct 7, 2013
brew --config, terminal with settings
View gist:6865795
[12:28:03][roderik@Sinope /opt/kitchenplan](feature/mavericksGM *)$ brew --config
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/mxcl/homebrew
HEAD: f40af36f909a1ab0a6c409254f5944fe477392ae
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: dual-core 64-bit ivybridge
OS X: 10.9-x86_64
Xcode: 5.0.1
LLVM-GCC: N/A
@roderik
roderik / gist:6865783
Created Oct 7, 2013
brew --config, clean terminal
View gist:6865783
Roderiks-Mac:kitchenplan roderik$ brew --config
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/mxcl/homebrew
HEAD: f40af36f909a1ab0a6c409254f5944fe477392ae
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: dual-core 64-bit ivybridge
OS X: 10.9-x86_64
Xcode: 5.0.1
LLVM-GCC: N/A
@roderik
roderik / gist:6865772
Created Oct 7, 2013
brew doctor, terminal with settings
View gist:6865772
[12:27:53][roderik@Sinope /opt/kitchenplan](feature/mavericksGM *)$ brew doctor
Warning: You are using Mac OS X 10.9.
We do not yet provide support for this (unreleased) version.
@roderik
roderik / gist:6865735
Created Oct 7, 2013
brew doctor from a clean install terminal (chef run)
View gist:6865735
Roderiks-Mac:kitchenplan roderik$ brew doctor
Warning: You are using Mac OS X 10.9.
We do not yet provide support for this (unreleased) version.
Warning: /usr/bin occurs before /usr/local/bin
This means that system-provided programs will be used instead of those
provided by Homebrew. The following tools exist at both paths:
easy_install
easy_install-2.7
@roderik
roderik / postgresql.conf
Last active Feb 20, 2019
Default 9.3 postgres config
View postgresql.conf
# -----------------------------
# PostgreSQL configuration file
# -----------------------------
#
# This file consists of lines of the form:
#
# name = value
#
# (The "=" is optional.) Whitespace may be used. Comments are introduced with
# "#" anywhere on a line. The complete list of parameter names and allowed
View gist:6677120
.gist table {
margin: 0;
font-size: 1.4rem;
}
.gist .line-number {
width: 10px;
font-size: 1rem;
}
View performPostReceive.sh
#!/bin/bash
folder=$1
giturl=$2
echo "creating folder $folder"
mkdir -p "$folder"
echo "entering folder $folder"
cd "$folder"
View hook.php
<?php
if (isset($_SERVER['HTTP_CLIENT_IP'])
|| isset($_SERVER['HTTP_X_FORWARDED_FOR'])
|| !in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', 'fe80::1', '::1', 'xx.xx.xx.xx'))
) {
header('HTTP/1.0 403 Forbidden');
exit('You are not allowed to access this file.');
}
View changelog.sh
#!/bin/bash
git log --format="%ai|%h|%an|%s" --no-merges
View version.sh
#!/bin/bash
git log -n 1 --format="%ai - %h" --no-merges