Skip to content

Instantly share code, notes, and snippets.

@Anasxrt
Anasxrt / install.sh
Last active Jun 9, 2021 — forked from mickaelandrieu/install.sh
Install phantomjs/casperjs on GNU/Linux - AlmaLinux release 8.4
View install.sh
#!/bin/bash
# `` sudo sh install.sh ``
# Tested on AlmaLinux release 8.4 (Electric Cheetah) - 4.18.0-305.el8.x86_64
# The code is fork version to get work on latest CentOS 8 like version.
echo Installing dependency
sudo dnf -y install glibc fontconfig freetype freetype-devel fontconfig-devel wget bzip2
echo Installing Phantomjs
cd /usr/local/share
sudo wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
@Anasxrt
Anasxrt / Geoip-CountryToCurrencyEU.php
Last active Mar 5, 2017
Geoip-Country to Currency EU
View Geoip-CountryToCurrencyEU.php
<?php
$countryToCurrency = array(
'default' => 'USD',
'TH' => 'THB',
// EU countries using the euro
'AT' => 'EUR',
'BE' => 'EUR',
'CY' => 'EUR',
'EE' => 'EUR',
'FI' => 'EUR',
View Manual and upstart config for AeroFS (aerofs-cli) on Ubuntu 12.04.1 LTS
Manual and upstart config for AeroFS (aerofs-cli) on Ubuntu 12.04.1 LTS:
# link standard upstart script
cd /etc/init.d
sudo ln -s /lib/init/upstart-job aerofs-cli
# create upstart config for aerofs-cli
sudo nano /etc/init/aerofs-cli.conf
(replace andreas with your desired runtime user)
----