Skip to content

Instantly share code, notes, and snippets.

@gradosevic
gradosevic / README.md
Created May 27, 2021 10:00 — forked from nichtich/README.md
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
gradosevic / htpasswd
Created December 10, 2016 18:29 — forked from neotohin-snippet/htpasswd
htpasswd
**INLCUDE htpasswd**
To generate .htpasswd:
htpasswd -c ./.htpasswd admin
Add this in .htaccess:
AuthUserFile /home/test/public_html/.htpasswd
AuthGroupFile /dev/null
@gradosevic
gradosevic / 00.howto_install_phantomjs.md
Created December 4, 2016 14:38 — forked from julionc/00.howto_install_phantomjs.md
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
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
unset($data['cverify']);
@gradosevic
gradosevic / app.jsx
Created April 28, 2016 06:56 — forked from insin/app.jsx
React Form Handling - handleFormInputChange (Live version: http://bl.ocks.org/insin/raw/082c0d88f6290a0ea4c7/)
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
gradosevic / wordpress-plugin-svn-to-git.md
Created November 13, 2015 09:08 — forked from kasparsd/wordpress-plugin-svn-to-git.md
Using Git with Subversion Mirroring for WordPress Plugin Development