Skip to content

Instantly share code, notes, and snippets.

View lukaselmer's full-sized avatar
👋

Lukas Elmer lukaselmer

👋
View GitHub Profile
Key was generated using:
tom% openssl genrsa -des3 -out example.com.key 2048
Generating RSA private key, 2048 bit long modulus
....+++
..........................................................................................................................+++
e is 65537 (0x10001)
Enter pass phrase for example.com.key:
Verifying - Enter pass phrase for example.com.key:
%tom
Key was generated using:
tom% openssl genrsa -des3 -out example.com.key 2048
Generating RSA private key, 2048 bit long modulus
....+++
..........................................................................................................................+++
e is 65537 (0x10001)
Enter pass phrase for example.com.key:
Verifying - Enter pass phrase for example.com.key:
%tom
<!-- Declare the permission for body sensor -->
<uses-permission android:name="android.permission.BODY_SENSORS" />

Keybase proof

I hereby claim:

  • I am lukaselmer on github.
  • I am lukaselmer (https://keybase.io/lukaselmer) on keybase.
  • I have a public key whose fingerprint is 1333 A7F4 1B4C 0C55 9EF8 6A63 E2B5 0C7B 017E 80C9

To claim this, I am signing this object:

require 'open-uri'
require 'nokogiri'
url = 'http://www.admin.ch/ch/d/sr/101/index.html'
doc = Nokogiri::HTML(open(url))
toc = doc.css('#spalteContentPlus')
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
function f() {
console.log("bla");
$.ajax({
url : 'http://152.96.80.18:8080/api/trails',
type : 'get',
@lukaselmer
lukaselmer / HardCoded.rb
Created November 14, 2012 21:08
MockArticle - which is "better"? Which would you code/use? Which would you like to maintain?
class MockArticlesHard
@@articles = {}
def initialize
return unless @@articles.empty?
@@articles[:article_aab] = FactoryGirl.create(:article_aab)
@@articles[:article_bla] = FactoryGirl.create(:article_bla)
@@articles[:article_blub] = FactoryGirl.create(:article_blub)
@@articles[:article_blub_blub] = FactoryGirl.create(:article_blub_blub)
@lukaselmer
lukaselmer / syncscript.rb
Created December 5, 2012 13:21 — forked from pencil/syncscript.rb
HSR Syncscript (Ruby)
#!/usr/bin/env ruby
require 'fileutils'
require 'optparse'
SOURCEDIR='/Volumes/root/skripte'
DESTDIR="/Users/#{ENV['USER']}/Dropbox/Documents/HSR/Semester5/skripte"
Subject = Struct.new :source, :destination, :parameters
SUBJECTS = [
## Prepare ###################################################################
# Remove RVM
rvm implode
# Ensure your homebrew is working properly and up to date
brew doctor
brew update
## Install ###################################################################