Skip to content

Instantly share code, notes, and snippets.

View onthisearth's full-sized avatar
💭
Happy Dance

Annette Völckner onthisearth

💭
Happy Dance
View GitHub Profile
@onthisearth
onthisearth / ffmpeg-compress-mp4
Created October 16, 2020 15:59 — forked from lukehedger/ffmpeg-compress-mp4
Compress mp4 using FFMPEG
$ ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4
@onthisearth
onthisearth / multiple_ssh_setting.md
Last active May 12, 2017 13:21 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@onthisearth
onthisearth / .gitignore
Created December 1, 2016 13:25 — forked from salcode/.gitignore
WordPress .gitignore - this is my preferred gitignore file when working with WordPress. It ignores almost all files by default.
# -----------------------------------------------------------------
# .gitignore for WordPress @salcode
# ver 20160309
#
# From the root of your project run
# curl -O https://gist.githubusercontent.com/salcode/b515f520d3f8207ecd04/raw/.gitignore
# to download this file
#
# By default all files are ignored. You'll need to whitelist
# any mu-plugins, plugins, or themes you want to include in the repo.
@onthisearth
onthisearth / gist:78320ad5aad978da44ea
Created November 30, 2015 16:04 — forked from anikalindtner/gist:9524950
Workshops/Mailinglists/Lists
@onthisearth
onthisearth / details.js
Created October 7, 2015 14:32 — forked from remy/details.js
Add <details> support - includes stylesheet
/**
* Note that this script is intended to be included at the *end* of the document, before </body>
*/
(function (window, document) {
if ('open' in document.createElement('details')) return;
// made global by myself to be reused elsewhere
var addEvent = (function () {
if (document.addEventListener) {
return function (el, type, fn) {
INITIALISATION
==============
load wp-config.php
set up default constants
load wp-content/advanced-cache.php if it exists
load wp-content/db.php if it exists
connect to mysql, select db
load object cache (object-cache.php if it exists, or wp-include/cache.php if not)
load wp-content/sunrise.php if it exists (multisite only)
@onthisearth
onthisearth / 0_reuse_code.js
Last active September 14, 2015 11:26
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console