Skip to content

Instantly share code, notes, and snippets.

Jude Aakjaer santouras

Block or report user

Report or block santouras

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

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:

View foosball-swagger.yml
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
View Dockerfile
# 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
View atbash_cipher.rb
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 Aug 29, 2012
Failing ZF2 validator requiring Service Locator
View Unique.php
<?php
namespace My\Validator;
use Zend\Validator\AbstractValidator;
use Zend\ServiceManager\ServiceLocatorAwareInterface;
use Zend\ServiceManager\ServiceLocatorInterface;
class Unique extends AbstractValidator
View Preferences.sublime-settings
{
"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
bind setup for local wildcard domains on .dev domain
View db.dev
$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
httpd conf for wildcard dev virtualhosts
View httpd.conf
<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
You can’t perform that action at this time.