This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Africa/Abidjan | |
Africa/Accra | |
Africa/Addis_Ababa | |
Africa/Algiers | |
Africa/Asmara | |
Africa/Asmera | |
Africa/Bamako | |
Africa/Bangui | |
Africa/Banjul | |
Africa/Bissau |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo add-apt-repository -y ppa:nginx/stable | |
sudo apt-get update | |
sudo apt-get -y install nginx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!#/bin/bash | |
sudo apt-get update | |
sudo apt-get -y install apt-transport-https ca-certificates | |
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
sudo echo "deb https://apt.dockerproject.org/repo ubuntu-precise main | |
deb https://apt.dockerproject.org/repo ubuntu-trusty main | |
deb https://apt.dockerproject.org/repo ubuntu-wily main" > /etc/apt/sources.list.d/docker.list | |
sudo apt-get update | |
sudo apt-get -y install docker-engine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl "https://downloads.partkeepr.org/partkeepr-1.0.0-alpha.1.tbz2" | bzip2 -d | tar xvf - | |
sudo add-apt-repository ppa:ondrej/php5-5.6 | |
sudo apt-get update | |
sudo apt-get install python-software-properties | |
sudo apt-get install php5 php5-gd mysql-server php5-mysql php5-curl php5-intl php5-apcu php5-ldap | |
sudo dpkg-reconfigure tzdata | |
sudo sed -i "s|;date.timezone =|date.timezone = Europe/Brussels|" /etc/php5/apache2/php.ini | |
sudo a2enmod rewrite | |
# add cron: 0 0,6,12,18 * * * /usr/bin/php <path-to-partkeepr>/app/console partkeepr:cron:run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int sprint(char* str, _Decimal128 value) { | |
long long high = value; | |
unsigned long long low; | |
if (value > 0) { | |
value = value * 10000000000000000000.0DL; | |
low = value - high * 10000000000000000000.0DL; | |
} else { | |
value = value * -10000000000000000000.0DL; |