Skip to content

Instantly share code, notes, and snippets.

View jevonearth's full-sized avatar
🤡

Jev Björsell jevonearth

🤡
View GitHub Profile
========================================== ==========================================
TMUX COMMAND WINDOW (TAB)
========================================== ==========================================
List tmux ls List ^b w
New -s <session> Create ^b c
Attach att -t <session> Rename ^b , <name>
Rename rename-session -t <old> <new> Last ^b l (lower-L)
Kill kill-session -t <session> Close ^b &
@jevonearth
jevonearth / keybase.md
Created April 11, 2014 21:48
keybase proof

Keybase proof

I hereby claim:

  • I am jevonearth on github.
  • I am jevonearth (https://keybase.io/jevonearth) on keybase.
  • I have a public key whose fingerprint is 88FE 080E 83BC 3BC4 DFF6 9F2F 9781 93B0 7444 B3BF

To claim this, I am signing this object:

#!/bin/bash
delay=0.2
title='default'
count=0
loop=1 #0 for infinite loop
# Set if you want to skip mouse selection
if [[ $# -eq 6 ]]
then
@jevonearth
jevonearth / designer.html
Last active August 29, 2015 14:12
designer
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../chart-js/chart-js.html">
<link rel="import" href="../smoothie-chart/smoothie-chart.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
@jevonearth
jevonearth / designer.html
Last active August 29, 2015 14:13
designer
<link rel="import" href="../paper-input/paper-input.html">
<link rel="import" href="../paper-checkbox/paper-checkbox.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
@jevonearth
jevonearth / setup_env_rc_test_scenario.sh
Created July 17, 2015 19:09
freebsd rc scripts and env(1) shebang are not friends
#!/bin/sh
# Create dummy python script which uses env for shebang.
cat << EOF > /usr/local/bin/foo
#!/usr/bin/env python2.7
print("Hello foo")
EOF
# turn on executable bit
chmod +x /usr/local/bin/foo
@jevonearth
jevonearth / web.xml
Created November 22, 2012 02:13
spring.profiles.active
<init-param>
<param-name>spring.profiles.active</param-name>
<param-value>dev</param-value>
<!-- <param-value>prod</param-value> -->
</init-param>
@jevonearth
jevonearth / webmvc-config.xml
Created November 22, 2012 02:14
profile switches
<beans profile="dev">
<mvc:resources location="/angulardevapp/app/" mapping="**" cache-period="0"/>
</beans>
<beans profile="prod">
<mvc:resources location="/angularprodapp/" mapping="**" cache-period="0"/>
</beans>
@jevonearth
jevonearth / log.roo
Created November 22, 2012 02:12
roo log
roo
project --topLevelPackage org.ecad.threed --projectName 3drfq --java 6 --packaging JAR
persistence setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY
entity jpa --class ~.domain.Rfq --activeRecord false --testAutomatically
field string --class ~.domain.Rfq --fieldName firstName --notNull
field string --class ~.domain.Rfq --fieldName surname --notNull
field string --class ~.domain.Rfq --fieldName email --notNull
repository jpa --interface ~.repository.RfqRepository --entity ~.domain.Rfq
json add --class ~.domain.Rfq
web mvc json setup
@jevonearth
jevonearth / gist:4177541
Created November 30, 2012 18:21
bug report draft
/*
The CRUD methods in ForceApi all take java objects, and de-serializes them to json internally.
I do not want to annotate my domain objects specifically for sobjects, instead I would like to manage my own serialization.
Perhaps we could add an additional method per CRUD method which takes a json string instead of a Object, allowing the client more control of how it manages its domain model.
*/
public String createSObject(String type, Object sObject) {
return createSObject(type, jsonMapper.writeValueAsBytes(sObject));
}