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
ciscoTile = 'Cisco AnyConnect Secure Mobility Client Notification' | |
ciscoNotification = hs.window.get(ciscoTile) | |
if ciscoNotification then | |
ciscoNotification:close() | |
end |
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
# Quick Look plugins https://github.com/sindresorhus/quick-look-plugins | |
## Preview source code files with syntax highlighting | |
brew cask install qlcolorcode | |
## Preview plain text files without or with unknown file extension. Example: README, CHANGELOG, index.styl, etc. | |
brew cask install qlstephen | |
## Preview Markdown files | |
brew cask install qlmarkdown |
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 http://ubuntuhandbook.org/index.php/2014/02/install-oracle-java-6-7-or-8-ubuntu-14-04/ | |
sudo add-apt-repository ppa:webupd8team/java | |
sudo apt-get update | |
sudo apt-get install oracle-java8-installer | |
sudo apt-get install oracle-java8-set-default | |
java -version |
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
<?php | |
// 2006 | |
if ($payment_type != null) { | |
if ($payment_type == 'cash') { | |
if ($balance > 0) { | |
$status = 'credit'; | |
} else if ($balance == 0) { | |
$status = 'cash'; | |
} |
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
<?php | |
class Product extends Eloquent { | |
public function categories() | |
{ | |
return $this->belongsToMany('Category'); | |
} | |
} |
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
<?php | |
class Import_Controller extends Base_Controller { | |
public $restful = TRUE; | |
public function get_index() | |
{ | |
// code here.. |
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
# Apache | |
sudo aptitude install apache2 apache2-mpm-prefork apache2-utils apache2.2-common | |
sudo a2enmod rewrite | |
# Server name | |
echo "ServerName localhost" | sudo tee /etc/apache2/conf.d/fqdn | |
# Restart Apache | |
sudo service apache2 restart |
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/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |