Skip to content

Instantly share code, notes, and snippets.

View FeroVolar's full-sized avatar
✌️

Fero Volar FeroVolar

✌️
View GitHub Profile
@FeroVolar
FeroVolar / icecast
Last active December 10, 2015 19:48
IceCast StartStop script
#!/bin/sh
#
# icecast This shell script takes care of starting and stopping
# the icecast multimedia streaming systen.
#
# config: /etc/icecast/icecast.xml
# Source function library.
. /etc/rc.d/init.d/functions
@FeroVolar
FeroVolar / ping.php
Last active December 10, 2015 19:48
PHP ping
<?php
$output = shell_exec('/bin/ping -c 5 127.0.0.1');
echo "<pre>$output</pre>";
?>
@FeroVolar
FeroVolar / .bashrc
Last active October 5, 2015 06:08
color prompt
# add to ~/.bashrc
if ${use_color} ; then
# Enable colors for ls, etc. Prefer ~/.dir_colors #64489
if type -P dircolors >/dev/null ; then
if [[ -f ~/.dir_colors ]] ; then
eval $(dircolors -b ~/.dir_colors)
elif [[ -f /etc/DIR_COLORS ]] ; then
eval $(dircolors -b /etc/DIR_COLORS)
fi