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 | |
| set -e | |
| # Define install directory and profile file | |
| INSTALL_DIR="/usr/local" | |
| PROFILE_FILE="$HOME/.profile" | |
| echo "Fetching latest Go version..." | |
| LATEST_VERSION=$(curl -s "https://go.dev/VERSION?m=text" | head -n 1) |
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 | |
| # Exit immediately if any command fails | |
| set -e | |
| # Define variables | |
| FONT_NAME="Mononoki" | |
| NERD_FONT_NAME="Mononoki Nerd Font" | |
| FONT_URL="https://github.com/ryanoasis/nerd-fonts/releases/latest/download/Mononoki.zip" | |
| FONT_DIR="$HOME/.local/share/fonts/NerdFonts" |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.Text; | |
| public class QueryBuilder | |
| { | |
| private enum QueryState | |
| { | |
| Start, | |
| AfterSelect, |
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 | |
| # Neovim Installer Script | |
| # This script downloads and installs the latest stable Neovim release from GitHub | |
| # Works on most Linux distributions | |
| set -euo pipefail | |
| # Colors for output | |
| RED='\033[0;31m' |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.Threading; | |
| public class SingleThreadedEventLoop | |
| { | |
| private readonly PriorityQueue<ScheduledTask, long> _taskQueue = new(); | |
| private readonly Queue<Action> _immediateTasks = new(); | |
| private readonly Dictionary<int, ScheduledTask> _scheduledTasks = new(); | |
| private int _nextId = 1; |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Threading.Channels; | |
| using System.Threading.Tasks; | |
| public interface IMessageStorage | |
| { | |
| ValueTask WriteAsync(string message); | |
| bool TryWrite(string message); |
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
| mkdir ~/.npm-global | |
| npm config set prefix '~/.npm-global' | |
| echo "export PATH=~/.npm-global/bin:$PATH" >> ~/.profile | |
| source ~/.profile |
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 | |
| # idea|clion|datagrip etc. | |
| intellijproduct="idea" | |
| tarfile="" | |
| attempt=$(find . -iname "*$intellijproduct*.gz") | |
| uresp="" | |
| if [ "$attempt" != "" ]; then | |
| echo "" |