View Terminal remove directory
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
rm -rf /path/to/directory (remove a directory) | |
rm -rf /tmp/foo (remove directory) |
View Alias Config
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
(Add this to /usr/local/etc/aliases.conf) | |
Alias /my_organization/my_company/my_project/ "/Users/[your_user]/Sites/projects/my_organization/my_company/my_project/web/" | |
<Directory "/Users/[your_user]/Sites/projects/my_organization/my_company/my_project/web/"> | |
Options -Indexes FollowSymlinks | |
AllowOverride All | |
Order allow,deny | |
Allow from all | |
</Directory> |
View crontab
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
$ crontab -e | |
crontab -e Edit your crontab file, or create one if it doesn’t already exist. | |
crontab -l Display your crontab file. | |
crontab -r Remove your crontab file. | |
crontab -v Display the last time you edited your crontab file (This option is only available on a few systems.) | |
* * * * * command to be executed | |
- - - - - | |
| | | | | |
View gist:1429086
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
ssh root@xxx.xxx.xxx.xxx |
View gist:1989612
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
Alias /cbcsanantonio/ "/Users/icastillo/Sites/cbcsanantonio/20120113/www/" | |
<Directory "/Users/icastillo/Sites/cbcsanantonio/20120113/www/"> | |
Options -Indexes +FollowSymlinks | |
AllowOverride All | |
Require all granted |
View style.scss
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
@import "reset"; | |
@import "text"; | |
@import "976_16"; | |
body{ | |
background:#000; | |
margin:0; | |
} | |
View gist:3706733
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
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND | |
root 1 0.0 0.1 23576 1668 ? Ss Sep11 0:00 init | |
root 1170 0.0 0.2 49424 2672 ? Ss Sep11 0:00 /usr/sbin/sshd -D | |
root 1188 0.0 0.1 18888 1016 ? Ss Sep11 0:00 cron | |
mysql 1192 0.0 2.7 189348 26336 ? Ssl Sep11 0:00 /usr/sbin/mysqld | |
syslog 1212 0.0 0.0 12536 800 ? Ss Sep11 0:00 /sbin/syslogd -u syslog | |
root 1249 0.0 1.0 202636 10136 ? Ss Sep11 0:00 /usr/sbin/apache2 -k start | |
www-data 1262 0.0 4.7 246760 44920 ? S Sep11 0:01 /usr/sbin/apache2 -k start | |
www-data 1263 0.0 4.8 247784 45804 ? S Sep11 0:02 /usr/sbin/apache2 -k start | |
www-data 1264 0.0 4.3 242664 41344 ? S Sep11 0:00 /usr/sbin/apache2 -k start |
View counts
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 CreateCounts < ActiveRecord::Migration | |
def change | |
create_table :counts do |t| | |
t.string :item_id | |
t.text :count | |
t.timestamps | |
end | |
end | |
View Wordpress Function File
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 | |
/** | |
* Check to see if theme options class exists and load it. | |
*/ | |
if( file_exists( STYLESHEETPATH . 'class.trinitheme-options.php') ) | |
{ | |
require_once( STYLESHEETPATH . 'class.trinitheme-options.php'); | |
} |
View gist:7217940
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
App.Router.map(function () { | |
this.resource('sams', { path: '/' }); | |
this.resource('app', { path: '/app/:app_slug' }); | |
this.resource('dashboard', { path: '/dashboard' }, function () { | |
this.route('user'); | |
}); | |
}); | |
App.DashboardUser = Ember.View.extend({ | |
templateName: 'user' |
OlderNewer