Skip to content

Instantly share code, notes, and snippets.

View alekratz's full-sized avatar
👃
smells good

~ alekratz

👃
smells good
View GitHub Profile
@alekratz
alekratz / colorizedoutput.cs
Last active August 29, 2015 14:18
C# colorized console output
using System;
using System.Collections.Generic;
namespace coloroutput
{
class MainClass
{
public const ConsoleColor DEFAULT = ConsoleColor.White;
public static void Main (string[] args)
@alekratz
alekratz / .aliases
Last active July 1, 2024 02:18
Pacman aliases
# pacman aliases
alias pac='pacman -S' # install
alias pacu='pacman -Syu' # update, add 'a' to the list of letters to update AUR packages if you use yaourt
alias pacr='pacman -Rs' # remove
alias pacs='pacman -Ss' # search
alias paci='pacman -Si' # info
alias paclo='pacman -Qdt' # list orphans
alias pacro='paclo && sudo pacman -Rns $(pacman -Qtdq)' # remove orphans
alias pacc='pacman -Scc' # clean cache
alias paclf='pacman -Ql' # list files
@alekratz
alekratz / bot.py
Last active August 29, 2015 14:17
#!/usr/bin/env python2
# Specifically, using python 2
# Make a pics/ directory and put your pictures in there
# Make a text/ directory and put your text files in there to train the markov model
# requires markovify and pytumblr
import markovify
import pytumblr
import time, os, os.path, random
client = pytumblr.TumblrRestClient(
@alekratz
alekratz / PKGBUILD
Created March 16, 2015 16:59
logisim-evolution 2.13.8 PKGBUILD
# Maintainer: Marcel Korpel <marcel[dot]korpel[at]gmail>
# Contributor: Renan Birck <renan.ee.ufsm at gmail.com>
pkgname=logisim-evolution
_truepkgname=logisim
pkgver=2.13.8
pkgrel=1
provides=('logisim')
conflicts=('logisim')
pkgdesc='An educational tool for designing and simulating digital logic circuits'