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/
KrzysztofPrzygoda / htpasswd.php
Last active Sep 19, 2022
A simple PHP .htpasswd and .htaccess generator
View htpasswd.php
* A simple PHP .htpasswd and .htaccess generator
* If already present, .htpasswd is overwrittern but .htaccess is prepended with Access clousure if not found
* @author Krzysztof Przygoda, 2018
* @version 1.0
eneko / list-of-curl-options.txt
Last active Sep 27, 2022
List of `curl` options
View list-of-curl-options.txt
$ curl --help
Usage: curl [options...] <url>
--abstract-unix-socket <path> Connect via abstract Unix domain socket
--alt-svc <file name> Enable alt-svc with this cache file
--anyauth Pick any authentication method
-a, --append Append to target file when uploading
--basic Use HTTP Basic Authentication
--cacert <file> CA certificate to verify peer against
--capath <dir> CA directory to verify peer against
-E, --cert <certificate[:password]> Client certificate file and password
agrcrobles /
Last active Aug 22, 2022 — 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.

Prerequisites: instead ?

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 Mar 29, 2022
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