Skip to content

Instantly share code, notes, and snippets.

@llagerlof
llagerlof / set_utf8.sh
Last active August 6, 2019 13:36 — forked from panchicore/bash
GIT error on push/pull: "remote: perl: warning: Setting locale failed" [SOLVED]
#!/bin/bash
# perl: warning: Setting locale failed.
# perl: warning: Please check that your locale settings:
# LANGUAGE = (unset),
# LC_ALL = (unset),
# LC_CTYPE = "UTF-8",
# LANG = "en_US.UTF-8"
# are supported and installed on your system.
# perl: warning: Falling back to the standard locale ("C").
@llagerlof
llagerlof / update_fork_from_original_repository.md
Last active July 11, 2018 17:54 — forked from CristinaSolana/gist:1885435
Update a fork from the original repository

1. Clone your fork:

git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@llagerlof
llagerlof / Twitter Cramming.user.js
Created September 27, 2017 18:39 — forked from Prof9/Readme.md
Force enable cramming (280 character tweets) on Twitter. Use TamperMonkey. NOTE: Stops working when you switch pages, refresh to fix. https://twitter.com/Prof9/status/912859110776950784
// ==UserScript==
// @name Twitter Cramming
// @description Force enable cramming (280 character tweets) on Twitter
// @author Prof. 9
// @version 0.1
// @match https://twitter.com/*
// @run-at document-idle
// @namespace prof9.twittercramming
// ==/UserScript==
@llagerlof
llagerlof / 0_reuse_code.js
Created October 27, 2015 16:35
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