Skip to content

Instantly share code, notes, and snippets.

View thierrymarianne's full-sized avatar

Th. Ma. thierrymarianne

  • Greater Paris Metropolitan Area
View GitHub Profile
#!/usr/bin/env bash
source ~/venv/bin/activate
deis register http://local.deisapp.com:8000 --username=bacongobbler --email=mmm@bacon.com --password=qwerty
deis login http://local.deisapp.com:8000 --username=bacongobbler --password=qwerty
deis keys:add ~/.ssh/id_rsa.pub
deis init dev local.deisapp.com --hosts=local.deisapp.com --auth=~/.vagrant.d/insecure_private_key
<?php
namespace igorw\lusp;
// all functions return a pair of [val, env]
function evaluate($expr, $env = []) {
if (is_string($expr)) {
if (is_numeric($expr)) {
$val = (float) $expr;
@GromNaN
GromNaN / .htaccess
Created January 6, 2015 16:42
Bridge Wordpress & Symfony
<IfModule mod_rewrite.c>
RewriteEngine On
# Symfony2 URLs begins with app or admin/dashboard
RewriteRule ^app/ app.php [QSA,L]
RewriteRule ^admin/dashboard app.php [QSA,L]
# Others requests are redirected to Wordpress
RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$
@Tuxosaurus
Tuxosaurus / pimp_trello
Last active August 29, 2015 14:14
Pimp Trello for better usability with CSS injection
/* I use the Stylish extension for this, in addition to Scrum for Trello extensions, with Google Chrome browser */
/* explicit labels */
body .list-card-labels {
float: right;
top: -2px;
right: -2px;
max-width: 200px;
margin: 0;
@eddiejaoude
eddiejaoude / README.md
Last active December 17, 2015 15:39
PHPUnit & Selenium Parallel Tests
@guerrerocarlos
guerrerocarlos / gist:5641278
Created May 24, 2013 04:27
Vagrant VM Box Resize
VBoxManage clonehd "source.vmdk" "cloned.vdi" --format vdi
VBoxManage modifyhd "cloned.vdi" --resize 51200
VBoxManage clonehd "cloned.vdi" "resized.vmdk" --format vmdk
@marekkalnik
marekkalnik / watchr.rb
Created August 7, 2013 12:35
My watchr config for PHPUnit Execute by typing: $ watchr watchr.rb
watch ('.*\.php$') {|phpFile| run_php_unit(phpFile)}
def run_php_unit(modified_file)
system('clear')
if (system("phpunit -c phpunit.xml"))
system("notify-send 'All test passed'")
else
system("notify-send 'Test failed'")
end
end
@ComFreek
ComFreek / Error log.txt
Last active January 1, 2016 00:59
Vagrant / PuPHPet error log: Could not find a suitable provider for mysql_user
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'debian-wheezy72-x64-vbox43'...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
@olizilla
olizilla / README.md
Last active January 10, 2016 19:52
Notes from SquatConf 2014. Typed quickly, all concepts may be corrupted, but the gist is there.

Notes From SquatConf 2014

@dhigit9 - UDT: an application leyer TCP you can tune.

Replace TCP, application layer comm framework.

instantwebp2p - node fork that supports UDT. congestion control - optimal usage of bandwidth flow control - avoid overwhelming the receiver. window based - no packets in flight

@pfigue
pfigue / timezone.pp
Last active September 6, 2016 02:56
Puppet Manifest to set the timezone in the system.
file { '/etc/timezone':
ensure => present,
content => "Europe/Berlin\n",
}
exec { 'reconfigure-tzdata':
user => root,
group => root,
command => '/usr/sbin/dpkg-reconfigure --frontend noninteractive tzdata',
}