(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| # Install ARCH Linux with encrypted file-system and EFI on 8,2 MacBook. | |
| # The official installation guide contains a more verbose description: | |
| # https://wiki.archlinux.org/index.php/Installation_Guide | |
| # Resize "Macintosh HD" to make room for Linux. This works live, including with | |
| # whole-disk encryption (WDE, FileVault). Ensure backups are current, of course, | |
| # before proceeding | |
| diskutil list | |
| diskutil cs list | |
| # Ensure all data will fit in 250G, with some to spare! |
| { | |
| // http://eslint.org/docs/rules/ | |
| "env": { | |
| "browser": true, // browser global variables. | |
| "node": false, // Node.js global variables and Node.js-specific rules. | |
| "worker": false, // web workers global variables. | |
| "amd": false, // defines require() and define() as global variables as per the amd spec. | |
| "mocha": false, // adds all of the Mocha testing global variables. | |
| "jasmine": false, // adds all of the Jasmine testing global variables for version 1.3 and 2.0. |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| # Install ARCH Linux with encrypted file-system and UEFI | |
| # The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description. | |
| # Download the archiso image from https://www.archlinux.org/ | |
| # Copy to a usb-drive | |
| dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux | |
| # Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration. | |
| # Set swedish keymap |
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
Either copy the aliases from the .gitconfig or run the commands in add-pr-alias.sh
Easily checkout local copies of pull requests from remotes:
git pr 4 - creates local branch pr/4 from the github upstream(if it exists) or origin remote and checks it outgit pr 4 someremote - creates local branch pr/4 from someremote remote and checks it out| # -*- encoding: utf-8 -*- | |
| import unittest | |
| class TestSomething(unittest.TestCase): | |
| def test_unicode(self): | |
| self.assertEqual(u'Русский', u'Текст') | |
| if __name__ == '__main__': | |
| import sys |
| import json | |
| from json.decoder import JSONArray | |
| from json.scanner import py_make_scanner | |
| class UnorderedList(list): | |
| """ | |
| Works like a normal list, except the order of elements doesn't matter on | |
| comparison |