sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
- Download zsh-autosuggestions by
| # Adapted from solution provided by http://stackoverflow.com/users/57719/chin-huang http://stackoverflow.com/a/31465939/348868 | |
| # Scenario: You want to add a group to the list of the AllowGroups in ssh_config | |
| # before: | |
| # AllowGroups Group1 | |
| # After: | |
| # AllowGroups Group1 Group2 | |
| - name: Add Group to AllowGroups | |
| replace: | |
| backup: yes |
| #!/bin/bash | |
| # WARNING ! THIS WAS WRITTEN A LONG TIME AGO (2018), IT MAY NOT BE RELEVANT ANYMORE | |
| sudo apt-get install vnc4server ubuntu-desktop | |
| sudo apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal |
| --- | |
| - name: Create Instance in AWS | |
| hosts: localhost | |
| connection: local | |
| gather_facts: false | |
| vars: | |
| aws_access_key: "xxxxxx" | |
| aws_secret_key: "xxxxxx" | |
| security_token: "xxxxxx" |
Short (72 chars or less) summary
More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).
Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
| #!/usr/bin/python | |
| from PIL import Image,ImageOps | |
| import struct | |
| import sys | |
| if len(sys.argv) < 3: | |
| print "Need two args: source_filename and result_filename\n"; | |
| sys.exit(0) | |
| filename = sys.argv[1] | |
| result_filename = sys.argv[2] |
| sudo apt update && \ | |
| sudo apt install build-essential software-properties-common -y && \ | |
| sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \ | |
| sudo apt update && \ | |
| sudo apt install gcc-6 g++-6 -y && \ | |
| sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-6 && \ | |
| gcc -v |
If you haven’t worked with JavaScript in the last few years, these three points should give you enough knowledge to feel comfortable reading the React documentation:
let and const statements. For the purposes of the React documentation, you can consider them equivalent to var.class keyword to define JavaScript classes. There are two things worth remembering about them. Firstly, unlike with objects, you don't need to put commas between class method definitions. Secondly, unlike many other languages with classes, in JavaScript the value of this in a method [depends on how it is called](https://developer.mozilla.org/en-US/docs/Web/Jav| import os | |
| import logging | |
| LOGLEVEL = os.environ.get('LOGLEVEL', 'INFO').upper() | |
| logging.basicConfig(level=LOGLEVEL, format="%(asctime)s %(message)s") |
| \documentclass[a4paper]{article} | |
| \input{./hoare.tex} | |
| \begin{document} | |
| \begin{hoare} | |
| \heq[a]{m * (a-b) > 0}{n := a-b}{m * n > 0}{\A} | |
| \heq[b]{1 * (a-b) > 0}{m := 1}{m * (a-b) > 0}{\A} | |
| \heq[c]{a > b}{m := 1}{m * (a-b) > 0}{\PrE(b)} | |
| \heq[d]{a > b}{m := 1; n := a-b}{m * n > 0}{\Seq(c, a)} | |
| \end{hoare} |