Skip to content

Instantly share code, notes, and snippets.

@e-roux
e-roux / git.md
Created September 28, 2019 15:26
Memo: git

Duplicating a repository

Source

Important: the target repo must first be created.

@e-roux
e-roux / dash.css
Last active September 28, 2019 08:49
CSS for dash
/* Table of contents
––––––––––––––––––––––––––––––––––––––––––––––––––
- Plotly.js
- Grid
- Base Styles
- Typography
- Links
- Buttons
- Forms
- Lists
@e-roux
e-roux / docker.md
Last active July 9, 2020 19:36
Memo: Docker

Docker

Installation

curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
# or as one liner
# curl -fsSL https://get.docker.com | sh
@e-roux
e-roux / ansible.md
Last active February 7, 2021 15:04
Memo: Ansible

Ansible

logo

Global configuration is in /etc/ansible

By default, Ansible will try to use native OpenSSH for remote communication when possible. This enables ControlPersist[controlPersistNote], Kerberos, and options in ~/.ssh/config such as Jump Host setup.

@e-roux
e-roux / fix_github_https_repo.sh
Created June 18, 2019 17:16 — forked from m14t/fix_github_https_repo.sh
Convert HTTPS github clones to use SSH
#/bin/bash
#-- Script to automate https://help.github.com/articles/why-is-git-always-asking-for-my-password
REPO_URL=`git remote -v | grep -m1 '^origin' | sed -Ene's#.*(https://[^[:space:]]*).*#\1#p'`
if [ -z "$REPO_URL" ]; then
echo "-- ERROR: Could not identify Repo url."
echo " It is possible this repo is already using SSH instead of HTTPS."
exit
fi
@e-roux
e-roux / TODO
Last active June 18, 2019 17:26 — forked from perrygeo/TODO
Ansible playbook for a full dev environment
TODO
implement security measures
git config
config files
full sublimetext config
set up openvpn
rdesktop and network drive to terra
set up evolution
RStudio
@e-roux
e-roux / PATH.md
Last active May 22, 2019 10:33
Mémos

/etc/profile

/etc/profile is the system-wide .profile file for the Bourne shell and Bourne compatible shells

  • On ubuntu, the PATH environment variable is being set in this file, then /etc/bash.bashrc and every readable files in /etc/profile.d will be loaded.
  • On mac OS, /usr/libexec/path_helper is beeing exectued for setting the $PATH environment variable, then /etc/bashrc and later on terminal specific configuration /etc/bashrc_${TERM_PROGRAM} will be loaded

macOS

@e-roux
e-roux / userChrome.css
Created May 19, 2019 17:14
Firefox toolbar cust css
/* Save in firefox profile as chrome/userChrome.css */
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
#personal-bookmarks .bookmark-item[container] .toolbarbutton-icon {
display:none!important;
}
#personal-bookmarks .bookmark-item:not([container]) .toolbarbutton-text {
display:none!important;
}
@e-roux
e-roux / fish.md
Last active November 30, 2019 13:42
Memo: Fish shell

Fish

fish is a smart and user-friendly command line shell for Linux, macOS, and the rest of the family.

  • Autosuggestions
  • Web Based configuration
  • ...

Installation

@e-roux
e-roux / install.sh
Last active May 12, 2019 15:14
VDR
#!/bin/bash
# If no DVB adapter present, break
dmesg | grep -i DVB > /dev/null
if (($? != 0)); then exit 1;fi
# Install Firmware
sudo wget -q https://github.com/OpenELEC/dvb-firmware/blob/master/firmware/dvb-demod-m88ds3103.fw?raw=true -O /lib/firmware/dvb-demod-m88ds3103.fw
#---------------------------------------------------------