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
#============================================== | |
# Update & upgrade system | |
#============================================== | |
sudo apt-get update | |
sudo apt-get upgrade | |
#============================================== | |
# Install apache2 | |
#============================================== |
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
#============================================== | |
# Install core for developer, I swear | |
#============================================== | |
sudo apt-get install curl git-core vim | |
#============================================== | |
# Install extras | |
#============================================== |
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
sudo bash -c '{ | |
echo "start on (login-session-start)" | |
echo "script" | |
echo " echo 13 2>/dev/null > /sys/class/backlight/acpi_video0/brightness" | |
echo " echo 13 2>/dev/null > /sys/class/backlight/acpi_video1/brightness" | |
echo "end script" | |
} > /etc/init/brightness.conf ' | |
# Another way, you can insall xbacklight |
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/env bash | |
dir=$(dirname $0) | |
gconfdir=/apps/gnome-terminal/profiles | |
echo # This makes the prompts easier to follow (as do other random echos below) | |
######################## | |
### Select a profile ### | |
######################## |
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
# SYSTEM | |
alias ll='ls -alF' | |
alias la='ls -A' | |
alias l='ls -CF' | |
alias www='cd /var/www/html/' | |
# EDITOR | |
alias v=vim | |
alias sv='sudo vim' |
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
.navbar | |
.caret | |
.label | |
.table | |
.img-responsive | |
.img-rounded | |
.img-thumbnail | |
.img-circle | |
.sr-only | |
.lead |
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
apt-get clean | |
rm -rf /var/lib/apt/lists/* | |
rm -rf /var/lib/apt/lists/partial/* | |
apt-get clean | |
apt-get update | |
apt-get upgrade |
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
class MyClass { | |
// add one member var that holds all the data | |
private $myMagicData = array(); | |
private $another_var; | |
function __construct($data){ | |
$this->example = $data; // this will auto-call the __set function | |
$this->another_var = $data; // this won't, since $this->another_var was declared above | |
} |
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
sudo add-apt-repository ppa:nilarimogard/webupd8 | |
sudo apt-get update | |
sudo apt-get install freshplayerplugin | |
This will install pepper flash(google chrome's flash player) to firefox. |
OlderNewer