Skip to content

Instantly share code, notes, and snippets.

View AntonC9018's full-sized avatar

Anton Curmanschii AntonC9018

View GitHub Profile
@AntonC9018
AntonC9018 / .wezterm.lua
Last active September 1, 2024 14:54
Wezterm config
local wezterm = require 'wezterm'
local act = wezterm.action
local config = wezterm.config_builder()
config.use_dead_keys = false
-- https://github.com/wez/wezterm/discussions/5102
config.enable_kitty_keyboard = true
config.allow_win32_input_mode = false
@AntonC9018
AntonC9018 / alacritty.toml
Created March 3, 2024 20:44
Alacritty Windows 10 config
# C:\Users\Name\AppData\Roaming\alacritty\alacritty.toml
[window]
dynamic_padding = false
startup_mode = "Windowed"
opacity = 1
[window.dimensions]
columns = 100
lines = 85
@AntonC9018
AntonC9018 / .tmux.conf
Created May 18, 2024 22:41
Tmux config
set -ga update-environment EDITOR
# https://github.com/artemave/tmux_super_fingers
run-shell ~/.tmux/plugins/tmux_super_fingers/tmux_super_fingers.tmux
bind C-r source-file ~/.tmux.conf \; display "Reloaded!"
set -g mouse on
set-option -g history-limit 20000
bind \` switch-client -t'{marked}'
set -g base-index 1
@AntonC9018
AntonC9018 / GeneratePasswordHelper.cs
Last active September 5, 2024 11:34
Password generator
using System.Security.Cryptography;
public static class GeneratePasswordHelper
{
private const byte _totalLength = 20;
public static string GeneratePassword(byte totalLength = _totalLength, RandomNumberGenerator? rng = null)
{
#pragma warning disable CA2000 // call Dispose
rng ??= RandomNumberGenerator.Create();
@AntonC9018
AntonC9018 / lab2.cs
Created April 25, 2025 18:17
Lab2 example from video
using System.Diagnostics;
class General
{
public static void Main()
{
var kitty = new DomesticCat(
new()
{
FurSoftness = 1,
@AntonC9018
AntonC9018 / example_video.py
Created April 30, 2025 04:30
Example from video
import pygame
import random
def main():
pygame.init()
screen = pygame.display.set_mode(
size=(1280, 720),
flags=pygame.RESIZABLE)
clock = pygame.time.Clock()