Skip to content

Instantly share code, notes, and snippets.

View ProteusCortex's full-sized avatar

Angelos Ioannis Kitsantas ProteusCortex

  • Greece
  • 02:36 (UTC +03:00)
View GitHub Profile
@ProteusCortex
ProteusCortex / Cosmote3CX.pv.xml
Last active April 23, 2020 18:42
3CX provider config for OTE (Cosmote) VoIP
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<doc>
<header>
<name>Cosmote</name>
<time>2020-04-23T18:41:53.2487931Z</time>
<type>gateway-template</type>
</header>
<data>
<device>
<type>provider</type>

Minecraft Ultimate Tool Set

Requires creative mode or operator power on a multiplayer server. On a single player game (survival or hardcore), you will need "cheats" enabled to move into creative mode. Don't forget to leave creative mode when done.

These items might be stupid. Be prepared to repair the country-side.

#!/bin/bash
rainymood() {
FILE=$((RANDOM%4)) # only found 3 items :v
URL="https://rainymood.com/audio1110/${FILE}.ogg"
mpv "$URL" && rainymood
}
rainymood
@ProteusCortex
ProteusCortex / .bashrc
Created January 12, 2017 11:49
Raspi node .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
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace
@ProteusCortex
ProteusCortex / .gitconfig
Created December 26, 2015 13:36
Git aliases
[alias]
lg1 = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
lg = !git lg1
@ProteusCortex
ProteusCortex / .vimrc
Last active January 5, 2020 15:57
An assembly of various hunks of .vimrc files, tailored to my preferences, kept as simple as possible. (see comment bellow)
" Modeline and Notes {
" vim: set sw=4 ts=4 et tw=78 foldmarker={{{,}}} foldlevel=0 foldmethod=marker spell:
"
" An assembly of various hunks of .vimrc files, tailored to my preferences
" and widely based on other people's .vimrc files, posts and guides.
"
" }
" Environment {{{