Skip to content

Instantly share code, notes, and snippets.

Eating an apple.

Locke Bircher soundslocke

Eating an apple.
View GitHub Profile
danielstgt /
Last active Apr 7, 2021
Install ImageMagick / Imagick 3.4.4 on PHP 7.4 server (Laravel Forge)
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
apt-get install pkg-config libmagickwand-dev -y
cd /tmp
tar xvzf imagick-3.4.4.tgz
citrusui /
Last active Apr 12, 2021
"Dropdowns" in Markdown
How do I dropdown?
This is how you dropdown.

<summary>How do I dropdown?</summary>
This is how you dropdown.
View nginx-cors.conf
map $http_origin $allow_origin {
default "";
"~^https?://(?:[^/]*\.)?(stevebuzonas\.(?:com|local))(?::[0-9]+)?$" "$http_origin";
map $request_method $cors_method {
default "allowed";
"OPTIONS" "preflight";
View list-out-of-lambda.js
var empty_list = function(selector) {
return selector(undefined, undefined, true);
var prepend = function(el, list) {
return function(selector) {
return selector(el, list, false);
var head = function(list) {
necolas / snippet.js
Created Jun 14, 2011
Optimised async loading of cross-domain scripts
View snippet.js
* Updated to use the function-based method described in
* Better handling of scripts without supplied ids.
* N.B. Be sure to include Google Analytics's _gaq and Facebook's fbAsyncInit prior to this function.
(function(doc, script) {
var js,
fjs = doc.getElementsByTagName(script)[0],