Skip to content

Instantly share code, notes, and snippets.

View juliandescottes's full-sized avatar

Julian Descottes juliandescottes

View GitHub Profile
@juliandescottes
juliandescottes / gist:a9e9ba1ab8229653109c
Created April 30, 2015 20:57
Moz devtools workflow
hg up fx-team
hg pull -u fx-team
hg up my-feature
hg rebase -d fx-team
"show dbs"
"show collections"
"db.dropDatabase()"
@juliandescottes
juliandescottes / gist:98ca63cd76fcb3de877d
Created June 2, 2015 07:49
NPM Dependency update flow
List
- run "npm outdated"
Update
- replace versions in package.json by '*'
- run "npm update --save"
Show current revision : hg id -i
@juliandescottes
juliandescottes / gist:30973b88033784008f26
Last active August 29, 2015 14:24
hg log from current revision
hg log --rev "reverse(ancestors(.))"
y - record this change
n - skip this change
s - skip remaining changes to this file
f - record remaining changes to this file
d - done, skip remaining changes and files
a - record all changes to all remaining files
protected <I, O> List<O> mapToList(List<I> list, Function<I, O> method) {
return list.stream().map((I item) -> method.apply(item)).collect(Collectors.toList());
}
powercfg -lastwake
@juliandescottes
juliandescottes / .mozconfig
Created January 5, 2016 17:32
.mozconfig file for #devtools
# normal mozconfig
ac_add_options --with-ccache=/usr/local/bin/ccache
mk_add_options MOZ_OBJDIR=objdir.noindex
mk_add_options AUTOCLOBBER=1
CC="clang -fcolor-diagnostics"
CXX="clang++ -fcolor-diagnostics"
@juliandescottes
juliandescottes / gist:880502229e3be5b34d1e
Created January 7, 2016 15:00
Firefox profile manager OSX
/Applications/Firefox.app/Contents/MacOS/firefox-bin --ProfileManager
try: -b do -p linux,linux64,macosx64,win32,win64 -u mochitests,mochitest-e10s-1,mochitest-e10s-2,mochitest-e10s-3,mochitest-e10s-4,mochitest-e10s-5,mochitest-e10s-browser-chrome-1,mochitest-e10s-browser-chrome-2,mochitest-e10s-browser-chrome-3,mochitest-e10s-browser-chrome-4,mochitest-e10s-browser-chrome-5,mochitest-e10s-browser-chrome-6,mochitest-e10s-browser-chrome-7,mochitest-e10s-devtools-chrome -t none