Skip to content

Instantly share code, notes, and snippets.

View mjansing's full-sized avatar

Marc Jansing mjansing

  • innoQ Deutschland GmbH
View GitHub Profile
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
# This is the configuration used to check the rubocop source code.
Style/Documentation:
Enabled: false
@mjansing
mjansing / keybase.md
Last active August 29, 2015 14:05
Keybase Verification

Keybase proof

I hereby claim:

  • I am mjansing on github.
  • I am mjansing (https://keybase.io/mjansing) on keybase.
  • I have a public key whose fingerprint is 3F10 21DC C7B6 7680 7879 0765 13A7 71F2 6FF0 98A4

To claim this, I am signing this object:

# check that all assets have the correct encoding
# https://gist.github.com/1301199
namespace :assets do
desc "Check that all assets have valid encoding"
task :check => :environment do
paths = ["app/assets", "lib/assets", "vendor/assets"]
extensions = ["js", "coffee", "css", "scss"]
@mjansing
mjansing / HttpsClient.java
Last active June 13, 2017 12:00
HTTPSClient
import java.net.MalformedURLException;
import java.net.URL;
import java.security.cert.Certificate;
import java.io.*;
import javax.net.ssl.HttpsURLConnection;
import javax.net.ssl.SSLPeerUnverifiedException;
public class HttpsClient {
@mjansing
mjansing / majestic_heribert.rb
Created April 16, 2018 12:24
MajesticHeribert
require 'digest'
text = "I am Heribert Innoq"
nonce = 0
timeStart = Time.new
begin
nonce += 1
input = "#{text}#{nonce}"
hash = Digest::SHA256.hexdigest(input)
@mjansing
mjansing / fuck_rubyracer.sh
Created April 2, 2020 08:59
Fix rubyracer
# based on https://gist.github.com/fernandoaleman/868b64cd60ab2d51ab24e7bf384da1ca
brew install [email protected]
bundle config build.libv8 --with-system-v8
bundle config build.therubyracer --with-v8-dir=$(brew --prefix [email protected])
bundle install
-----------
Please try this:
1. Quit Gitbox.
2. Delete ~/Library/Preferences/com.oleganza.gitbox.plist
3. Run in Terminal: defaults delete com.oleganza.gitbox
4. Run in Terminal: git config --global push.default matching
5. Open Gitbox.