Skip to content

Instantly share code, notes, and snippets.

View Pixep's full-sized avatar
🌲

Adrien Leravat Pixep

🌲
View GitHub Profile
@Pixep
Pixep / .bashrc
Last active May 10, 2018 09:15
Clean bash PS1 with host and path
export PS1="\n\[$(tput sgr0)\]\[\033[38;5;10m\]\h\[$(tput sgr0)\]\[\033[38;5;244m\]:\w\[$(tput sgr0)\]\[\033[38;5;15m\]\n\[$(tput sgr0)\]\[\033[38;5;39m\]\u\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]\[\033[38;5;244m\]>\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]"
@Pixep
Pixep / setup-profile.sh
Last active June 16, 2019 19:29
Install Debian/Ubuntu essential development tools
#!/bin/bash
set -e
ATP_OPTS="-y"
sudo apt update
# Terminal tools
sudo apt install $APT_OPTS \
zsh tmux vim sshfs wget fd-find curl
@Pixep
Pixep / install-qt-deps.sh
Last active June 7, 2018 12:24
Qt development dependencies for *ubuntu
# OpenGL dev headers
sudo apt install -y mesa-common-dev libgl1-mesa-dev
# Video playback
sudo add-apt-repository ppa:mc3man/gstffmpeg-keep && sudo apt update
sudo apt install -y --ignore-missing \
gstreamer0.10 gstreamer0.10-plugins-base gstreamer0.10-plugins-good \
gstreamer0.10-fluendo-mp3 gstreamer0.10-pulseaudio gstreamer0.10-ffmpeg
@Pixep
Pixep / Nginx config .gitignore
Last active November 26, 2018 00:51
Nginx configuration .gitignore file
# Generic nginx configuration, untouched
koi-utf
koi-win
modules
mime.types
win-utf
# Local configuration
sites-enabled
modules-enabled
@Pixep
Pixep / zsh-base.sh
Last active November 26, 2018 07:07
Zsh base settings
# Zsh
ZSH_THEME=bira
# Aliases
alias targz="tar -pcvzf"
alias untargz="tar -pxvzf"
alias dps="docker ps -a"
@Pixep
Pixep / clear-prestashop17-cache.sh
Last active February 2, 2021 15:10
Automated Prestashop 1.7 cache clear
#!/bin/bash
if [ -z "$1" ]; then
echo "Error: Requires exactly 1 argument, the root of your prestashop folder. Aborting."
exit 1
fi
base_dir=$1
# Clear class index in case any override changed
rm ${base_dir}/cache/class_index.php
@Pixep
Pixep / launch.json
Last active March 14, 2023 22:14
Carbon Explorer debug config for VSCode
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Debug file",
"type": "cppdbg",
"request": "launch",