Skip to content

Instantly share code, notes, and snippets.

@TonyWael
TonyWael / gitpoller.sh
Created November 19, 2019 10:02 — forked from oweidner/gitpoller.sh
This scripts clones and periodically updates a remote git repository.
#!/bin/bash -l
# Copyright 2014 Ole Weidner ([email protected])
# Licensed under the MIT License
# -----------------------------------------------------------------------------
# Global variables.
#
UPDATE_INTERVAL=300
BUILD_COMMAND="true"
@TonyWael
TonyWael / README.md
Created September 5, 2018 09:40 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


@TonyWael
TonyWael / disable-ipv6.sh
Created January 29, 2018 12:02 — forked from kwilczynski/disable-ipv6.sh
Amazon Linux OS tweaks
#!/bin/bash
set -u
set -e
set -o pipefail
export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
cat <<'EOF' > /etc/modprobe.d/blacklist-ipv6.conf
#!/bin/bash
#
# Bash script to setup headless Selenium (uses Xvfb and Chrome)
# (Tested on Ubuntu 12.04) trying on ubuntu server 14.04
# Add Google Chrome's repo to sources.list
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee -a /etc/apt/sources.list
# Install Google's public key used for signing packages (e.g. Chrome)
# (Source: http://www.google.com/linuxrepositories/)
@TonyWael
TonyWael / phpunit_and_headless_selenium_on_debian.md
Last active August 29, 2015 14:26 — forked from cioddi/phpunit_and_headless_selenium_on_debian.md
install headless phpunit & selenium on debian wheezy

#install headless phpunit & selenium on debian wheezy

##prepare pear

pear upgrade pear
sudo pear channel-discover pear.phpunit.de
sudo pear channel-discover components.ez.no
sudo pear channel-discover pear.project.com
sudo pear channel-discover pear.symfony-project.com
@TonyWael
TonyWael / svn and git together
Created December 6, 2013 15:16
git commit back to svn awesome
http://linux.die.net/man/1/git-svn
git svn clone http://yoursvnserver/svn --username vcsjones
#make some changes
git add -A
#stage your changes. add -A stages all changes;
#you can stage individial files too or use git add -i for interactive adding
git commit -m "My commit messages"
@TonyWael
TonyWael / README.md
Created November 26, 2013 09:44 — forked from mikedfunk/README.md

This uses Twitter Bootstrap classes for CodeIgniter pagination.

Drop this file into application/config.

@TonyWael
TonyWael / gist:7372954
Created November 8, 2013 15:47
Xdebug php
How to run Xdebug on Mac OSX using MAMP
1 Start MAMP
2 Edit php.ini template file through MAMP to enable the extension. Edit the template file via File -> Edit Template -> PHP -> PHP [php version you are using] php.ini
edit php.ini template for mamp on mac osx
3 Edit bottom of php.ini template file so that it ends up looking like if you want profile output
[xdebug]
zend_extension="/Applications/MAMP/bin/php/php5.3.6/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so"
xdebug.profiler_enable = 1
xdebug.profiler_output_dir = "/tmp"
; DONT REMOVE: MAMP PRO php5.3.6.ini template compatibility version: 1
Installing PEAR on OSX 10.9 Mavericks and OSX10.8/10.7
PEAR is a poplular PHP package manager, it doesn't come by default on OSX, how to install PEAR on OSX 10.9 Mavericks and earlier versions of OSX.
Check if you have it
pear version
If not, move into:
cd /usr/local