Skip to content

Instantly share code, notes, and snippets.

View dakyskye's full-sized avatar
🐧

Lasha Kanteladze dakyskye

🐧
View GitHub Profile
package main
import (
"log"
)
const (
regKey = `Software\Microsoft\Windows\CurrentVersion\Themes\Personalize`
regName = `AppsUseLightTheme`
)
import ctypes
import pathlib
from glob import glob
import random
import sys
from time import sleep
last_wallpaper = ''
@dakyskye
dakyskye / .zshrc
Created April 12, 2022 17:15
rename nvim_ostheme.py to nvim_ostheme, put it in /usr/local/bin and update your .zshrc aliases
alias vim="/usr/local/bin/nvim_ostheme; nvim"
alias nvim="/usr/local/bin/nvim_ostheme; nvim"
from operator import mod
import sys
# engineered at 2:57am - October 8th, Saturday
def represent_as(origin, *, base=0, new_base=0):
# let's first represent the actual number in its base
number = origin
digits = []
while number > 0:
@dakyskye
dakyskye / Dockerfile
Created October 24, 2022 21:33
Dockerfile I use in Go projects
FROM golang:1.18.4-alpine3.16 AS builder
ARG pkey
ENV SSH_PRIVATE_KEY $pkey
WORKDIR /service
ADD . .
RUN apk add --no-cache git openssh \
@dakyskye
dakyskye / 1.c
Last active February 27, 2024 20:31
Homework 1 at Structural Programming w Nona Otkhozoria
#include <stdio.h>
#include <math.h>
int main() {
// N = amount of rooms
// P = amount of hallways
// Q = amount of floors
// K = randomly chosen room by user
int N, P, Q, K;