Skip to content

Instantly share code, notes, and snippets.

View aqlx86's full-sized avatar
🦊
Focusing

Arnel Labarda aqlx86

🦊
Focusing
View GitHub Profile
@aqlx86
aqlx86 / .gitconfig
Last active July 2, 2019 06:48 — forked from gokure/.gitconfig
dot gitconfig file
[user]
name = <Your name>
email = <Your email>
[alias]
co = checkout
ci = commit
st = status
br = branch -v
rt = reset --hard
df = diff
#!/bin/bash
set -e
echo "Attempting to get the weather of Pasig City..."
URL='http://www.accuweather.com/en/ph/pasig/264876/weather-forecast/264876'
pasig="$(wget -q -O- "$URL" | awk -F\' '/acm_RecentLocationsCarousel\.push/{print $10"°" }'| head -1 | sed -e "s/^.* //")"
tc=$(echo $pasig | cut -c 1-2)
tf=$(echo "scale=1;((9/5) * $tc) + 32" |bc)
tf=$(echo $tf | cut -d"." -f1)"°F"
pasig=$pasig"C/"$tf
heartbeat
sv_lan 1
map <map name> <mode>
mp_autoteambalance 0
maxplayers 32
ins_bot_difficulty 1 //0-3
ins_bot_add <number> //team1
ins_bot_add_t2 <number> //team2
@aqlx86
aqlx86 / steps.md
Created March 1, 2017 04:31 — forked from undefinedzain/steps.md
Add Custom Facade on Laravel 5.3
  1. Create a custom class

?>

@aqlx86
aqlx86 / aes.php
Created February 24, 2017 07:54
aes encryption for php
/**
Aes encryption
*/
class AES {
const M_CBC = 'cbc';
const M_CFB = 'cfb';
const M_ECB = 'ecb';
const M_NOFB = 'nofb';
const M_OFB = 'ofb';
@aqlx86
aqlx86 / install-comodo-ssl-cert-for-nginx.rst
Created August 23, 2016 07:53 — forked from bradmontgomery/install-comodo-ssl-cert-for-nginx.rst
Steps to install a Comodo PositiveSSL certificate with Nginx.

Setting up a SSL Cert from Comodo

I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.

These are the steps I went through to set up an SSL cert.

Purchase the cert

# replace www-data with web server user you have.
sudo chgrp -R <www-data> storage bootstrap/cache
sudo chmod -R ug+rwx storage bootstrap/cache
@aqlx86
aqlx86 / behat-phantomjs-webdriver.md
Created June 23, 2016 07:30 — forked from callado4/behat-phantomjs-webdriver.md
Instructions on how to make behat (with mink) use the phantomjs webdriver to run headless browser tests

Making behat use phantomjs for the tests

If you want to run it on phantomjs (a headless browser) you can add this profile to your behat.yml and you need phantomjs >= 1.8.0

phantomjs:
    extensions:
        Behat\MinkExtension\Extension:
            base_url: http://dev.local
            goutte: ~
            selenium2:
 wd_host: "http://localhost:8643/wd/hub" 
@aqlx86
aqlx86 / install.md
Created March 11, 2016 09:58 — forked from zaherg/install.md
a small tips to install latest nginx , php 5.5 & laravel 4.1 since that Laravel 4.1 has been released, i have removed the line which explain how to install laravel from dev branch using composer.

Creating Your Laravel & nginx Server

We will install Larave 4.1 with PHP5.5 & Latest nginx on Ubuntu 12.04.3 x64.

updating your system

apt-get update && apt-get upgrade
adduser [username]
usermod -aG sudo [username]
apt-get -y install git
@aqlx86
aqlx86 / speed-test-cli.py
Created November 13, 2015 11:42
command line speed test
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2012-2014 Matt Martz
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0