Skip to content

Instantly share code, notes, and snippets.

View zessx's full-sized avatar

Samuel Marchal zessx

View GitHub Profile
@zessx
zessx / todo.sh
Last active March 15, 2017 16:55
Search for single line TODOs in your project
#!/bin/bash
# Usage:
# ./todo.sh
# ./todo.sh folder1 folder2/subfolder
FOLDERS='./'
if [[ $* ]]; then
FOLDERS=$*
fi
{
"Ansi 5 Color" : {
"Green Component" : 0.30697798579568808,
"Blue Component" : 0.52344669809931299,
"Red Component" : 0.62333851809954743
},
"Tags" : [
],
"Ansi 12 Color" : {
@zessx
zessx / cloudSettings
Last active March 1, 2019 11:49
Visual Studio Code Sync Settings GIST (macOS)
{"lastUpload":"2019-03-01T11:49:06.131Z","extensionVersion":"v3.2.5"}
@zessx
zessx / .aliases-vagrant
Last active September 27, 2019 08:42
Manage Vagrant easily
#!/bin/zsh
# Let Funky Fox 🦊 manage your Vagrants!
# Available commands:
# - vag list
# - vag NAME up
# - vag NAME halt
# - vag NAME go
# - vag NAME ssh
function vag() {
@zessx
zessx / keymaps\zessx.xml
Last active December 14, 2020 20:49
PHPStorm configuration
<keymap version="1" name="zessx" parent="$default">
<action id="$Copy">
<keyboard-shortcut first-keystroke="ctrl c" />
</action>
<action id="$Cut">
<keyboard-shortcut first-keystroke="ctrl x" />
</action>
<action id="$LRU">
<keyboard-shortcut first-keystroke="shift ctrl t" />
<keyboard-shortcut first-keystroke="shift ctrl o" />
@zessx
zessx / bash-git-prompt.sh
Last active December 15, 2021 19:15
Custom PS1 for git
# Install for all users:
# $ wget https://gist.githubusercontent.com/zessx/10777a44ff56304487e7970142ca0b65/raw/bash-git-prompt.sh --no-check-certificate -P /etc/bash_completion.d
# Install for one user:
# $ wget https://gist.githubusercontent.com/zessx/10777a44ff56304487e7970142ca0b65/raw/bash-git-prompt.sh --no-check-certificate -P ~
# $ echo "\n\n# Bash Git Prompt\nsource ~/bash-git-prompt.sh" >> ~/.bashrc
# $ . ~/.bashrc
# Settings:
BGP_BRANCH_SAFE=("develop" "dev")
@zessx
zessx / theme.css
Created May 5, 2022 14:34
JSONVue dark theme
/* https://chrome.google.com/webstore/detail/jsonvue/chklaanhfefbnpoihckbnefhakgolnmc?hl=fr */
#json {
white-space: pre;
font-family: Menlo, Monaco, "Courier New", monospace;
color: #d4d4d4;
background: #1e1e1e;
}
.property {