git branch {tagname}-branch {tagname}
git checkout {tagname}-branch
git add .
git ci -m "Fix included" # or cherry-pick the commit, whatever is easier
git cherry-pick {num_commit}
{ | |
"always_prompt_for_file_reload": false, | |
"atomic_save": true, | |
"bold_folder_labels": true, | |
"caret_extra_bottom": 3, | |
"caret_extra_top": 3, | |
"caret_extra_width": 2, | |
"color_scheme": "Packages/Seti_UI/Scheme/Seti.tmTheme", | |
"ensure_newline_at_eof_on_save": true, | |
"find_selected_text": true, |
// Solution 1 | |
// Super short respond to function that allows you to use the same value for | |
// all breakpoints below the one you are usint | |
$breakpoints: ( | |
xs: 480px, | |
s: 768px, | |
m: 1024px, | |
l: 1366px, | |
); |
var fs = require('fs'); | |
var request = require('request'); | |
var mkdirp = require('mkdirp'); | |
var lineReader = require('readline').createInterface({ | |
input: fs.createReadStream('server.log') | |
}); | |
var download = function(uri, filename, callback){ | |
request.head(uri, function(err, res, body){ | |
console.log('content-type:', res.headers['content-type']); |
ps aux | grep ./manage.py | awk '{print $2}' | xargs kill |
git config --global alias.au 'add -u' | |
git config --global alias.ai 'add -i' | |
git config --global alias.ap 'add -p' | |
git config --global alias.ci 'commit' | |
git config --global alias.co 'checkout' | |
git config --global alias.cp 'cherry-pick' | |
git config --global alias.big 'bisect good' | |
git config --global alias.bib 'bisect bad' | |
git config --global alias.b 'branch' |
This command will prefix xx commits number with [SYTO-640] including sqare brakets,
the importance of the \c
at the end of the prefix is to avoid new lines on the commit
otherwise this will transform the the commit name to commit description.
more info about \c
http://stackoverflow.com/questions/7154800/what-is-the-bash-escape-character-c
git filter-branch -f --msg-filter '
echo "[SYTO-640] \c" && cat
' HEAD~xx..HEAD
// getComponent is a function that returns a promise for a component | |
// It will not be called until the first mount | |
function asyncComponent(getComponent) { | |
return class AsyncComponent extends React.Component { | |
static Component = null; | |
state = { Component: AsyncComponent.Component }; | |
componentWillMount() { | |
if (!this.state.Component) { | |
getComponent().then(Component => { |
import CaseSensitivePathsPlugin from 'case-sensitive-paths-webpack-plugin' | |
import ExtractTextPlugin from 'extract-text-webpack-plugin' | |
import CompressionPlugin from 'compression-webpack-plugin' | |
import HtmlWebpackPlugin from 'html-webpack-plugin' | |
import autoprefixer from 'autoprefixer' | |
import webpack from 'webpack' | |
import path from 'path' | |
import PACKAGE from './package.json' |
import React, { Component } from 'react' | |
import { BrowserRouter as Router, Route, Link } from 'react-router-dom' | |
import async from './components/async' | |
class App extends Component { | |
render() { | |
return ( | |
<Router> | |
<div> | |
<Route exact path="/" component={async(import('./pages/home')) } /> |