This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install oh my zsh | |
sudo apt update | |
sudo apt install -y git curl zsh | |
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
zsh | |
# download plugins | |
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions | |
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Don't try to be vi compatible | |
set nocompatible | |
set encoding=utf-8 | |
set hidden | |
set nobackup | |
set nowritebackup | |
set cmdheight=2 | |
set updatetime=300 | |
set shortmess+=c | |
set signcolumn=number |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( cd && curl -fsSLO https://raw.githubusercontent.com/romkatv/dotfiles-public/master/.purepower ) | |
echo 'source ~/.purepower' >>! ~/.zshrc | |
git clone https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k | |
#ZSH_THEME=powerlevel10k/powerlevel10k | |
sed -E "s/ZSH_THEME\=\"(.*)\"/ZSH_THEME\=\"powerlevel10k\/powerlevel10k\"/" -i ~/.zshrc | |
plugins=( | |
git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
ANDROID_COMPILE_SDK=29 | |
ANDROID_BUILD_TOOLS=29.0.2 | |
ANDROID_SDK_TOOLS=4333796 | |
FLUTTER_CHANNEL=master | |
INSTALL_DIR=$HOME | |
# Update | |
# NOTE : openjdk-8-jdk n'est plus en LTS | |
sudo apt update || exit 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "NE PAS EXECUTER, FAIRE UNIQUEMENT PAR SELECTION" | |
exit 1 | |
# Seulement pour Ubuntu/Debian-based | |
# Install Android SDK et FlutterSDK (avec PATH vers DartSDK) | |
sudo apt update | |
sudo apt install -y apt-transport-https wget curl git sed openjdk-11-jdk unzip lib32stdc++6 | |
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64 | |
PATH=$PATH:/usr/lib/jvm/java-11-openjdk-amd64/bin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Testé sur le docker-compose ci-dessous | |
CREATE TABLE Pays ( | |
--ISO 3166-1 alpha-3 | |
Code CHAR(3) NOT NULL PRIMARY KEY, | |
Name VARCHAR(255) NOT NULL | |
); | |
CREATE TABLE Ville ( | |
ID SERIAL PRIMARY KEY, | |
Name VARCHAR(255) NOT NULL, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# StrongSwan | |
# priv0 is private network | |
# Inspired by https://www.digitalocean.com/community/tutorials/how-to-set-up-an-ikev2-vpn-server-with-strongswan-on-ubuntu-16-04 | |
*mangle | |
:PREROUTING ACCEPT [1436:111226] | |
:INPUT ACCEPT [1101:80512] | |
:FORWARD ACCEPT [235:19214] | |
:OUTPUT ACCEPT [1198:137855] | |
:POSTROUTING ACCEPT [1667:173335] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// -- Data layer | |
class Dio { | |
final String name; | |
const Dio(this.name); | |
} | |
// -- Domain/Business logic layer | |
class ServiceA { | |
final Dio dio; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget -qO- https://typora.io/linux/public-key.asc | sudo gpg --dearmor -o /usr/local/share/keyrings/typora-keyring.gpg | |
deb [signed-by=/usr/local/share/keyrings/typora-keyring.gpg] .... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#SBATCH -N 5 | |
#SBATCH --cpu-per-task=32 | |
#SBATCH --ntasks-per-node=1 | |
ml gentoo | |
ml distcc | |
distccd --allow 10.10.2.0/24 --log-file /tmp/distccd.marc.log --user marc --verbose --no-detach --enable-tcp-insecure & |
OlderNewer