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
<%= form_for @car, :html => { :class => 'form-horizontal' } do |f| %> | |
<fieldset> | |
<legend><%=controller.action_name.capitalize %> Car</legend> | |
<div class="control-group"> | |
<%= f.label :name, :class => 'control-label' %> | |
<div class="controls"> | |
<%= f.text_field :name, :class => 'text_field' %> | |
</div> | |
</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
# Version 0.1 | |
# Updated: 22. January 2012 | |
# Created by Jesper Grann Laursen - [email protected] | |
require 'net/http' | |
require 'net/https' | |
require 'rubygems' | |
require 'hpricot' | |
class GratisDNS |
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
#!/bin/sh | |
# Move users from a specific group to an other server, including their | |
# .ssh-files. The script was created for migration of svn users to an | |
# other server. | |
# version 0.0.5 | |
# Created by Jesper Grann Laursen <[email protected]> | |
# Gist: https://gist.github.com/1164958 |
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
#!/bin/bash | |
# | |
# Check if Apple Store is back each 30 seconds | |
# | |
while [ "0" = "0" ] | |
do | |
curlgrep=`curl http://store.apple.com/1-800-MY-APPLE/WebObjects/AppleStore 2>/dev/null | grep "back soon"` | |
if [ "$curlgrep" = "" ] | |
then | |
osascript -e "tell application \"System Events\" to display dialog \"Apple Store back online\nhttp://store.apple.com\"" & |
NewerOlder