Skip to content

Instantly share code, notes, and snippets.

Ruurd Pels ruurd

Block or report user

Report or block ruurd

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View autopgsqlbackup
#!/bin/bash
#
# PostgreSQL Backup Script Ver 1.0
# http://autopgsqlbackup.frozenpc.net
# Copyright (c) 2005 Aaron Axelsen <axelseaa@amadmax.com>
#
# This script is based of the AutoMySQLBackup Script Ver 2.2
# It can be found at http://sourceforge.net/projects/automysqlbackup/
#
# The PostgreSQL changes are based on a patch agaisnt AutoMySQLBackup 1.9
View autopgsqlbackup
#!/bin/bash
#
# PostgreSQL Backup Script Ver 1.0
# http://autopgsqlbackup.frozenpc.net
# Copyright (c) 2005 Aaron Axelsen <axelseaa@amadmax.com>
#
# This script is based of the AutoMySQLBackup Script Ver 2.2
# It can be found at http://sourceforge.net/projects/automysqlbackup/
#
# The PostgreSQL changes are based on a patch agaisnt AutoMySQLBackup 1.9
View keybase.md

Keybase proof

I hereby claim:

  • I am ruurd on github.
  • I am ruurd (https://keybase.io/ruurd) on keybase.
  • I have a public key whose fingerprint is 5D8F 5CDD 7F0D E085 E76E 6A4B 21AA 958E 3328 FF0A

To claim this, I am signing this object:

@ruurd
ruurd / heartbeat
Created Feb 18, 2014
Nicked and adapted a bit from @BryanBCabalo
View heartbeat
ruby -e'a,b=0x1F493,0x1F497;t,v=0.9,0.2;loop{a,b=b,a;t,v=v,t;print(("\b"*6)+[a].pack("U")+(" "*5));sleep(t)}'
@ruurd
ruurd / gist:6108088
Created Jul 29, 2013
Duly stolen from a Python version by nicolasH/apple system status.py https://gist.github.com/nicolasH/6102105 I think one can see that Ruby can be quite concise if you need to
View gist:6108088
#!/usr/bin/env ruby
# encoding: UTF-8
# ----------------------------------------------------------------------------
require 'nokogiri'
require 'open-uri'
require 'colorize'
doc = Nokogiri.HTML(open('https://developer.apple.com/support/system-status/'))
y = n = 0
puts '# ----------------------------------------------------'.white
doc.xpath('//td').each do |link|
You can’t perform that action at this time.