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\"" & |
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
# 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
<%= 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
# PATH=$PATH:~/bin | |
export TERM=rxvt | |
HISTSIZE=1000 | |
SAVEHIST=1000 | |
if (( ! EUID )); then | |
HISTFILE=~/.history_root | |
else | |
HISTFILE=~/.history |
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 | |
# | |
# Script for backup MySQL databases in crontab | |
# Tested on ubuntu +10.04 LTS | |
# | |
# Created by Jesper Grann Laursen, powerlauer AT gmail DOT com | |
# | |
# | |
# configfile | |
config=/etc/backupDatabases.conf |
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/expect -- | |
## | |
## patched to accomplish fortinet from nlogin | |
## in turn patched to accomplish D-Link from fnlogin | |
## by: Daniel G. Epstein <dan at rootlike.com> | |
## adapted by: Diego Ercolani <diego.ercolani at ssis.sm> | |
## further adapted by: Gavin McCullagh <gavin.mccullagh at gcd.ie> | |
## | |
## rancid 2.3.6 | |
## Copyright (c) 1997-2009 by Terrapin Communications, Inc. |
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 python3 | |
# | |
# Require: https://github.com/paller/wavin-controller | |
# | |
# Example output: | |
# AC-116 | |
# MC11013 MC61019 | |
# 0 23.4 90 32788 21.5 | |
# 1 23.0 90 32788 21.5 | |
# 2 23.1 90 32788 21.0 |
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
{ | |
"wavin": [ | |
{ | |
"sensorid": 0, | |
"channelid": 0, | |
"location": "Bryggers" | |
}, | |
{ | |
"sensorid": 1, | |
"channelid": 1, |
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
# Note: cucumber-rails redefines the call method in ShowExceptions, leading to an infinite loop | |
# To make our tests work until that is properly fixed, we redefine call to the original method here | |
require 'action_dispatch' | |
module ActionDispatch | |
class ShowExceptions | |
alias original_call call | |
end | |
end | |
require 'cucumber/rails' |
OlderNewer