Skip to content

Instantly share code, notes, and snippets.

View spac3unit's full-sized avatar

Denis spac3unit

View GitHub Profile
@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%
@spac3unit
spac3unit / unfollow-non-followers-twitter.js
Created November 11, 2021 20:02 — forked from YogaSakti/unfollow-non-followers-twitter.js
Code to stop following those ones who are not following you back on Twitter and keeping those you want or follow anyone you want, with certain filters (working in July 2019)
/*
Unfollow (stop following) those people who are not following you back on Twitter (or unfollow everyone if desired).
This will work for new Twitter web site code structure (it was changed from July 2019, causing other unfollow-scripts to stop working).
Instructions:
1) The code may need to be modified depending on the language of your Twitter web site:
* For English language web site, no modification needed.
* For Spanish language web site, remember to set the 'LANGUAGE' variable to "ES".
* For another language, remember to set the 'LANGUAGE' variable to that language and modify the 'WORDS' object to add the words in that language.