Update scripts and add Bash-Snippet
parent
bda44f2a82
commit
a223ef0744
@ -0,0 +1,3 @@
|
||||
[submodule "Bash-Snippet"]
|
||||
path = Bash-Snippet
|
||||
url = https://github.com/alexanderepstein/Bash-Snippets.git
|
@ -0,0 +1 @@
|
||||
Subproject commit e4f038c29714a0b4d6eb920a1b54a866ade617b5
|
@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
#//////////////////////////////////////////////////////////////
|
||||
#// ____ //
|
||||
#// | __ ) ___ _ __ ___ _ _ _ __ ___ _ __ _ __ ___ //
|
||||
#// | _ \ / _ \ '_ \/ __| | | | '_ \ / _ \ '__| '_ \ / __| //
|
||||
#// | |_) | __/ | | \__ \ |_| | |_) | __/ | | |_) | (__ //
|
||||
#// |____/ \___|_| |_|___/\__,_| .__/ \___|_| | .__/ \___| //
|
||||
#// |_| |_| //
|
||||
#//////////////////////////////////////////////////////////////
|
||||
#// //
|
||||
#// Script, 2021 //
|
||||
#// Created: 27, May, 2021 //
|
||||
#// Modified: 27, May, 2021 //
|
||||
#// file: - //
|
||||
#// - //
|
||||
#// Source: - //
|
||||
#// OS: ALL //
|
||||
#// CPU: ALL //
|
||||
#// //
|
||||
#//////////////////////////////////////////////////////////////
|
||||
sudo pacman -Syu
|
@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
#//////////////////////////////////////////////////////////////
|
||||
#// ____ //
|
||||
#// | __ ) ___ _ __ ___ _ _ _ __ ___ _ __ _ __ ___ //
|
||||
#// | _ \ / _ \ '_ \/ __| | | | '_ \ / _ \ '__| '_ \ / __| //
|
||||
#// | |_) | __/ | | \__ \ |_| | |_) | __/ | | |_) | (__ //
|
||||
#// |____/ \___|_| |_|___/\__,_| .__/ \___|_| | .__/ \___| //
|
||||
#// |_| |_| //
|
||||
#//////////////////////////////////////////////////////////////
|
||||
#// //
|
||||
#// Script, 2021 //
|
||||
#// Created: 27, May, 2021 //
|
||||
#// Modified: 27, May, 2021 //
|
||||
#// file: - //
|
||||
#// - //
|
||||
#// Source: - //
|
||||
#// OS: ALL //
|
||||
#// CPU: ALL //
|
||||
#// //
|
||||
#//////////////////////////////////////////////////////////////
|
||||
sudo apt-get autoremove --purge -y
|
||||
sudo apt-get clean -y
|
@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
#//////////////////////////////////////////////////////////////
|
||||
#// ____ //
|
||||
#// | __ ) ___ _ __ ___ _ _ _ __ ___ _ __ _ __ ___ //
|
||||
#// | _ \ / _ \ '_ \/ __| | | | '_ \ / _ \ '__| '_ \ / __| //
|
||||
#// | |_) | __/ | | \__ \ |_| | |_) | __/ | | |_) | (__ //
|
||||
#// |____/ \___|_| |_|___/\__,_| .__/ \___|_| | .__/ \___| //
|
||||
#// |_| |_| //
|
||||
#//////////////////////////////////////////////////////////////
|
||||
#// //
|
||||
#// Script, 2021 //
|
||||
#// Created: 27, May, 2021 //
|
||||
#// Modified: 27, May, 2021 //
|
||||
#// file: - //
|
||||
#// - //
|
||||
#// Source: - //
|
||||
#// OS: ALL //
|
||||
#// CPU: ALL //
|
||||
#// //
|
||||
#//////////////////////////////////////////////////////////////
|
||||
sudo apt-get update
|
||||
sudo apt-get dist-upgrade
|
@ -0,0 +1,87 @@
|
||||
Language: Cpp
|
||||
|
||||
# Use 80 columns. (2.1)
|
||||
ColumnLimit: 160
|
||||
|
||||
# Indentation MUST be done using whitespaces only (2.2)
|
||||
UseTab: Never
|
||||
|
||||
# Regex denoting the diff #include categories used for ordering them. (5.11)
|
||||
IncludeCategories:
|
||||
- Regex: '".*"'
|
||||
Priority: 1
|
||||
- Regex: '<.*>'
|
||||
Priority: -1
|
||||
- Regex: '.*'
|
||||
Priority: 2
|
||||
# Merge multiple #include blocks together and sort as one.
|
||||
IncludeBlocks: Merge
|
||||
|
||||
# Tabulation. (6.4)
|
||||
IndentWidth: 4
|
||||
TabWidth: 4
|
||||
|
||||
# Make all braces {} on new line. (6.5)
|
||||
BreakBeforeBraces: Custom
|
||||
BraceWrapping:
|
||||
AfterClass: false
|
||||
AfterControlStatement: false
|
||||
AfterEnum: true
|
||||
AfterFunction: true
|
||||
AfterNamespace: true
|
||||
AfterStruct: true
|
||||
AfterUnion: true
|
||||
AfterExternBlock: true
|
||||
BeforeCatch: true
|
||||
BeforeElse: false
|
||||
|
||||
# Pointer and reference alignment style (7.2)
|
||||
PointerAlignment: Right
|
||||
|
||||
# Add space before assignment operators. (7.15)
|
||||
SpaceBeforeAssignmentOperators: true
|
||||
|
||||
# Break before operators. (7.17)
|
||||
BreakBeforeBinaryOperators: All
|
||||
BreakBeforeTernaryOperators: true
|
||||
|
||||
# Spaces will not be inserted after ( and before ). (7.18)
|
||||
SpacesInParentheses: false
|
||||
# Spaces may not be inserted into C style casts.
|
||||
SpacesInCStyleCastParentheses: false
|
||||
# Spaces may not be inserted into ().
|
||||
SpaceInEmptyParentheses: false
|
||||
|
||||
# Indent case labels one level from the switch statement. (7.27)
|
||||
IndentCaseLabels: true
|
||||
|
||||
# Horizontally aligns arguments after an open bracket.
|
||||
AlignAfterOpenBracket: DontAlign
|
||||
BinPackParameters: true
|
||||
|
||||
# Indents directives after the hash.
|
||||
IndentPPDirectives: AfterHash
|
||||
|
||||
# If true, clang-format will sort #includes.
|
||||
SortIncludes: true
|
||||
|
||||
# A space will be inserted before a C++11 braced list used to init an obj.
|
||||
SpaceBeforeCpp11BracedList: true
|
||||
|
||||
# Put a space before opening parentheses only after control statement keywords.
|
||||
SpaceBeforeParens: ControlStatements
|
||||
|
||||
# Spaces will not be inserted after < and before > in template argument lists.
|
||||
SpacesInAngles: false
|
||||
|
||||
# The maximum number of consecutive empty lines to keep.
|
||||
MaxEmptyLinesToKeep: 1
|
||||
|
||||
# Dependent on the value, int f() { return 0; } can be put on a single line.
|
||||
AllowShortFunctionsOnASingleLine: None
|
||||
|
||||
# The function declaration return type breaking style to use.
|
||||
AlwaysBreakAfterReturnType: None
|
||||
|
||||
# Prevent comment formatting
|
||||
CommentPragmas: '^\* .*'
|
@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
#//////////////////////////////////////////////////////////////
|
||||
#// ____ //
|
||||
#// | __ ) ___ _ __ ___ _ _ _ __ ___ _ __ _ __ ___ //
|
||||
#// | _ \ / _ \ '_ \/ __| | | | '_ \ / _ \ '__| '_ \ / __| //
|
||||
#// | |_) | __/ | | \__ \ |_| | |_) | __/ | | |_) | (__ //
|
||||
#// |____/ \___|_| |_|___/\__,_| .__/ \___|_| | .__/ \___| //
|
||||
#// |_| |_| //
|
||||
#//////////////////////////////////////////////////////////////
|
||||
#// //
|
||||
#// Script, 2021 //
|
||||
#// Created: 27, May, 2021 //
|
||||
#// Modified: 27, May, 2021 //
|
||||
#// file: - //
|
||||
#// - //
|
||||
#// Source: - //
|
||||
#// OS: ALL //
|
||||
#// CPU: ALL //
|
||||
#// //
|
||||
#//////////////////////////////////////////////////////////////
|
||||
docker pull gaetan/dockercraft
|
||||
docker run -t -i -d -p 25565:25565 \
|
||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||
--name dockercraft \
|
||||
gaetan/dockercraft
|
@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
#//////////////////////////////////////////////////////////////
|
||||
#// ____ //
|
||||
#// | __ ) ___ _ __ ___ _ _ _ __ ___ _ __ _ __ ___ //
|
||||
#// | _ \ / _ \ '_ \/ __| | | | '_ \ / _ \ '__| '_ \ / __| //
|
||||
#// | |_) | __/ | | \__ \ |_| | |_) | __/ | | |_) | (__ //
|
||||
#// |____/ \___|_| |_|___/\__,_| .__/ \___|_| | .__/ \___| //
|
||||
#// |_| |_| //
|
||||
#//////////////////////////////////////////////////////////////
|
||||
#// //
|
||||
#// Script, 2021 //
|
||||
#// Created: 27, May, 2021 //
|
||||
#// Modified: 27, May, 2021 //
|
||||
#// file: - //
|
||||
#// - //
|
||||
#// Source: - //
|
||||
#// OS: ALL //
|
||||
#// CPU: ALL //
|
||||
#// //
|
||||
#//////////////////////////////////////////////////////////////
|
||||
docker run -it \
|
||||
-p 25565:25565 \
|
||||
-v ~/minecraft/config:/opt/minecraft/config \
|
||||
-v ~/minecraft/worlds:/opt/minecraft/worlds \
|
||||
-v ~/minecraft/plugins:/opt/minecraft/plugins \
|
||||
-v ~/minecraft/data:/opt/minecraft/data \
|
||||
-v ~/minecraft/logs:/opt/minecraft/logs \
|
||||
felixklauke/paperspigot:1.16.5
|
@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
#//////////////////////////////////////////////////////////////
|
||||
#// ____ //
|
||||
#// | __ ) ___ _ __ ___ _ _ _ __ ___ _ __ _ __ ___ //
|
||||
#// | _ \ / _ \ '_ \/ __| | | | '_ \ / _ \ '__| '_ \ / __| //
|
||||
#// | |_) | __/ | | \__ \ |_| | |_) | __/ | | |_) | (__ //
|
||||
#// |____/ \___|_| |_|___/\__,_| .__/ \___|_| | .__/ \___| //
|
||||
#// |_| |_| //
|
||||
#//////////////////////////////////////////////////////////////
|
||||
#// //
|
||||
#// Script, 2021 //
|
||||
#// Created: 27, May, 2021 //
|
||||
#// Modified: 27, May, 2021 //
|
||||
#// file: - //
|
||||
#// - //
|
||||
#// Source: - //
|
||||
#// OS: ALL //
|
||||
#// CPU: ALL //
|
||||
#// //
|
||||
#//////////////////////////////////////////////////////////////
|
||||
mkdir -p ~/.config
|
||||
docker run -it --name code-server -p 127.0.0.1:8080:8080 \
|
||||
-v "$HOME/.config:/home/coder/.config" \
|
||||
-v "$PWD:/home/coder/project" \
|
||||
-u "$(id -u):$(id -g)" \
|
||||
-e "DOCKER_USER=$USER" \
|
||||
codercom/code-server:latest
|
Loading…
Reference in New Issue