Full-page background made with JavaScript and Canvas: the animation follows movement on non-touch devices
Forked from Marco Guglielmelli's Pen Animated Background.
#!/bin/bash | |
# | |
# The MIT License (MIT) | |
# | |
# Copyright (c) 2014 Mathias Leppich <[email protected]> | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
<?php | |
register_tick_function(function() { | |
$bt = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1); | |
$last = reset($bt); | |
$info = sprintf("%s +%d\n", $last['file'], $last['line']); | |
file_put_contents('/tmp/segfault.txt', $info, FILE_APPEND); | |
// or | |
// file_put_contents('php://output', $info, FILE_APPEND); | |
}); |
Full-page background made with JavaScript and Canvas: the animation follows movement on non-touch devices
Forked from Marco Guglielmelli's Pen Animated Background.
#!/bin/bash | |
echo "Project setup"; | |
echo -n "What is your project name ['Test']:> "; | |
read project_name; | |
echo "Postgresql setup"; | |
echo -n "What is your Postgresql username [$USER]:> "; | |
read db_username; | |
echo -n "What is this user's password (empty if none) [] :> "; | |
read db_password; |
Ca nécessite à minima : | |
html5shiv : https://github.com/aFarkas/html5shiv | |
base64 : https://code.google.com/p/stringencoders/source/browse/trunk/javascript/base64.js?r=230 | |
JSON 2 : https://github.com/douglascrockford/JSON-js/blob/master/json2.js | |
Respond : https://github.com/scottjehl/Respond | |
Polyfills de toutes les méthodes de Array, Object, String, telles que (non exhaustif) : | |
- Object.keys https://github.com/MathRobin/object.keys | |
- Object.create https://github.com/MathRobin/object.create |
#!/bin/bash | |
if [[ "$1" = "-h" || "$1" = "--help" || $1 = "help" || $1 = "man" ]] | |
then | |
echo "A tiny script to run a command against PHP 5.3, 5.4, 5.5 and 5.6 using homebrew" | |
echo | |
echo -e "\033[34mUsage:\033[0m" | |
echo -e "\033[34m------\033[0m" | |
echo -e " \033[32m$0\033[0m \033[33m<command>\033[0m" | |
echo |
#cargo, docker hub without docker, how to
18 Jan 2015
###Background
I have been using linux containers for almost 2 years now. It started during an internship at Applidget, a startup in Paris. My job was to integrate linux containers technology in their private PaaS. At this time, there where no doubt, the technology to use was LXC. One week or so after I started digging into LXC, one of my co-worker talked to me about this new thing called docker. He told me "isn't it what you are supposed to do during your internship ?". And it was kind of it.
At this time I already highlighted a big challenge of containers in PaaS: creation time. Waiting for bundle install
to complete is already long enough to have to wait for another 40 secondes to create a container :). Docker landed just in time !
<?php | |
namespace Acme\DemoBundle\EventListener; | |
use Symfony\Component\Routing\RouterInterface; | |
class ConsoleListener | |
{ | |
/** | |
* @var RouterInterface |
Gitlab image and doc : https://github.com/sameersbn/docker-gitlab
mkdir -p /srv/docker/images/gitlab/
cat docker-compose.yml > /srv/docker/images/gitlab/docker-compose.yml
# Edit the docker-compose.yml file
These commands are needed every time you want to generate a new certificate signing request to give to an authority in order for them to generate and sign a certificate for you.
https://letsencrypt.org/ solves a lot of the pain involved with SSL certs, but sometimes you still need to go the "old school" route. I constantly forget how this stuff works, so I collected the most important commands (and what they do) here for easy copy & paste.