Skip to content

Instantly share code, notes, and snippets.

View criztovyl's full-sized avatar

Christoph Schulz criztovyl

View GitHub Profile
@roxma
roxma / install_tmux.sh
Last active July 10, 2018 07:23 — forked from rothgar/install-tmux
Install tmux 2.1 on rhel/centos 6
# Install tmux on Centos release 6.5
# Install with user defined prefix
# Usage: ./install_tmux.sh /your/prefix
# install deps
# yum install gcc kernel-devel make ncurses-devel
if [ -z $1 ]
then
@rmanis
rmanis / mc.c
Created July 25, 2015 02:33
Multicast chat, for sharing links over a lan.
/*
* mc - multicast chat
*
* Usage :
* mc [multicast-group [port]]
*/
#include <sys/types.h>
#include <sys/socket.h>
@criztovyl
criztovyl / ssj.sh
Last active August 29, 2015 14:25
Splits, sorts and joins a string by a separator
#!/bin/bash
# A Bash/Ruby script that splits, sorts and joins a string
# Copyright (C) 2015 Christoph "criztovyl" Schulz
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@criztovyl
criztovyl / call_yt_api.sh
Last active August 29, 2015 14:21
Calling YouTube API from commandline (requires jsonCLI.py)
#!/bin/bash
# Call YouTube API from command line.
# Copyright (C) 2015 Christoph "criztovyl" Schulz
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@criztovyl
criztovyl / dirsync-micro.sh
Last active August 29, 2015 14:20
Keeps directories up-to-date
#!/bin/bash
# This is a program for simpler rsync syncing.
# Copyright (C) 2015 Christoph "criztovyl" Schulz
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@criztovyl
criztovyl / .shellPepper
Last active August 29, 2015 14:20
Shell Pepper
#!/bin/bash
####
# This is some shell pepper.
# Copyright (C) 2015 Christoph "criztovyl" Schulz
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
@criztovyl
criztovyl / watch.sh
Last active August 29, 2015 14:19
Watch!
#!/bin/bash
# ToDo: Usage.
###
# Programs
###
ZENITY="/usr/bin/zenity"
YOUTUBEDL="/usr/local/bin/youtube-dl"
XCLIP="/usr/bin/xclip"
###
# Error Codes
@criztovyl
criztovyl / servermultiscript.sh
Last active August 29, 2015 14:16
Use server simplified.
#!/bin/bash
############
#===Simple Server Skript===
# Author Christoph Schulz <cs@chsc.de>
# Version of 06 Apr 2013
#
#==INFORMATION==
# This skript uses SFTP only!
#==Configuration==
# - server: The server, e.g. ssh.example.com