pacman -S <package> # Install a package
pacman -Sy # Update package list
pacman -Su # Update installed packages
pacman -Ss <query> # Search packages
pacman -R <package> # Remove a package
pacman -Rs <package> # Remove a package and it's unneeded dependencies
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
<?php | |
/** | |
* Output a map | |
* | |
* @param array $map | |
* @param bool $int Round output to integer values | |
*/ | |
function out(array $map, $int = true) { | |
foreach($map as $r) { |
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
/* This is a hacky stylesheet for making GPM not so ugly. */ | |
/* Fix GPMDB's playlist nav on dark themes */ | |
#playlist-drawer paper-header-panel[at-top] paper-toolbar:not([style-scope]):not(.style-scope), | |
#playlist-drawer .autoplaylist-section, | |
#playlist-drawer #recent-playlists-container { | |
border-bottom-color: <<BACK_SECONDARY>>; | |
} | |
/* Remove Hero image */ |
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
################################# | |
# | |
# Backend | |
# | |
################################# | |
# Backend to use: "xrender" or "glx". | |
# GLX backend is typically much faster but depends on a sane driver. | |
backend = "glx"; |
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
# I have issues with OS X's defaults. Luckily, most are easy to change. | |
# This is heavily based on saetia's gist: https://gist.github.com/saetia/1623487 | |
# Disable autocomplete, which effectively disables that really stupid Escape key autocomplete handler | |
defaults write -g NSUseSpellCheckerForCompletions -bool false | |
# Disable window animations | |
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false | |
# Expand save panel by default |
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
#!/bin/bash | |
function prompt() { | |
echo -n $1 | |
echo -n " [y/n] " | |
read prompt_response | |
if [ $prompt_response == 'y' ]; then | |
return 0 | |
else | |
return 1 |
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
#!/bin/bash | |
# This script is designed to run on Xubuntu 14.04, but should work on | |
# most Ubuntu and Debian-based distros | |
################## | |
# Define globals # | |
################## | |
SETUPNAME="Alan's Xubuntu Setup" | |
DISTRO=`lsb_release -c | awk '{ print $NF }'` |
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
<?php | |
/** | |
* Get terminal window size in characters | |
* @return array | |
*/ | |
function getWindowSize() { | |
return array(exec('tput cols'), exec('tput lines')); | |
} |
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
#!/bin/bash | |
PROJPATH="/var/www/phproject" | |
cd $PROJPATH | |
/usr/bin/git pull | |
cd $PROJPATH/app/plugin | |
for i in */; do | |
echo "Updating $i ..." | |
cd $i |
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
#!/bin/bash | |
mkdir -p mediterranean-gtk-themes/usr/share/ && cd $_ | |
git clone --depth=1 https://github.com/rbrito/mediterranean-gtk-themes.git themes | |
cd themes | |
VER=$(git rev-parse --short=12 HEAD) | |
rm -rf .git | |
rm LICENSE README.md | |
cd ../../.. | |
mkdir DEBIAN | |
cat >DEBIAN/control <<EOL |