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 / 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.

Always forgetting shortcuts.

  • ALT+SHIFT+W To wrap your selected content with a html tag, just selected your text, then press Alt-Shift-W. You'll then have the option to fill in the front and back tag simultaneously. https://coderwall.com/p/d1qphg
  • CMD+L Select current line.
  • CMD+X Delete line.
  • CMD+R Go to method
  • CMD+P ":121" go to specific line number
  • CMD+P file:n go to specific line number in file
  • CMD+P file@method go to specific method in file
  • CMD+SHIFT+D Duplicate current line