Skip to content

Instantly share code, notes, and snippets.

View Feniksovich's full-sized avatar
:octocat:
Bugs Developer

Maxim Fenixov Feniksovich

:octocat:
Bugs Developer
View GitHub Profile
@Feniksovich
Feniksovich / 1prom.py
Last active April 26, 2022 18:16
Programs for IT Unified State Exam (Game Theory)
# 1 heap
# Prohibition of repetition of the opponent's move
def f(s,p,c,m):
if s>64: return c%2==m%2
if c==m: return 0
h=[]
if p!='+1': h+=[f(s+1,'+1',c+1,m)]
if p!='+2': h+=[f(s+1,'+2',c+1,m)]
@Feniksovich
Feniksovich / .bashrc
Last active March 12, 2022 15:47
colorized .bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@Feniksovich
Feniksovich / .bash_aliases
Last active May 30, 2023 11:32
systemctl aliases
# Basic systemctl commands
alias ctlsp="systemctl stop"
alias ctlst="systemctl start"
alias ctlrt="systemctl restart"
alias ctls="systemctl status"
# Enable/Disable commands for units
alias ctle='systemctl enable'
alias ctld='systemctl disable'