- Create a custom class
?>
[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 | |
?>
/** | |
Aes encryption | |
*/ | |
class AES { | |
const M_CBC = 'cbc'; | |
const M_CFB = 'cfb'; | |
const M_ECB = 'ecb'; | |
const M_NOFB = 'nofb'; | |
const M_OFB = 'ofb'; |
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.
# 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 |
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"
#!/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 |