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
docker run \ | |
--name {{printf "%q" .Name}} \ | |
{{- with .HostConfig}} | |
{{- if .Privileged}} | |
--privileged \ | |
{{- end}} | |
{{- if .AutoRemove}} | |
--rm \ | |
{{- end}} | |
{{- if .Runtime}} |
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
{ | |
"build_systems": | |
[ | |
{ | |
"cmd": | |
[ | |
"make", | |
"-j", | |
"6" | |
], |
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
AdvancedNewFile | |
All Autocomplete | |
Auto Docstring | |
C++11 | |
Cmake | |
Dockerfile syntax highlighter | |
TrailingSpaces | |
TOML | |
String Utilities | |
SideBarEnchancements |
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
ssh-add -l &>/dev/null | |
if [ "$?" == 2 ]; then | |
test -r ~/.ssh-agent && \ | |
eval "$(<~/.ssh-agent)" >/dev/null | |
ssh-add -l &>/dev/null | |
if [ "$?" == 2 ]; then | |
(umask 066; ssh-agent > ~/.ssh-agent) | |
eval "$(<~/.ssh-agent)" >/dev/null | |
ssh-add |
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
{ | |
"always_prompt_for_file_reload": true, | |
"binary_file_patterns": | |
[ | |
"*.gif", | |
"*.ttf", | |
"*.tga", | |
"*.dds", | |
"*.ico", | |
"*.eot", |
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/bash | |
#common configs | |
#aliases | |
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" | |
git config --global alias.st status | |
git config --global alias.co checkout | |
git config --global alias.su "submodule update --recursive" | |
#other | |
git config --global push.default current |
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
[ | |
{ "keys": ["ctrl+shift+r"], "command": "reveal_in_side_bar"}, | |
{ "keys": ["super+."], "command": "next_bookmark" }, | |
{ "keys": ["super+,"], "command": "prev_bookmark" }, | |
{ "keys": ["alt+super+/"], "command": "toggle_bookmark" }, | |
{ "keys": ["ctrl+super+left"], "command": "jump_back" }, | |
{ "keys": ["ctrl+super+right"], "command": "jump_forward" }, | |
{ "keys": ["super+shift+e"], "command": "enumerate" }, | |
{ "keys": ["super+escape"], "command": "show_panel", "args": { "panel": "output.exec" } | |
} |
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
<snippet> | |
<content><![CDATA[ | |
public: | |
${1}(); | |
~${1}() noexcept; | |
${1}(const ${1}&) = delete; | |
${1}& operator = (const ${1}&) = delete; | |
${1}(${1}&&) = delete; |
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
<snippet> | |
<content><![CDATA[ | |
#ifndef ${1} | |
#define ${1} | |
${2} | |
#endif // ${1} | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> |
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 package | |
sudo apt install -y ccache | |
# Update symlinks | |
sudo /usr/sbin/update-ccache-symlinks | |
# Prepend ccache into the PATH | |
echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a ~/.bashrc | |
# Source bashrc to test the new PATH |
NewerOlder