Skip to content

Instantly share code, notes, and snippets.

diversen /
Last active Jul 5, 2021
Single file wordpress backup script using rsync and mysqldump
#!/usr/bin/env php
* Wordpress backup without any configuration
* ./wordpress-backup.php path/to/basepath/of/wordpress/
agrcrobles /
Last active Jul 21, 2021 — forked from patrickhammond/
Setup Android SDK on OSX with and without the android studio

Hi, I am a fork from

A high level overview for what I need to do to get most of an Android environment setup and maintained on OSX higher Catalina and Big Sur with and without Android Studio been installed.

Considering the SDK is installed under /Users/<your_user>/Library/Android/sdk folder which is the Android Studio preferred SDK location, but it works fine under /usr/local/share/android-sdk as well, which is a location pretty much used on CI mostly.


See for brew, python3 and NodeJS on nvm see gist

diversen /
Last active Dec 31, 2016
notes about phar-composer

phar-composer example

Create a composer dir called pgit

Create a composer.json file inside this dir containing:

    "require": {
        "diversen/minimal-cli-framework": "^1.1"
soska / index.html
Created Dec 29, 2016 — forked from anonymous/index.html
Musical Chord Progression Arpeggiator
View index.html
<aside id="aside"></aside>
<main id="main"></main>
anonymous / index.html
Created Dec 29, 2016
Musical Chord Progression Arpeggiator
View index.html
<aside id="aside"></aside>
<main id="main"></main>
View test-php-basic-auth.php
function require_auth() {
$AUTH_USER = 'admin';
$AUTH_PASS = 'admin';
header('Cache-Control: no-cache, must-revalidate, max-age=0');
$has_supplied_credentials = !(empty($_SERVER['PHP_AUTH_USER']) && empty($_SERVER['PHP_AUTH_PW']));
$is_not_authenticated = (
!$has_supplied_credentials ||
cburgdorf /
Last active Nov 18, 2020
Comparing XOR between tensorflow and keras
import numpy as np
from keras.models import Sequential
from keras.layers.core import Activation, Dense
training_data = np.array([[0,0],[0,1],[1,0],[1,1]], "float32")
target_data = np.array([[0],[1],[1],[0]], "float32")
model = Sequential()
model.add(Dense(32, input_dim=2, activation='relu'))
model.add(Dense(1, activation='sigmoid'))
rajeevkannav /
Last active Apr 11, 2020
Install CMake, pkg-config,GNU Getopt,GCC,poppler,fontforge,pdf2htmlEX in Ubuntu 15.05
# Ubuntu Developer Script For pdf2htmlEx
# Created by Rajeev Kannav Sharma
# Downloads and configures the following:
# CMake, pkg-config
# GNU Getopt
j3j5 / gist:8b3e48ccad746b90a54a
Last active Jul 23, 2021
Adyen Test Card Numbers
View gist:8b3e48ccad746b90a54a
Adyen Test Card Numbers
These cards are only valid on our TEST system and they will never involve any actual transaction or transfer of funds. The TEST card numbers will not work on the Adyen LIVE Platform.
For all cards use the following expiration and CVV2/CVC2/or CID for Amex.
For all cards:
Expiration Dates CVV2 / CVC3 CID (American Express)
08/2018 OR 10/2020 737 7373
jonathanstark / verify-google-recaptcha-with-php
Last active Mar 29, 2021
Verify Google reCAPTCHA with PHP
View verify-google-recaptcha-with-php
# Verify captcha
$post_data = http_build_query(
'secret' => CAPTCHA_SECRET,
'response' => $_POST['g-recaptcha-response'],
'remoteip' => $_SERVER['REMOTE_ADDR']
$opts = array('http' =>