- Get a GitHub account: https://github.com/
- Github > Dashboard > New Repository ... https://github.com/repositories/new
- Enter a Project Name and Description; click "Create Repository"
- On the project page ignore the suggested setup instructions... instead click on the "Admin" button
- Check the "GitHub Pages" checkbox... You'll get a popup.
- Click the "Automatic GitHub page Generator" button.
- Choose a funky colour... or go safe with just white... then click "Create Page" button
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
require 'sinatra/base' | |
run Sinatra.new { | |
get('/') do | |
content_type "text/plain" # you can also use Rack::ContentType | |
# with Sinatra except here we want | |
# more control since Sinatra gives it | |
# to us. Rack::ContentType sets the | |
# Content-Type on every route/url for | |
# the current mapping. |
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
alias dewip="sed -E -i '' -e '/^[[:blank:]]*@wip$/d;s/,[[:blank:]]*@wip//g;s/@wip,[[:blank:]]*//g' features/**/*.feature" |
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
The MIT License (MIT) | |
Copyright (c) 2015 J Kishore Kumar | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
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
var z="http://gist.github.com/",y=document.write,x=$("body"),w=$("p.gist").map(function(b,a){a=$(a);var c=$("a",a),u=c.attr("href");if(c.length&&u.indexOf(z)==0)return{p:a,id:u.substring(z.length)}}).get(),v=function(){if(w.length==0)document.write=y;else{var b=w.shift();document.write=function(){document.write=function(a){b.p.replaceWith(a);v()}};x.append('<scr'+'ipt src="'+z+b.id+'.js"></scr'+'ipt>')}};v(); |
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
require 'rubygems' | |
require 'rack' | |
class Object | |
def webapp | |
class << self | |
define_method :call do |env| | |
func, *attrs = env['PATH_INFO'].split('/').reject(&:empty?) | |
[200, {}, send(func, *attrs)] | |
end |
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
#!/usr/bin/env ruby | |
puts "lat\tlon\ttitle\tdescription\ticon\ticonSize\ticonOffset\n" | |
coordinates = File.readlines "ictf-coordinates.txt" | |
coordinates.map! { |co| co.chomp.split(',')[1].split(';') } | |
organisations = File.readlines "ictf-participants.txt" | |
organisations.map! { |o| o.chomp } | |
teamnames = File.readlines "ictf-teamnames.txt" | |
teamnames.map! { |t| t.chomp } |
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
# Most of this was adapted from | |
# http://matt.might.net/articles/compiling-up-to-lambda-calculus/ | |
# Python's lambda expressions are turing-complete. To show this, we will | |
# implement the "Lambda calculus" which is another way of saying "We're so manly | |
# we don't even NEED if statements!" The lambda calculus was invented in the | |
# 1930s, and it can solve any computable problem just by using anonymous | |
# functions that each take one argument and return one value, function | |
# application, and variable references. No jumps or GO TO's needed. |
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
package authentication::kerberos; | |
=head1 NAME | |
authentication::kerberos - kerberos authentication | |
=head1 SYNOPSYS | |
use authentication::kerberos; | |
my ( $authReturn, $err ) = authenticate ( |
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
#!/usr/bin/env ruby | |
# | |
# Script: HipChat bot in Ruby | |
# Author: Jordan Ritter <jpr5@darkridge.com> | |
# | |
unless `rvm-prompt i g`.chomp == "ree@xmpp" | |
exec("rvm ree@xmpp ruby #{$0}") | |
end |
OlderNewer