Skip to content

Instantly share code, notes, and snippets.

Avatar

Panagiotis Moustafellos pmoust

View GitHub Profile
@pmoust
pmoust / php-upgrade-5.5.x.sh
Last active Jan 26, 2018
Centos 6.4 painless upgrade from #php 5.3.3 to 5.5.x by
View php-upgrade-5.5.x.sh
rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
yum install yum-plugin-replace -y
yum replace php-common --replace-with=php55w-common
View root.sh
docker run -it --rm --security-opt=seccomp:unconfined \
--security-opt=apparmor:unconfined \
--privileged --pid=host --userns=host \
debian:jessie@sha256:51cd80bb935b76fbbf49640750736abc63ab7084d5331e198326b20063e7f13c \
nsenter -t 1 -m -u -n -i -F /bin/sh
@pmoust
pmoust / dns.sh
Last active Jan 31, 2021
DNS w/ reasonable privacy & ad-blocking
View dns.sh
# DNS w/ (not so) reasonable privacy & ad-blocking
# Local-caching DNS via dockerd on xhyve/LinuxKit, for the default wifi interface on MacOSX, using
# Pi-hole 5.6 https://pi-hole.net/ and pointing to the DNS service offered by LibreOps RadicalDNS https://libreops.cc/radicaldns.html
# Admin-interface at http://127.0.0.1:8082/admin/
#
# Use https://libredns.gr/ for DoH/DoT to achieve reasonable privacy over the wire
docker run -d --name pihole \
-e ServerIP=127.0.0.1 \
-e WEBPASSWORD="mypihole" \
-e DNS1=88.198.92.222 \
View payoneer.php
<?php
/**
* Payoneer API integration
*
* @date 27/11/12
* @name $payoneer
* @author Panagiotis Moustafellos
*/
class Payoneer
{