Skip to content

Instantly share code, notes, and snippets.

#!/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)
@darthgelum
darthgelum / monoki_nerd_font_install.sh
Last active May 20, 2025 08:29
monoki_nerd_font_install.sh
#!/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"
using System;
using System.Collections.Generic;
using System.Text;
public class QueryBuilder
{
private enum QueryState
{
Start,
AfterSelect,
#!/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'
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;
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);
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
echo "export PATH=~/.npm-global/bin:$PATH" >> ~/.profile
source ~/.profile
@darthgelum
darthgelum / install-idea.sh
Last active November 20, 2023 10:28
Automating script for installing JetBrains products on Linux distributons from official ".tar.gz"
#!/bin/bash
# idea|clion|datagrip etc.
intellijproduct="idea"
tarfile=""
attempt=$(find . -iname "*$intellijproduct*.gz")
uresp=""
if [ "$attempt" != "" ]; then
echo ""