Skip to content

Instantly share code, notes, and snippets.

View AntouanK's full-sized avatar

Antonios Karamitros AntouanK

View GitHub Profile
@AntouanK
AntouanK / README.md
Created May 1, 2017 21:12 — forked from m-basov/README.md
XFCE4 Terminal Snazzy Colorsheme

Snazzy for XFCE4 Terminal

preview

Install

  1. Copy snazzy.theme to ~/.local/share/xfce4/terminal/colorschemes/.
  2. Preferences -> Colors -> Presets -> Snazzy

Links

@AntouanK
AntouanK / radios.m3u
Last active May 5, 2017 13:54
Radios
#EXTM3U
#EXTVLCOPT:network-caching=100
http://s10.voscast.com:9878/;stream.mp3
#EXTVLCOPT:network-caching=100
http://streaming.radionomy.com/NeoIndieRock
#EXTINFO:KEXP
http://live-aacplus-64.kexp.org/kexp64.aac?type=.flv
http://somafm.com/seventies130.pls
http://somafm.com/beatblender130.pls
@AntouanK
AntouanK / config
Last active April 7, 2017 18:24
i3 config
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
@AntouanK
AntouanK / introspection.query
Created March 22, 2017 18:39
GraphQL introspection query
{
__schema {
types {
name
kind
fields {
name
type {name, kind, ofType {name, kind} }
}
}

Keybase proof

I hereby claim:

  • I am antouank on github.
  • I am antouank (https://keybase.io/antouank) on keybase.
  • I have a public key ASCwpncTHeSmnqjScFNlrfLhJt1QyS6_0jvwIGJSQJZLhgo

To claim this, I am signing this object:

@AntouanK
AntouanK / restart_sinopia.sh
Created January 11, 2017 13:38
Script to backup and restart sinopia
#!/bin/zsh
docker stop sinopia ;
echo 'backing up...' ;
docker run --volumes-from sinopia -v $(pwd):/backup node:slim tar cvf /backup/opt_sinopia.tar /opt/sinopia ;
cp opt_sinopia.tar backup.$(date +%Y.%m.%d_%H.%M).tar ;
echo "backup: $(ls -la)" ;
docker rm sinopia ;
echo 'starting new instance...' ;
docker run --name sinopia -d -p 11873:4873 keyvanfatehi/sinopia:latest ;
@AntouanK
AntouanK / get_ip_info.sh
Created January 2, 2017 10:54
Get ip info in the background
#!/bin/bash
while [ true ]
do
curl http://ip-api.com/json/\?fields\=46609 -s -o ~/ip_info ;
sleep 2 ;
done
@AntouanK
AntouanK / howto
Created January 1, 2017 11:42
Make openvpn client start on boot
https://wiki.archlinux.org/index.php/OpenVPN#systemd_service_configuration
move file as instructed
rename to .conf
use systemctl to enable
done
@AntouanK
AntouanK / conky_left.conf
Last active January 3, 2017 10:47
Conky tree ( left ) : needs get_ip_info.sh running in the background
conky.config = {
alignment = 'top_left',
background = false,
border_width = 1,
cpu_avg_samples = 2,
color0 = '858c97',
color1 = '5294e2',
color2 = '2b2e39',
color3 = 'bababa',
default_color = 'white',
@AntouanK
AntouanK / conky_right.conf
Last active December 31, 2016 16:14
Conky tree ( right )
conky.config = {
alignment = 'top_middle',
background = false,
border_width = 1,
cpu_avg_samples = 2,
color0 = '858c97',
color1 = '5294e2',
color2 = '2b2e39',
color3 = 'bababa',
default_color = 'white',