Skip to content

Instantly share code, notes, and snippets.

gradosevic /
Created May 27, 2021 10:00 — forked from nichtich/
How to automatically deploy from GitHub

Deploy your site with git

This gist assumes:

  • you have an online remote repository (github / bitbucket etc.)
  • you have a local git repo
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by Apache
  • the Apache user is named www-data (may be apache on other systems)
gradosevic / htpasswd
Created December 10, 2016 18:29 — forked from neotohin-snippet/htpasswd
**INLCUDE htpasswd**
To generate .htpasswd:
htpasswd -c ./.htpasswd admin
Add this in .htaccess:
AuthUserFile /home/test/public_html/.htpasswd
AuthGroupFile /dev/null
gradosevic /
Created December 4, 2016 14:38 — forked from julionc/
How to install PhantomJS on Debian/Ubuntu

How to install PhantomJS on Ubuntu

Version: 1.9.8

Platform: x86_64

First, install or update to the latest system software.

sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
gradosevic / JVZoo.php
Created August 23, 2016 09:26 — forked from ashitvora-zz/JVZoo.php
Verify JVZoo Request
<?php namespace Alfanso\Services\Jvzoo;
class Jvzoo {
public function isValidRequest($data) {
$jvzooSecretKey = config('jvzoo.secret_key');
$receivedVerificationCode = $data['cverify'];
// remove cverify from the array since we don't use that
gradosevic / app.jsx
Created April 28, 2016 06:56 — forked from insin/app.jsx
React Form Handling - handleFormInputChange (Live version:
var INPUT_TYPES = 'color|date|datetime|datetime-local|file|month|number|password|range|search|tel|text|time|url|week'.split('|')
var App = React.createClass({
getInitialState: function() {
return {}
onChange: handleFormInputChange,
render: function() {
gradosevic /
Created November 13, 2015 09:08 — forked from kasparsd/
Using Git with Subversion Mirroring for WordPress Plugin Development