Skip to content

Instantly share code, notes, and snippets.

View Leinnan's full-sized avatar
🦀

MevLyshkin Leinnan

🦀
View GitHub Profile
@Leinnan
Leinnan / gist:f9f2185a8038b207e3e444e123bdf52e
Created November 9, 2023 16:42
Import github repos to gitea
#!/bin/bash
GITHUB_USERNAME=
GITHUB_TOKEN=
GITEA_USERNAME=
GITEA_TOKEN=
GITEA_DOMAIN=
GITEA_REPO_OWNER=
<TaskOptions>
<TaskOptions>
<option name="arguments" value="tool run dotnet-format -f . --include $FileNameWithoutExtension$.cs" />
<option name="checkSyntaxErrors" value="true" />
<option name="description" />
<option name="exitCodeBehavior" value="ALWAYS" />
<option name="fileExtension" value="cs" />
<option name="immediateSync" value="false" />
<option name="name" value="Dotnet Format" />
<option name="output" value="." />
@Leinnan
Leinnan / 0001-Add-parsing-pseudo-classes.patch
Created April 7, 2023 16:11
0001-Add-parsing-pseudo-classes.patch
From f1dcf7f96c37eb2b8f4215ca31ede61ce45bd192 Mon Sep 17 00:00:00 2001
From: Piotr Siuszko <siuszko@zoho.com>
Date: Fri, 7 Apr 2023 18:10:16 +0200
Subject: [PATCH] Add parsing pseudo classes
---
src/parser.rs | 23 ++++++++++++++---------
src/selector.rs | 27 +++++++++++++++++++++++----
src/system.rs | 4 ++++
3 files changed, 41 insertions(+), 13 deletions(-)
@Leinnan
Leinnan / MyBelka
Created April 21, 2017 17:52
Opis programu do zarządzania finansami
# Klasa Category
## Pola
- string name;
- string color;// in hex colors
# KLASA Transaction
@Leinnan
Leinnan / ufetch_manjaro.sh
Created December 30, 2016 00:59
Ufetch for Manjaro
#!/bin/sh
HOST="$(hostname)"
OS="Manjaro Linux"
KERNEL="$(uname -sr)"
WM=$(xprop -id $(xprop -root -notype | awk '$1=="_NET_SUPPORTING_WM_CHECK:"{print $5}') -notype -f _NET_WM_NAME 8t | grep "WM_NAME" | sed -e 's/_NET_WM_NAME = \"\(.*\)\"/\1/')
UPTIME="$(uptime -p | sed s:"up "::)"
PACKAGES="$(pacman -Q | wc -l)"
## DEFINE COLORS
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
#
# This config file uses keycodes (bindsym) and was written for the QWERTY
# layout.
#
# To get a config file with the same key positions, but for your current
# layout, use the i3-config-wizard
#
#!/bin/bash
shopt -s nullglob
cd ~/Obrazy/Tapety/
while true; do
files=()
for i in *.jpg *.png; do
[[ -f $i ]] && files+=("$i")
done
#!/bin/bash
output="<txt>"
next="ttttttttttttttttttttttttttt"
secondary_color="#5294e2"
warning_color="#fea962"
##########################
#!/bin/bash
echo " "$(xprop -id $(xprop -root 32x '\t$0' _NET_ACTIVE_WINDOW | cut -f 2) _NET_WM_NAME | grep -oP '(?<=").*?(?=")')
#!/usr/bin/python3
import psutil
import datetime
import os
output = " "
##########################
# MPD
##########################