Skip to content

Instantly share code, notes, and snippets.

View Danand's full-sized avatar

Andrey Danilov Danand

View GitHub Profile
@Danand
Danand / install-adapta.sh
Last active December 10, 2019 08:29
Installer of material theme and icons for Debian-based OS
#!/bin/bash
#
# Installs Adapta theme and icons and cursors.
# Install common prerequsites:
sudo apt-get install -y software-properties-common
# Install Tweaks (Elementary OS):
#sudo add-apt-repository ppa:philip.scott/elementary-tweaks
#sudo apt-get install -y elementary-tweaks
@Danand
Danand / git-cleanup.sh
Created December 10, 2019 08:38
Prune and expire everything, then GC
#!/bin/bash
#
# Cleans up all reflog (forced expire), all unreachable branches,
# old LFS content, and performs aggressive GC.
git reset --hard
git clean -fd
git fetch --prune
git reflog expire --expire=now --all
git gc --prune=now --aggressive
@Danand
Danand / ConcurrentList.cs
Created July 3, 2021 22:08
Just another concurrent list implementation.
/// <summary>
/// Just another concurrent list implementation.
/// </summary>
public class ConcurrentList<T> : IList<T>
{
private readonly ConcurrentDictionary<int, T> _dictionary = new ConcurrentDictionary<int, T>();
public IEnumerator<T> GetEnumerator()
{
return _dictionary.Values.GetEnumerator();
#!/usr/bin/env bash
export PROFILE_NAME="Halloween 2023"
export COLOR_01="#030603" # Black (Host)
export COLOR_02="#538d97" # Red (Syntax string)
export COLOR_03="#bb0dcf" # Green (Command)
export COLOR_04="#5f559a" # Yellow (Command second)
export COLOR_05="#596994" # Blue (Path)
export COLOR_06="#8c9386" # Magenta (Syntax var)
{
"name": "Halloween 2023",
"background": "#030603",
"black": "#030603",
"blue": "#596994",
"brightBlack": "#264633",
"brightBlue": "#596994",
"brightCyan": "#ea7600",
"brightGreen": "#bb0dcf",
"brightPurple": "#8c9386",