Skip to content

Instantly share code, notes, and snippets.

View maximilliangeorge's full-sized avatar

Maximillian George maximilliangeorge

  • Will and Max
  • Stockholm
View GitHub Profile
@guz-anton
guz-anton / bash.sh
Created September 11, 2018 19:23
Scrape images with wget
# Scrape images with wget
# https://davidwalsh.name/scrape-images-wget
# $1 = url
# Example: scrapeimages https://davidwalsh.name/
scrapeimages() {
wget -nd -H -p -A jpg,jpeg,png,gif -e robots=off $1
}
@bretton
bretton / improved-lnd-bitcoind-install.md
Last active January 25, 2022 14:07
updated & improved guide to installing LND, Bitcoind, on Ubuntu 16.04 Server on testnet

2018-03-18: Updating of this guide is taking a backseat to the mainnet version at

Intro

This guide is specific to getting LND and bitcoind running on ubuntu 16.04 LTS for testnet.

It does not address mainnet, or using btcd, or neutrino.

Original installation guide:

@akella
akella / facebook-normalize-wheel.js
Created November 25, 2017 22:49
Facebook attempt at normalizing wheel event
/**
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule normalizeWheel
* @typechecks
@tmslnz
tmslnz / getTranslate3d.js
Created February 25, 2017 15:03
Get and array of translate3d values
function getTranslate3d (el) {
var values = el.style.transform.split(/\w+\(|\);?/);
if (!values[1] || !values[1].length) {
return [];
}
return values[1].split(/,\s?/g);
}
@dbranes
dbranes / functions.php
Last active October 31, 2018 13:44
Return ACF variable from wp-json (rest api & angular) @see http://www.wpquestions.com/question/showChrono/id/10627
/**
* Add ACF data to the WP JSON REST API
*/
add_filter( 'json_prepare_post', 'wpq_add_acf' );
function wpq_add_acf( $post ) {
if( function_exists( 'get_fields' ) )
{
$ brew install asciidoc
$ a2x -d book -f epub <book.asciidoc> [-v] [--no-xmllint]

The -v option is useful for verbose debugging.

The --no-xmllint option is useful for ignoring XML errors such as missing DTD's.

@danielroot
danielroot / meta-tags.html
Last active April 25, 2017 12:47
Meta Tags
<!-- Standard Meta -->
<meta charset='utf-8'>
<meta content='IE=edge,chrome=1' http-equiv='X-UA-Compatible'>
<meta content='width=device-width,initial-scale=1.0' name='viewport'>
<meta content='pageDescription' name='description'>
<meta content='pageKeywords' name='keywords'>
<!-- Google Meta -->
<link href='https://plus.google.com/[Google+_Profile]/posts' rel='author'>
<link href='https://plus.google.com/[Google+_Page_Profile]' rel='publisher'>
<meta content='pageTitle' itemprop='name'>
Wordlist ver 0.732 - EXPECT INCOMPATIBLE CHANGES;
acrobat africa alaska albert albino album
alcohol alex alpha amadeus amanda amazon
america analog animal antenna antonio apollo
april aroma artist aspirin athlete atlas
banana bandit banjo bikini bingo bonus
camera canada carbon casino catalog cinema
citizen cobra comet compact complex context
credit critic crystal culture david delta
dialog diploma doctor domino dragon drama
@paolorossi
paolorossi / html5-video-streamer.js
Created March 7, 2012 13:21
Node.js HTML5 video streamer
/*
* Inspired by: http://stackoverflow.com/questions/4360060/video-streaming-with-html-5-via-node-js
*/
var http = require('http'),
fs = require('fs'),
util = require('util');
http.createServer(function (req, res) {
var path = 'video.mp4';
@ScottPhillips
ScottPhillips / .htaccess
Created February 2, 2012 04:30
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/