-
Find the Discord channel in which you would like to send commits and other updates
-
In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe!
Discover gists
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
root = true | |
# C# files | |
[*.cs] | |
#### Core EditorConfig Options #### | |
# Indentation and spacing | |
indent_size = 4 | |
indent_style = space |
financial support to Awesome Go
A curated list of awesome Go frameworks, libraries and software. Inspired by awesome-python.
These are working as of 2nd July 2021, some dispense once daily, once every hour etc Please return testnet coins when you're done testing so that others can keep building
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/sh -x | |
#This script removes Mono from an OS X System. It must be run as root | |
rm -r /Library/Frameworks/Mono.framework | |
rm -r /Library/Receipts/MonoFramework-* | |
for dir in /usr/bin /usr/share/man/man1 /usr/share/man/man3 /usr/share/man/man5; do | |
(cd ${dir}; |
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
Let's start with: Java is a language that one would create when looking at the state of C++ in early 90's and thinking how can I make it "better" in terms of being error prone. | |
But this was only an evolution instead of a revolution STL introduced as a way of programming | |
(sure, they weren't first, but I'd say they were the first to introduce it to masses) | |
The rest is a consequence of being backward | |
Problem with null pointers? Still there | |
Speaking of pointers in Java, I like how Java fans continuously say "they're not pointers, they're references" | |
But guess what happens when you access a null reference? A NullPointerException is thrown | |
So what I don't like? | |
Collections API. Just terrible. | |
The "unmodifiable" lists are your regular lists that throw exceptions on modifications |
How to install Unity3D on Ubuntu based Linux distros (Kubuntu, Xubuntu, POP_OS, Mint, Neon, Zorin, etc.).
This guide details how to install UnityHub, Unity, VS Code and how to get full C# support with IntelliSense and debugging.
Tested on Kubuntu 22.04.
Unity Hub won't run on Ubuntu newer than 20.04 because it depends on an outdated libssl. We need to manually install the package from 20.04:
- Install iTerm2 from https://www.iterm2.com/
- Install oh-my-zsh from https://ohmyz.sh/ or https://github.com/robbyrussell/oh-my-zsh
- Set iTerm2 theme tab theme to Dark -
Preferences | Appearance | Tabs | Theme > Dark
- Install Fira Code fonts from https://github.com/tonsky/FiraCode (Clone and navigate to
dstr > ttf
, install all font files by double clicking) - Install Powerline fonts from https://github.com/powerline/fonts
- Set fonts for iTerm2 -
Preferences | Profiles | Text
- Change
Font
to14pt Fira code regular
and CheckUse Ligatures
checkbox - Change
Non ASCII Font
to14pt Fira mono
and CheckUse Ligatures
checkbox
- Change
- Install iTerm2 snazzy theme from https://github.com/sindresorhus/iterm2-snazzy
- Navigate to
Preferences | Profiles | Color Presets > Snazzy
- Navigate to
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 | |
service_name="backup-all-secrets" | |
secret_list=( `docker secret ls --format "{{ .Name }}"` ) | |
cmd="docker service create \ | |
--name $service_name \ | |
--constraint node.hostname==`hostname` " | |
for secret in "${secret_list[@]}" |
NewerOlder