Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View santouras's full-sized avatar

Jude Aakjaer santouras

View GitHub Profile
@santouras
santouras / instructions.txt
Created June 6, 2021 03:34
m1 mysql installation
brew install mysql
gem install mysql2 -- \
--with-mysql-lib=$(brew --prefix mysql)/lib \
--with-mysql-dir=$(brew --prefix mysql) \
--with-mysql-config=$(brew --prefix mysql)/bin/mysql_config \
--with-mysql-include=$(brew --prefix mysql)/include
@santouras
santouras / virtualbox-minikube-ipv6.sh
Created February 2, 2021 05:03
Fix virtualbox/minikube ipv6 issue
#!/usr/bin/env bash
vm='minikube'
natnet='vboxipv6'
echo 'Fixing virtualbox/minikube IPV6 problems'
if ! command -v vboxmanage &> /dev/null; then
echo 'vboxmanage is not installed'
exit 1

Keybase proof

I hereby claim:

  • I am santouras on github.
  • I am santouras (https://keybase.io/santouras) on keybase.
  • I have a public key whose fingerprint is 14F9 654C C68B A910 1442 3DE4 9D04 A057 27BB 8F6F

To claim this, I am signing this object:

@santouras
santouras / foosball-swagger.yml
Created May 15, 2016 02:36
Foosball swagger file
swagger: '2.0'
info:
title: Foosball API
description: Play games, calculate winners and losers.
version: "1.0.0"
# the domain of the service
host: api.playfoosball.com
# array of all schemes that your API supports
schemes:
- https
@santouras
santouras / Dockerfile
Created July 20, 2015 10:06
Local gemfiles
# add application directory
RUN mkdir /app
WORKDIR /tmp
ADD Gemfile Gemfile
ADD Gemfile.lock Gemfile.lock
# add local gems that bundle will need
ADD vendor/gems/rails_multisite vendor/gems/rails_multisite
@santouras
santouras / atbash_cipher.rb
Last active August 29, 2015 14:21
atbash
class Atbash
ARR = ('a'..'z').to_a
def self.encode str
str.
downcase.
each_char.map { |c| cipher(c) }.join.
scan(/.{1,5}/).join(" ")
end
private
@santouras
santouras / Unique.php
Created August 29, 2012 14:13
Failing ZF2 validator requiring Service Locator
<?php
namespace My\Validator;
use Zend\Validator\AbstractValidator;
use Zend\ServiceManager\ServiceLocatorAwareInterface;
use Zend\ServiceManager\ServiceLocatorInterface;
class Unique extends AbstractValidator
@santouras
santouras / Preferences.sublime-settings
Last active October 5, 2015 09:18
Sublime preferences
{
"color_scheme": "Packages/User/Monokai (SL).tmTheme",
"default_line_ending": "unix",
"draw_white_space": "all",
"enable_tab_scrolling": false,
"font_size": 12,
"ignored_packages":
[
"Vintage",
"Markdown"
@santouras
santouras / db.dev
Created May 25, 2012 00:55
bind setup for local wildcard domains on .dev domain
$TTL 60
dev. IN SOA icecream root.icecream.dev (
472 ; Serial
10 ; Refresh
10 ; Retry
120 ; Expire
120 ) ; Negative Cache TTL
;
dev. IN NS icecream.dev.
@santouras
santouras / httpd.conf
Created May 25, 2012 00:54
httpd conf for wildcard dev virtualhosts
<Virtualhost *:80>
VirtualDocumentRoot "/var/www/%1/public"
ServerName vhosts.dev
ServerAlias *.dev
UseCanonicalName Off
LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon
ErrorLog ${APACHE_LOG_DIR}/vhosts-error_log
SetEnv APPLICATION_ENV "development"
<Directory "/var/www/*">
Options Indexes FollowSymLinks MultiViews