Skip to content

Instantly share code, notes, and snippets.

Avatar
🚀

Jan-Willem van der Meer jewilmeer

🚀
View GitHub Profile
View item_deliveries.rb
--------------------------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'
View 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:

View 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 A04C 2F2A BCCE 73B5 F450 E84F 1BC3 D22D A3EC 449A

To claim this, I am signing this object:

View pre-commit
#!/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 Jan 11, 2020
The build script we use at traintool.com
View gitlab-ci-build-script.sh
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"
View sublime preferences
{
"color_scheme": "Packages/Tomorrow Color Schemes/Tomorrow-Night.tmTheme",
"drawWhiteSpace": true,
"folder_exclude_patterns":
[
".svn",
".git",
"tmp/cache"
],
"font_size": 12.0,
View error.log
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 Jan 11, 2013
Securityfix rails 2.3
View environment.rb
# 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')
View Vagrantfile
Vagrant::Config.run do |config|
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.define :gitlab do |gitlab|
gitlab.vm.network :hostonly, "10.10.10.100"
gitlab.vm.provision :chef_solo do |chef|
chef.cookbooks_path = ["cookbooks", "site-cookbooks"]
@jewilmeer
jewilmeer / jnk.rb
Created May 29, 2012 — forked from matthijsgroen/jnk.rb
Jenkins command line
View jnk.rb
#!/usr/bin/ruby
require 'net/http'
require 'net/https'
require 'base64'
require 'uri'
require 'yaml'
require 'cgi'
module Configuration
def config_file
You can’t perform that action at this time.