Skip to content

Instantly share code, notes, and snippets.

View Azhovan's full-sized avatar
🎯
Log the error and degrade gracefully!

Jabar Asadi Azhovan

🎯
Log the error and degrade gracefully!
View GitHub Profile
@Azhovan
Azhovan / gist:a5d7f1dc5199f53e13609b3f4deabb54
Created May 14, 2017 07:02 — forked from iambigd/gist:10952128
Generating an API Signature - Kayako Developer Resources - Kayako Wiki
<?php
$apiKey = "apikey";
$secretKey = "secretkey";
// Generates a random string of ten digits
$salt = mt_rand();
// Computes the signature by hashing the salt with the secret key as the key
@Azhovan
Azhovan / vagrant-cheat-sheet.md
Created December 18, 2016 14:22 — forked from wpscholar/vagrant-cheat-sheet.md
Vagrant Cheat Sheet

Typing vagrant from the command line will display a list of all available commands.

Be sure that you are in the same directory as the Vagrantfile when running these commands!

Common Vagrant Commands

  • vagrant up -- starts vagrant environment (also provisions only on the FIRST vagrant up)
  • vagrant status -- outputs status of the vagrant machine
  • vagrant halt -- stops the vagrant machine
  • vagrant reload -- restarts vagrant machine, loads new Vagrantfile configuration
  • vagrant provision -- forces reprovisioning of the vagrant machine