Skip to content

Instantly share code, notes, and snippets.

Experiencing in rough sea

YMHuang ymhuang0808

Experiencing in rough sea
View GitHub Profile
Zenexer /
Last active Nov 19, 2020
Security Advisory: PHP's escapeshellcmd and escapeshellarg are insecure

Paul Buonopane at NamePros

I'm working on cleaning up this advisory so that it's more informative at a glance. Suggestions are welcome.

This advisory addresses the underlying PHP vulnerabilities behind Dawid Golunski's [CVE-2016-10033][CVE-2016-10033], [CVE-2016-10045][CVE-2016-10045], and [CVE-2016-10074][CVE-2016-10074]. It assumes prior understanding of these vulnerabilities.

This advisory does not yet have associated CVE identifiers.


View profile.install
* @file
* Install, update and uninstall functions for my project.
* Implements hook_install().
AlexSkrypnyk / mymodule.css
Last active Aug 20, 2019
Drupal 'add more' and 'remove single' AJAX buttons on multi value custom field using FormAPI
View mymodule.css
input.form-submit.button-small {
padding: 4px 8px;
font-weight: bold;
.container-inline input.form-submit.button-small + .ajax-progress.ajax-progress-throbber .throbber {
position: absolute;
left: 19px;
margin-top: 7px;
thisismitch / le-renew-webroot
Last active Jan 5, 2021
Let's Encrypt Auto-Renewal using the Webroot Plugin (Nginx)
View le-renew-webroot
if [ ! -f $config_file ]; then
echo "[ERROR] config file does not exist: $config_file"
varunachar / ANestObject.json
Last active Feb 25, 2020
Google Gson TypeAdapterFactory to use with Retrofit when the the object is nested inside another object (Typically an object which contains status code etc) and when the root changes per object like shown below in the sample ANestedObject.json. Then you can use Retrofit normally! Enjoy
View ANestObject.json
// Root is hotel
status : "ok",
statusCode : 200,
hotels : [{
name : "Taj Palace",
location : {
lat : 12
lng : 77
jerbob92 / MyModuleMenuLink.php
Created Oct 27, 2015
Drupal 8 Derative Advanced Menu Link Example
View MyModuleMenuLink.php
View gulpfile.babel.js
* Steps
* 1. Rename your gulpfile.js to gulpfile.babel.js
* 2. Add babel to your package.json (npm install -D babel)
* 3. Start writing ES6 in your gulpfile!
import gulp from 'gulp'; // ES6 imports!
import sass from 'gulp-sass';
3runoDesign / Procfile
Last active Sep 22, 2017
Deploy Heroku [Laravel 5.2.*]
View Procfile
web: sh
worker: php artisan queue:listen
vt0r /
Last active Dec 26, 2020 — forked from mattrude/
Build/install instructions for GnuPG 2.2.x on Ubuntu and similar distros (formerly for 2.1.x)

GnuPG 2.2.x Build Instructions

Below are my build instructions for GnuPG 2.2.10, released on August 30th, 2018. These instructions are built for a headless Ubuntu 18.04 LTS server (and have also been tested on Ubuntu 14.04/16.04).

If you prefer, you may use the below install script to install GnuPG 2.2.x by running the following commands:

curl -OL "" && sudo -H bash ./

Install the needed dependencies