Skip to content

Instantly share code, notes, and snippets.

View jewilmeer's full-sized avatar
🚀

Jan-Willem van der Meer jewilmeer

🚀
  • jewilmeer
  • Utrecht, The Netherlands
  • 16:50 (UTC +01:00)
View GitHub Profile
#!/usr/bin/env ruby
# example: ./upgrade_heroku_database myapp-staging
if ARGV.length != 1
puts "Usage: upgrade_heroku_database <namespace>"
exit
end
namespace = ARGV[0].chomp
---
en:
accounts:
passwords:
form:
login: "Login"
submit: "Request"
sessions:
form:
forgot_your_password: "Forgot your password?"
--------------------------45b6a57535ac8600
Content-Disposition: form-data; name="provider"
telegraaf
--------------------------45b6a57535ac8600
Content-Disposition: form-data; name="file"; filename="config.ru"
Content-Type: application/octet-stream
# frozen_string_literal: true
require './app'
@jewilmeer
jewilmeer / keybase.md
Last active September 30, 2015 16:31
keybase.md

Keybase proof

I hereby claim:

  • I am jewilmeer on github.
  • I am jewilmeer (https://keybase.io/jewilmeer) on keybase.
  • I have a public key whose fingerprint is DFC5 2B60 F3C8 75AB 9D89 74FC 93F0 49A2 E61D 112B

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am jewilmeer on github.
  • I am jewilmeer (https://keybase.io/jewilmeer) on keybase.
  • I have a public key whose fingerprint is A04C 2F2A BCCE 73B5 F450 E84F 1BC3 D22D A3EC 449A

To claim this, I am signing this object:

#!/bin/sh
#
# Git pre-commit hook to keep you from shooting yourself in the foot by testing
# for common mistakes and errors.
#
# Installation:
#
# 1. Copy this file into your Git hooks directory (i.e. ./.git/hooks).
# 2. Make it executable: chmod +x .git/hooks/pre-commit
@jewilmeer
jewilmeer / gitlab-ci-build-script.sh
Last active January 11, 2020 22:57
The build script we use at traintool.com
if ! type phantomjs; then
echo "phantomjs not installed, now installing"
cd /usr/local/share
sudo wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2
sudo tar xjf phantomjs-1.9.7-linux-x86_64.tar.bz2
sudo ln -s /usr/local/share/phantomjs-1.9.7-linux-x86_64/bin/phantomjs /usr/local/share/phantomjs
sudo ln -s /usr/local/share/phantomjs-1.9.7-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs
sudo ln -s /usr/local/share/phantomjs-1.9.7-linux-x86_64/bin/phantomjs /usr/bin/phantomjs
else
echo "phantomjs installed, continue"
{
"color_scheme": "Packages/Tomorrow Color Schemes/Tomorrow-Night.tmTheme",
"drawWhiteSpace": true,
"folder_exclude_patterns":
[
".svn",
".git",
"tmp/cache"
],
"font_size": 12.0,
@jewilmeer
jewilmeer / error.log
Last active December 18, 2015 05:28
log from install on ubuntu 12.10 x64 server.
added the following brightbox ppa:
ppa:brightbox/ruby-ng state=present
ppa:brightbox/passenger-experimental
installed the following packages:
- ruby1.9.3
- ruby-switch
- nginx-full
@jewilmeer
jewilmeer / environment.rb
Created January 11, 2013 11:17
Securityfix rails 2.3
# Make sure we are secure, see https://groups.google.com/forum/?fromgroups=#!topic/rubyonrails-security/61bkgvnSGTQ
ActiveSupport::CoreExtensions::Hash::Conversions::XML_PARSING.delete('symbol')
ActiveSupport::CoreExtensions::Hash::Conversions::XML_PARSING.delete('yaml')