Florent Peterschmitt

Trucs

PuTTY

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\putty-defs]
"Colour0"="189,199,200"
"Colour1"="147,161,161"
"Colour2"="0,70,87"
"Colour3"="7,54,66"
"Colour4"="0,43,54"
"Colour5"="238,232,213"
"Colour6"="7,54,66"
"Colour7"="0,43,56"
"Colour8"="220,50,47"
"Colour9"="203,75,22"
"Colour10"="133,153,0"
"Colour11"="41,163,92"
"Colour12"="181,137,0"
"Colour13"="101,123,131"
"Colour14"="38,139,210"
"Colour15"="131,148,150"
"Colour16"="211,54,130"
"Colour17"="108,113,196"
"Colour18"="42,161,152"
"Colour19"="147,161,161"
"Colour20"="238,232,213"
"Colour21"="253,246,227"
"Font"="Source Code Pro"

grep no binary files

grep -rnI directory/

Or use ripgrep instead when you can.

pydistutils.cfg

For 100% offline Python installs:

  • Pull all archives of python libraries, from pypi for example.
  • Sometime some archives needs to be renamed from python-libname to libname or inversely.
  • Configure ~/.pydistutils.cfg for setup_requires dependencies.
  • Run pip install with some options.
cat > ~/.pydistutils.cfg << EOF
[easy_install]
allow_hosts = ''
find_links = file:///path/to/archives/

Then run:

pip install --no-index -f file:///path/to/archives/

« Confidence in our power over machines also makes us guilty of hoping to bend reality to our code »

9 Lies Programmers Tell Themselves

RVM

  • Install RVM: https://rvm.io/
  • Enable it: source ~/.rvm/scripts/rvm
  • List available ruby envs: rvm list known
  • Install: rvm install 2.4

Firefox

Extentions

Config

  • geo.enabled: false
  • extensions.pocket.enabled: false
  • media.block-autoplay-until-in-foreground: true or media.autoplay.enabled: false
  • browser.search.suggest.enabled: false
  • browser.urlbar.suggest.searches: false
  • browser.urlbar.userMadeSearchSuggestionsChoice: false
  • privacy.firstparty.isolate: true
  • security.insecure_field_warning.contextual.enabled: false

SublimeText

Full configuration.

  • Ctrl+r: search function in current file
  • Ctrl+p: :line , @symbol, #term
  • Ext GitGutter
  • Ext AutoPEP8
  • Ext Color Highlighter
  • Ext ColorPicker
  • Ext Git
  • Ext Inc-Dec-Value
  • Ext Markdown Preview
  • Ext SublimeREPL
  • Ext Wrap Plus