$ git rm --cached filename
$ git merge <branch-name> —squash —no-commit
##Getting info
Get log since 2 weeks
$ git rm --cached filename
$ git merge <branch-name> —squash —no-commit
##Getting info
Get log since 2 weeks
create and cd into app folder
~ $ mkdir myapp && cd app
create new solution file. If no name is specified file is automatically named after the parent folder
~/app $ dotnet new sln
Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.
This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.
You are encouraged to fork this and modify it to your heart's content to match your own needs.
{ | |
"team": "Mexicution FC", | |
"players": [ | |
{ "name": "Foster, B", "club": "WBA" }, | |
{ "name": "Stekelenburg, M", "club": "FUL" }, | |
{ "name": "Santon, D", "club": "NEW" }, | |
{ "name": "Skrtel, M", "club": "LIV" }, | |
{ "name": "Coleman, S", "club": "EVE" }, | |
{ "name": "Jagielka, P", "club": "EVE" }, | |
{ "name": "Hughes, A", "club": "FUL" }, |
{ | |
"close_windows_when_empty": true, | |
"color_scheme": "Packages/Dayle Rees Color Schemes/sublime/contrast/mellow-contrast.tmTheme", | |
"draw_indent_guides": false, | |
"font_face": "Source Code Pro", | |
"font_options": | |
[ | |
"subpixel_antialias" | |
], | |
"font_size": 16.0, |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
protractor_webdriver: { | |
local: { | |
options: { | |
path: '', | |
command: 'webdriver-manager start', | |
}, | |
}, |
request('https://news.ycombinator.com', function (error, response, html) { | |
console.log(response); | |
if (!error && response.statusCode == 200) { | |
var $ = cheerio.load(html); | |
$('span.comhead').each(function(i, element){ | |
var a = $(this).prev(); | |
console.log(a.text()); | |
}); | |
} | |
}); |
require 'mongoid' | |
Mongoid.load!("mongoid.yml", environment = "development") | |
class Artist | |
include Mongoid::Document | |
field :name, type: String | |
embeds_many :instruments | |
end |
{ | |
"close_windows_when_empty": true, | |
"color_scheme": "Packages/daylerees-themes/Laravel.tmTheme", | |
"draw_indent_guides": false, | |
"font_face": "Source Code Pro", | |
"font_options": | |
[ | |
"subpixel_antialias" | |
], | |
"font_size": 15.0, |
class Base extends Model { | |
static $config = "default"; | |
} | |
class User extends Base { | |
static $collection = "user"; | |
protected static $attrs = array( | |
'first_name' => array( 'type' => 'string' ), | |
'last_name' => array( 'type' => 'string' ), |