[log in]
$ su
# aptitude install sudo
# adduser ben sudo
# exit
$ exit
[log in]
$ sudo aptitude install menu openbox obconf xinit
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
angular.module('myApp', ['myApp.filters', 'myApp.services', 'myApp.directives'], function ($routeProvider, $locationProvider, $httpProvider) { | |
var interceptor = ['$rootScope', '$q', function (scope, $q) { | |
function success(response) { | |
return response; | |
} | |
function error(response) { | |
var status = response.status; |
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
// https://github.com/angular-app/angular-app | |
angular.module('services.breadcrumbs', []); | |
angular.module('services.breadcrumbs').factory('breadcrumbs', ['$rootScope', '$location', function($rootScope, $location){ | |
var breadcrumbs = []; | |
var breadcrumbsService = {}; | |
//we want to update breadcrumbs only when a route is actually changed | |
//as $location.path() will get updated imediatelly (even if route change fails!) |
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
{ | |
"name": "myproject", | |
"version": "1.0.0", | |
"dependencies": { | |
"jquery": "1.8.0", | |
"twitter/bootstrap": "2.1.1", | |
"myrepo":"git://myrepo.com/myrepo" | |
} | |
} |
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
// If you had a url on your state of: | |
url: '/users/:id/details/{type}/{repeat:[0-9]+}?from&to' | |
// Then you navigated your browser to: | |
'/users/123/details//0' | |
// Your $stateParams object would be | |
{ id:'123', type:'', repeat:'0' } | |
// Then you navigated your browser to: |
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
$stateProvider | |
.state('contacts.detail', { | |
views: { | |
// relatively targets the "info" view in "contacts.detail" state: | |
"info" : { /* ... */ } | |
// relatively targets the unnamed view in "contacts.detail" state: | |
"" : { /* ... */ } | |
// absolutely targets the "detail" view in parent "contacts" state: | |
"detail@contacts" : { /* ... */ } | |
// absolutely targets the unnamed view in parent "contacts" state: |
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
~$ VBoxManage modifyvm "ubuntu-vm" --natpf1 "guestssh,tcp,127.0.0.1,2222,,22" | |
~$ VBoxHeadless -s ubuntu-vm |
- Firefox 3.5.dmg
- Adium_1.3.5.dmg
- charles_macosx.zip
- Dropbox 0.6.507.dmg
- Growl-1.1.5.dmg
- iTerm_0.9.6.dmg
- KeePassX-0.4.0.dmg
- MacCallGrind 1.0b3.app/
- MacPorts-1.7.1-10.5-Leopard.dmg
- MissingDrawer_2009-01-27.zip.zip
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
/private/var/log/asl/*.asl |
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/sh | |
dig +short txt ${1}.wp.dg.cx |
OlderNewer