Create a new local git repository in current directory
git init
Check out (and switch to) remote branch
git checkout <remote branch name>
Update current branch
| # vim:fileencoding=utf-8:ft=conf | |
| # Font family. You can also specify different fonts for the | |
| # bold/italic/bold-italic variants. By default they are derived automatically, | |
| # by the OSes font system. Setting them manually is useful for font families | |
| # that have many weight variants like Book, Medium, Thick, etc. For example: | |
| # font_family Operator Mono Book | |
| # bold_font Operator Mono Thick | |
| # bold_italic_font Operator Mono Medium | |
| # font_family Input Mono |
| #!/bin/bash | |
| FILENAME=orders.csv | |
| HDR=$(head -1 $FILENAME) | |
| split -l 5000 $FILENAME xyz | |
| n=1 | |
| for f in xyz* | |
| do | |
| if [ $n -gt 1 ]; then | |
| echo $HDR > Part${n}-$FILENAME | |
| fi |
| "use strict"; | |
| // Future versions of Hyper may add additional config options, | |
| // which will not automatically be merged into this file. | |
| // See https://hyper.is#cfg for all currently supported options. | |
| module.exports = { | |
| config: { | |
| // choose either `'stable'` for receiving highly polished, | |
| // or `'canary'` for less polished but more frequent updates | |
| updateChannel: 'stable', | |
| // default font size in pixels for all tabs |
| find /usr/share/nano/ -iname "*.nanorc" -exec echo include {} \; >> ~/.nanorc |
| import React from "react"; | |
| import styled from "styled-components"; | |
| const NavBar = styled.div` | |
| background-color: cornflowerblue; | |
| padding: 1rem; | |
| `; | |
| const FlyoutMenu = styled.div` | |
| background-color: limegreen; |
| module.exports = { | |
| env: { | |
| commonjs: true, | |
| es6: true, | |
| node: true | |
| }, | |
| extends: "airbnb-base", | |
| globals: { | |
| Atomics: "readonly", | |
| SharedArrayBuffer: "readonly" |
| // Angular 1.x | |
| <tr ng-repeat="friend in friends"> | |
| <td>{friend.name}</td> | |
| </tr> | |
| // React/JSX | |
| {this.props.friends.map(function(friend) { | |
| return ( | |
| <tr key={friend.guid}> | |
| <td> {friend.name} </td> |
Create a new local git repository in current directory
git init
Check out (and switch to) remote branch
git checkout <remote branch name>
Update current branch
| Vagrant.configure("2") do |config| | |
| config.vm.box = "bento/ubuntu-14.04" | |
| config.vm.provision :shell, :path => "provision.sh", privileged: false | |
| config.vm.network "forwarded_port", guest: 8080, host: 8080 | |
| end |