- Vær en nørd (!important)
- Installer dotjs (http://defunkt.io/dotjs/)
- Put
webhosting.dk.js
i~/.js
- Gå til http://www.webhosting.dk/cgi-bin/domainscannerview.pl
- Find feltet markeret med grøn
- Profit
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
alias pow='ln -s "`pwd`" ~/.pow' |
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
<div id="header">...</div> | |
<%= yield %> | |
<div id="footer">...</div> |
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
$(".not_mine .post_avatar").each(function(){ | |
var bg = $(this).css('background-image'); | |
var n = bg.replace(/_64\.png/,"_128.png"); | |
$(this).css({ backgroundImage: n, width: 128, height: 128, marginLeft: -64 }); | |
}); |
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
$ rvm use system | |
$ brew install macvim # remove old version first | |
$ cd ~/.vim/bundle/command-t/ruby/command-t # using pathogen to manage plugins | |
$ ruby extconf.rb && make # configure and build |
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
$ mvim . | |
Vim: Caught deadly signal SEGV | |
Vim: Finished. |
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
# Set bookmark - optional | |
lftp -u USER -e "bookmark add BOOKMARK; exit" DOMAIN | |
# Mirror | |
lftp -e 'mirror -R build public_html; exit' BOOKMARK |
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 ruby | |
=begin | |
SETUP: | |
$ brew install taglib | |
$ gem install taglib-ruby | |
=end | |
require 'rubygems' | |
require 'taglib' |
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 ruby | |
# Generates a random, 16 char password and adds it to the clipboard | |
# Requires ruby >= 1.9 | |
chars = ((0..9).to_a + ('a'..'z').to_a + ('A'..'Z').to_a).join | |
password = Array.new(16).inject([]) do |password, i| | |
password << chars[rand(chars.length-1)] | |
end.join |
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 ruby | |
# coding: utf-8 | |
Encoding.default_external = "utf-8" | |
############################################# | |
# A ruby script for merging of text files # | |
# By Mikkel Malmberg (brnbw.com) # | |
############################################# | |
require 'optparse' |