Skip to content

Instantly share code, notes, and snippets.

View spac3unit's full-sized avatar

Denis spac3unit

View GitHub Profile
@spac3unit
spac3unit / tailwind_md_all_colours.js
Created May 29, 2024 13:07 — forked from davidpiesse/tailwind_md_all_colours.js
A colour set for Tailwind CSS that include all Material Design Colours, shades, accents and contrast colours
// https://davidpiesse.github.io/tailwind-md-colours/
//
//Notes
//
//All colours are generated from Material Design Docs
//Colours have a base, a set of shades (50-900) accent colours
//In addition a companion set of contrast colours are included for colouring text / icons
// Example usage
// class="w-full bg-red-600 text-red-600-constrast"
@spac3unit
spac3unit / init.lua
Created September 18, 2023 18:49 — forked from mekeor/init.lua
A Minimal Neovim Configuration for TypeScript Development featuring Lazy.nvim, LSP, Tree-Sitter, Prettier, Guess-Indent
---- about this neovim-configuration
-- - features: completion, lsp, tree-sitter, formatter, automatic configuration of indendation.
-- - goals: web development with typescript and tsx.
-- - themes: on mac, one-light; otherwise, gruvbox.
---- external setup
-- - install git and neovim. e.g., with guix as package-manager, run:
-- guix install git neovim
@spac3unit
spac3unit / clean-up-arch-linux.md
Created September 16, 2023 20:46 — forked from rumansaleem/clean-up-arch-linux.md
Instructions to clean up Arch Linux (Manjaro)

Contents

  • Clean pkg cache
  • Remove unused packages (orphans)
  • Clean cache in /home
  • remove old config files
  • Find and Remove
    • duplicates
    • empty files
    • empty directories
  • broken symlinks
@spac3unit
spac3unit / autostake.sh
Created December 26, 2022 20:04
uptick autostake
#!/bin/bash
############ SET PROPERTIES #########
ADDRESS="walletadress"
VALIDATOR="valoperadress"
KEY_NAME="walletname"
PASS="walletpass"
CHAIN_ID="chainid"
GAS_VALUE="auto"
@spac3unit
spac3unit / cron.js
Created November 19, 2022 19:08
Cron helper
export const Every = {
second: "* * * * * *",
minute: "* * * * *",
minutes15: "*/15 * * * *",
halfHour: "*/30 * * * *",
hour: "0 * * * *",
twelveHours: "0 */12 * * *",
day: "0 0 * * *", //At 00:00
weekDay: "0 0 * * 1-5", //Monday to Friday.
weekend: "0 0 * * 6,0", //Saturday and Sunday
@spac3unit
spac3unit / screenshot.py
Created October 31, 2022 15:28 — forked from initbrain/screenshot.py
Python screenshot tool (fullscreen/area selection)
#!/usr/bin/env python
# Python screenshot tool (fullscreen/area selection)
# Tested on:
# Lubuntu 13.04 x86_64
# Gentoo 4.1.7-hardened-r1 x86_64
import sys
from PyQt4 import QtCore, QtGui
from commands import getoutput
from StringIO import StringIO

Keybase proof

I hereby claim:

  • I am spac3unit on github.
  • I am potapov (https://keybase.io/potapov) on keybase.
  • I have a public key ASA2o7bVIHATlC3ntjklDiU8WBrEDKaZlG6iyivnRKIcQAo

To claim this, I am signing this object:

"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": [
"comment",
"comment.block",
"comment.block.documentation",
"comment.line",
"constant",
"constant.character",
@spac3unit
spac3unit / Dockerfile
Last active November 19, 2021 19:52
Idena docker
# Sample usage with a mounted data directory and fast sync:
# > docker build --tag idena .
# > docker run --network host --volume ~/.idena/datadir:/home/datadir idena --fast
FROM ubuntu AS builder
WORKDIR /home
RUN apt-get update && \
apt-get install -y jq wget
🌞 Morning 28 commits ██░░░░░░░░░░░░░░░░░░░ 9.9%
🌆 Daytime 94 commits ██████▉░░░░░░░░░░░░░░ 33.3%
🌃 Evening 113 commits ████████▍░░░░░░░░░░░░ 40.1%
🌙 Night 47 commits ███▍░░░░░░░░░░░░░░░░░ 16.7%