This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
# | |
# grep-logs - grep both compressed and uncompressed log files | |
# | |
if [[ "$1" == "-h" || ! $2 ]]; then | |
echo "Usage: $0 PATTERN LOG_FILE_BASE" | |
echo -e "\tPATTERN\t\tsee grep(1)" | |
echo -e "\tLOG_FILE_BASE\tuncompressed log file relative to /var/log" | |
echo -e "\n\tExample:\t$0 'denied access' nginx_access.log" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# An example configuration file for MPD. | |
# Read the user manual for documentation: http://www.musicpd.org/doc/user/ | |
# Files and directories ####################################################### | |
# | |
# This setting controls the top directory which MPD will search to discover the | |
# available audio files and add them to the daemon's online database. This | |
# setting defaults to the XDG directory, otherwise the music directory will be | |
# be disabled and audio files will only be accepted over ipc socket (using |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# sysctl net.ipv4.conf.all.route_localnet=1 | |
# iptables -t nat -I PREROUTING -p tcp --dport 5555 -j DNAT --to 127.0.0.1:5555 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<!-- google's material design colours from | |
http://www.google.com/design/spec/style/color.html#color-ui-color-palette --> | |
<!--reds--> | |
<color name="md_red">#F44336</color> | |
<color name="md_red_50">#FFEBEE</color> | |
<color name="md_red_100">#FFCDD2</color> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
# | |
# c - c070rz 0n ür t3rm1n4l | |
# | |
# Florian Dejonckheere <[email protected]> | |
# | |
if [[ ! $1 || $1 == "-h" ]]; then | |
echo -e "Usage: $0 \e[4mFOREGROUND\e[0m \e[4mBACKGROUND\e[0m \e[4mTEXT\e[0m [ \e[4mDECORATION\e[0m ]" | |
echo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* allocbot.c - mindlessly allocate memory | |
* | |
* Florian Dejonckheere <[email protected] | |
* | |
* */ | |
#include <stdio.h> | |
#include <unistd.h> | |
#include <stdlib.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Name=MATLAB R2014a | |
Comment=A multi-paradigm numerical computing environment | |
Exec=matlab -desktop | |
Icon=matlab | |
Terminal=false | |
Type=Application | |
StartupNotify=true | |
Categories=Development;Science |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[file_prefs] | |
final_new_line=true | |
ensure_convert_new_lines=true | |
strip_trailing_spaces=true | |
replace_tabs=false | |
[indentation] | |
indent_width=2 | |
indent_type=0 | |
indent_hard_tab_width=8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
# | |
# bat - battery utilities | |
# | |
BAT="BAT0" | |
SYSBAT="/sys/class/power_supply/${BAT}/" | |
SMAPIBAT="/sys/devices/platform/smapi/${BAT}/" | |
function __bat__cap(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Thumbnailer Entry] | |
TryExec=ffmpegthumbnailer | |
Exec=ffmpegthumbnailer -i %i -o %o -s %s -f | |
MimeType=application/f4v;application/mxf;application/ogg;application/vnd.rn-realmedia;application/vnd.smaf;application/xml;application/x-pgs;application/x-shockwave-flash;application/x-subrip;audio/aac;audio/aac,audio/aacp,audio/x-aac;audio/aiff;audio/amr;audio/basic;audio/bit;audio/G722;audio/g723;audio/iLBC;audio/MP4A-LATM;audio/mpeg;audio/ogg;audio/webm,audio/x-matroska,video/webm,video/x-matroska;audio/x-ac3;audio/x-caf;audio/x-dca;audio/x-eac3;audio/x-flac;audio/x-matroska;audio/x-oma;audio/x-voc;audio/x-wav;audio/x-wavpack;image/vnd.microsoft.icon;multipart/x-mixed-replace;multipart/x-mixed-replace;boundary=;text/vtt;text/x-jacosub;text/x-microdvd;text/x-ssa;video/MP2T;video/mp4;video/mpeg;video/webm;video/x-flv;video/x-h261;video/x-h263;video/x-matroska;video/x-mjpeg;video/x-ms-asf;video/x-ms-wm;video/x-ms-wmv;video/x-msvideo;video/x-nut;video/quicktime;audio/aac;audio/aacp;audio/aiff;audio/amr;audio/bad;audio/bas |
OlderNewer