Skip to content

Instantly share code, notes, and snippets.

View aslafy-z's full-sized avatar
👻

Zadkiel AHARONIAN aslafy-z

👻
View GitHub Profile
[{
"id": 1,
"username": "Zad",
"text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. ",
"imageUrl": "http://via.placeholder.com/350x150?text=zad",
"date": 1520955941
},{
"id": 2,
"username": "Max",
"text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.",
@aslafy-z
aslafy-z / feeds.json
Last active March 14, 2018 17:08
test-rss-reader
{
"feeds": [{
"uid": "5aa9538ed81fae8da3fd6ee8",
"source": { "source": "http://placehold.it/32x32" },
"link": "http://placehold.it/32x32",
"title": "Claudette",
"currentOffset": 0,
"imageUrl": "http://placehold.it/32x32",
"language": "fr",
"copyright": null,
@aslafy-z
aslafy-z / README.md
Last active May 14, 2018 13:19
Docker Machine Driver OVH

Host docker-machine-driver-ovh binary

@aslafy-z
aslafy-z / wp-config.sh
Last active November 17, 2020 00:06
Generate wp-config.php from env variables
#!/bin/sh
set -e
if [ -z "$1" ]; then
echo "Usage: ./wp-config.sh <wp-config.php-path>"
exit 1
fi
WP_CONFIG_FILE=$1
@aslafy-z
aslafy-z / htaccess.sh
Last active July 12, 2018 14:05
Generate htaccess for wordpress from env vars
#!/bin/sh
set -e
if [ -z "$1" ]; then
echo "Usage: $0 <.htaccess-path>"
exit 1
fi
HTACCESS_FILE=$1
@aslafy-z
aslafy-z / db-far.php
Created June 1, 2018 13:50 — forked from KLicheR/db-far.php
PHP script that perform a find and replace in a database dump (tested with MySQL) with adjustments of the PHP serialize founded.
#!/usr/bin/php
<?php
/**
* PHP script that perform a find and replace in a database dump (tested with
* MySQL) with adjustments of the PHP serialize founded.
*
* Don't forget to escape your "special characters":
* "a$b" -> "a\$b"
* "a"b" -> "a\"b"
* "a`b" -> "a\`b"
@aslafy-z
aslafy-z / functions.php
Last active June 19, 2018 10:57 — forked from cjmosure/functions.php
Disable single Wordpress plugin update notifications
<?php
// Disable update notification for individual plugin (current)
function filter_plugin_updates($value) {
if ($value) {
unset($value->response[plugin_basename(__FILE__)]);
}
return $value;
}
add_filter( 'site_transient_update_plugins', 'filter_plugin_updates' );
?>
@aslafy-z
aslafy-z / wp-rocket-config.sh
Created June 19, 2018 12:45
Generate wp-rocket-config.php from env variables
#!/bin/sh
set -e
if [ -z "$1" ]; then
echo "Usage: $0 <wp-rocket-config.php-path>"
exit 1
fi
WP_ROCKET_CONFIG_FILE=$1
@aslafy-z
aslafy-z / index.html
Created July 22, 2018 14:48 — forked from chrisvfritz/index.html
Simplest possible HTML template
<!doctype html>
<html>
<head>
<title>This is the title of the webpage!</title>
</head>
<body>
<p>This is an example paragraph. Anything in the <strong>body</strong> tag will appear on the page, just like this <strong>p</strong> tag and its contents.</p>
</body>
</html>
@aslafy-z
aslafy-z / docker.sh
Created September 18, 2018 14:05
Get docker to use correct DNS on Ubuntu 18.04
#!/bin/sh
# Disable systemd-resolved
systemctl disable systemd-resolved.service
systemctl stop systemd-resolved.service
# Replace by stock system resolv.conf
ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
# Install docker