Language | LSP | Install |
---|---|---|
Bash | bash-language-server | npm i -g bash-language-server |
CSS | vscode-css-language-server | npm i -g vscode-langservers-extracted |
Docker | dockerfile-language-server-nodejs | npm i -g dockerfile-language-server-nodejs |
Go | gopls | go install golang.org/x/tools/gopls@latest |
HTML | vscode-html-language-server | npm i -g vscode-langservers-extracted |
JSON | vscode-json-language-server | npm i -g vscode-langservers-extracted |
The idea behind this gist is to make this settings the default for all users
sudo apt install -y zsh
(debian based distro)sudo apk add zsh
(alpine)sudo git clone --depth=1 https://github.com/romkatv/powerlevel10k.git /usr/share/zsh/powerlevel10k
sudo git clone https://github.com/zsh-users/zsh-autosuggestions /usr/share/zsh/zsh-autosuggestions
sudo git clone https://github.com/zsh-users/zsh-syntax-highlighting.git /usr/share/zsh/zsh-syntax-highlighting
This information was spread out on several forum posts, blogs, wikis... etc. This gist is intended to collect all that information in one place so I don't have to dig it all up again. If you find it useful please leave a comment.
- You need to have a working install of TrueNAS Core or SCALE. (I prefer SCALE... it is just better)
- All of the following commands are performed in the shell on the NAS. (zsh is my prefered shell, these will work in bash)
- You need an api key from your DNS provider (my example is Digital Ocean) and an api key for your NAS. See official documentation for instructions on generating. (not in the scope of this gist)
- Your own domain
Get the from virsh list
It might be diferent from the display name in virt-manager.
virsh migrate --auto-converge --copy-storage-all --persistent --verbose <name> qemu+ssh://<new host>/system
- Use the
--undefinesource
flag to delete the origial VM after migration. - Both new and old host need to have ssh root access setup with keys. They also need to resolve in DNS if host names are used.
This file contains 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
# First, check out the commit you wish to go back to (get sha-1 from git log) | |
git reset --hard 9d3c3a0caa7f7b35ef15adb96fc80fcbb59ac72a | |
# Then do a forced update. | |
git push origin +9d3c3a0caa7f7b35ef15adb96fc80fcbb59ac72a^:develop | |
# Push specific commit | |
git push origin 9d3c3a0caa7f7b35ef15adb96fc80fcbb59ac72a:develop -f |
This file contains 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
version: '3.3' | |
services: | |
confluence-server: | |
depends_on: | |
- postgres-server | |
environment: | |
- JVM_MINIMUM_MEMORY=$JVM_MIN | |
- JVM_MAXIMUM_MEMORY=$JVM_MAX | |
- JVM_RESERVED_CODE_CACHE_SIZE=$JVM_HEAP | |
- ATL_PROXY_NAME=site.url |
This file contains 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<title>SamEureka's 'Crafty' - A Modded Minecraft Server!</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<script src="https://use.typekit.net/mcq1pvw.js"></script> | |
<script>try{Typekit.load({ async: true });}catch(e){}</script> | |
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel='stylesheet' type='text/css'> | |
<link href='https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.min.css' rel='stylesheet' type='text/css'> |
This file contains 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 | |
# Check to see if direwolf is runing | |
dire=`screen -list | grep direwolf` | |
# TODO put this in a while loop to make it better | |
# (it's good enough for now) | |
# TODO make it all DRY |
This file contains 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 | |
# echo "Starting Direwolf on port: 25566" | |
# cd /home/sam/servers/direwolf && screen -dmS direwolf ./ServerStart.sh & | |
# echo "Starting Infinity on port: 25567" | |
# cd /home/sam/servers/infinity && screen -dmS infinity ./ServerStart.sh & | |
echo "Starting SkyFactory on port: 25565" | |
cd /home/sam/servers/skyfactory && screen -dmS skyfactory ./ServerStart.sh & |
This file contains 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 | |
# Create an array with the screen instance names. (The screen names are 10 characters because I suck at REGEX) | |
LIST=(`screen -list |grep -o '[a-z]\{10\}'`) | |
# Iterate over the array to do the work. | |
for i in "${LIST[@]}"; do | |
# Create a working string variable with the name | |
work="$i" | |
check=`screen -list |grep $work` |