Skip to content

Instantly share code, notes, and snippets.

View jeroenvisser101's full-sized avatar
🇺🇦
Слава Україні!

Jeroen Visser jeroenvisser101

🇺🇦
Слава Україні!
View GitHub Profile
@jeroenvisser101
jeroenvisser101 / zsh.md
Last active August 29, 2015 14:06 — forked from tsabat/zsh.md

Prereq:

apt-get install zsh git-core

Getting zsh to work in ubuntu is weird, since sh does not understand the source command. So, you do this to install zsh

wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh

Keybase proof

I hereby claim:

  • I am jeroenvisser101 on github.
  • I am jeroenvisser101 (https://keybase.io/jeroenvisser101) on keybase.
  • I have a public key whose fingerprint is 3B50 B1EA 5C9E 5B1B A0CE 143E 22B2 DFE2 F918 52F4

To claim this, I am signing this object:

@jeroenvisser101
jeroenvisser101 / TorDetector.php
Last active September 29, 2019 10:59
Detecting people that use Tor
<?php
/**
* Class TorDetector
*
* Helps to detect if visitors are using a Tor browser to surf the website.
*
* Thanks to https://trac.torproject.org/projects/tor/wiki/doc/TorDNSExitList
*/
class TorDetector
@jeroenvisser101
jeroenvisser101 / osx-for-hackers.sh
Created October 7, 2015 12:52 — forked from brandonb927/osx-for-hackers.sh
OSX for Hackers: Yosemite Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned. Also, please don't email me about this script, my poor inbox...
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
# Bol.com Lookup Command
class BolLookupCommand < Command
def help
'Searches for products in the Bol.com catalog.'
end
def syntax
'/bol <search query>'
end
@jeroenvisser101
jeroenvisser101 / git-finish
Last active December 19, 2018 16:18
Merge a branch using --ff-only, check status checks, and remove branches locally and on remote.
#!/usr/bin/env ruby
def notice(text)
puts "\e[33m#{text}\e[0m"
end
def success(text)
puts "\e[32m#{text}\e[0m"
end
def error(text)
@jeroenvisser101
jeroenvisser101 / README.md
Last active February 20, 2016 19:44
Copy Sketch templates from git repository to the Sketch template folder

Easily work with sketch templates on Git, by having a script that updates them from your repository

@jeroenvisser101
jeroenvisser101 / git-move-to-branch
Last active March 4, 2016 14:58
Script that moves a specified number of commits into a branch (when accidentally committed to master)
#!/usr/bin/env ruby
# Get values from
branch_name = ARGV[0]
commit_count = ARGV[1].to_i > 0 ? ARGV[1].to_i : 1
# If no branch is given, or it is a question for help, show usage
if branch_name.nil? or ['-h', '--help'].include? branch_name
puts <<-USAGE
usage: git move-to-branch <branch name> [commits]
Verifying that +jeroenvisser101 is my blockchain ID. https://onename.com/jeroenvisser101