This file contains hidden or 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
# References | |
# OhMyZsh: https://github.com/robbyrussell/oh-my-zsh | |
# Powerlevel9k: https://github.com/bhilburn/powerlevel9k | |
# Powerline fonts: https://github.com/powerline/fonts | |
# Awesome Terminal Fonts: https://github.com/gabrielelana/awesome-terminal-fonts | |
# ZSH Syntax Highlighting: https://github.com/zsh-users/zsh-syntax-highlighting | |
# | |
# For more plugins search this repo: https://github.com/unixorn/awesome-zsh-plugins | |
# 256 color mode |
This file contains hidden or 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
# From /var/log/apt/history.log | |
Upgrade: | |
* init:amd64 (1.29ubuntu2, 1.29ubuntu3), | |
* libnm-glib4:amd64 (1.2.2-0ubuntu0.16.04.1, 1.2.2-0ubuntu0.16.04.3), | |
* init-system-helpers:amd64 (1.29ubuntu2, 1.29ubuntu3), | |
* pantheon-files:amd64 (0.3.0.2-0~r2304+pkg54~ubuntu0.4.1, 0.3.0.3.1-0~r2346+pkg56~ubuntu0.4.1), | |
* linux-libc-dev:amd64 (4.4.0-38.57, 4.4.0-43.63), | |
* libavutil-ffmpeg54:amd64 (7:2.8.6-1ubuntu2, 7:2.8.8-0ubuntu0.16.04.1), | |
* libsystemd0:amd64 (229-4ubuntu10, 229-4ubuntu11), |
This file contains hidden or 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
#!/bin/bash | |
# Add Repos | |
echo "" | |
echo "=============================" | |
echo " Adding Third-party Repos " | |
echo "=============================" | |
echo "" | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys BBEBDCB318AD50EC6865090613B00F1FD2C19886 |
This file contains hidden or 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
# NFSD for vagrant | |
sudo apt-get install nfs-common nfs-kernel-server | |
# Mouse Flickering | |
# I had the same problem. You can fix it manually. Open System Settings > Displays. In the Displays window, you will see an Unknown monitor. Click it and disable it. | |
# libcrypt fix for spotify | |
https://launchpad.net/ubuntu/+archive/primary/+files/libgcrypt11_1.5.3-2ubuntu4.2_amd64.deb | |
# Fix login shell bug with gconf-editor |
This file contains hidden or 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
module.exports = function(grunt) { | |
// Retrieve package settings | |
var config = { | |
pkg: grunt.file.readJSON('package.json'), | |
env: process.env, | |
dir: { | |
php : ['**/file1.php', 'file2.php'], | |
js : ['**/*.js'], | |
sass: ['**/*.scss'] |
This file contains hidden or 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
#http://askubuntu.com/questions/518928/how-to-write-a-script-to-listen-to-battery-status-and-alert-me-when-its-above | |
#!/bin/bash | |
notify-send "Battery monitoring enabled" | |
while true | |
do | |
export DISPLAY=:0.0 | |
battery_level=`acpi -b | grep -P -o '[0-9]+(?=%)'` | |
if on_ac_power; then | |
if [ $battery_level -ge 90 ]; then | |
notify-send "Battery charging above 90%. Please unplug your AC adapter!" "Charging: ${battery_level}% " |
This file contains hidden or 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/perl | |
eval 'exec /usr/bin/perl -S $0 ${1+"$@"}' | |
if 0; # not running under some shell | |
# $Id: parsediasql,v 1.10 2011/02/16 10:23:11 aff Exp $ | |
use strict; | |
use warnings; |
This file contains hidden or 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
/** | |
* Fix for broken html tags inside strings for php. | |
* | |
* By using passing the html through DOMDocument and converting the html | |
* entities we are left with beautiful well formatted code. Huzzah! | |
* | |
* "Nothing is ever easy" -Zedd, Wizards First Rule | |
* | |
* @var DOMDocument | |
*/ |
This file contains hidden or 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
Show hidden characters
{ | |
"auto_complete_commit_trigger_characters": | |
[ | |
"Enter", | |
"Tab" | |
], | |
"color_scheme": "Packages/User/SublimeLinter/Dark-Dracula (SL).tmTheme", | |
"default_line_ending": "unix", | |
"ensure_newline_at_eof_on_save": true, | |
"folder_exclude_patterns": |
This file contains hidden or 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
[ | |
{ | |
"args": null, | |
"command": "select_all" | |
}, | |
{ | |
"args": | |
{ | |
"set_translate_tabs": true | |
}, |
NewerOlder