Skip to content

Instantly share code, notes, and snippets.

@rfadams
rfadams / project3.md
Created August 18, 2015 18:58
created by github.com/tr3buchet/gister

Company Trial Start / End Dates - Phase 1

We need to know if a company is in a "trial" status. There will be 2 phases to this project.

Phase 1 will construct the fields. Phase 2 will be to create the cron job that will automatically check for expired trial periods and mark the "trial_status" boolean to false.

Backend

@rfadams
rfadams / .profile
Last active August 29, 2015 14:06
Basic Git / Rvm bash_profile
## Bash prompt
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
RED="\[\033[0;31m\]"
YELLOW="\[\033[0;33m\]"
GREEN="\[\033[0;32m\]"
PS1="$RED\$ \w$YELLOW \$(parse_git_branch)$GREEN\$ "
diff --git a/app/assets/stylesheets/feedback/responsive.css.scss b/app/assets/stylesheets/feedback/responsive.css.scss
index 61be27d..38a7686 100644
--- a/app/assets/stylesheets/feedback/responsive.css.scss
+++ b/app/assets/stylesheets/feedback/responsive.css.scss
@@ -1,7 +1,7 @@
// -------------------------- PHONE
-@media only screen and (max-width: 640px) {
- .boundary { width: 610px; }
+@media only screen and (max-width: 768px) {
ipsec_setup: Stopping Openswan IPsec...
ipsec_setup: stop ordered, but IPsec appears to be already stopped!
ipsec_setup: doing cleanup anyway...
ipsec_setup: Starting Openswan IPsec 2.6.37...
Checking your system to see if IPsec got installed and started correctly:
Version check and ipsec on-path [OK]
Linux Openswan U2.6.37/K(no kernel code presently loaded)
Checking for IPsec support in kernel [FAILED]
SAref kernel support [N/A]
Checking that pluto is running [FAILED]
Checking your system to see if IPsec got installed and started correctly:
Version check and ipsec on-path [OK]
Linux Openswan U2.6.37/K(no kernel code presently loaded)
Checking for IPsec support in kernel [FAILED]
SAref kernel support [N/A]
Checking that pluto is running [OK]
Pluto listening for IKE on udp 500 [FAILED]
Pluto listening for NAT-T on udp 4500 [FAILED]
Checking for 'ip' command [OK]
Checking /bin/sh is not /bin/dash [WARNING]
@rfadams
rfadams / gist:1591639
Created January 10, 2012 22:37
Simulate Click inside Gmail
simulateClick = null;
function simulateClick() {
var evt = document.createEvent("MouseEvents");
evt.initMouseEvent("mousedown", true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
var cb = document.getElementById("canvas_frame").contentWindow.document.getElementById(":pg");
var canceled = !cb.dispatchEvent(evt);
console.log("innerText: " + cb.innerHTML);
console.log("class: " + cb.class);
if(canceled) {
// A handler called preventDefault
@rfadams
rfadams / gist:1488327
Created December 16, 2011 22:33
jQuery for Gmail Sidebar
var $main_frame = $('#canvas_frame').contents();
var $sideBar = $main_frame.find('.HbF0O > .nH');
if ($sideBar.length > 0){
if ($sideBar.children().length == 3){
$sideBar.find('.ChoCtb .nH:last-child').after(html);
} else {
$sideBar.prepend(html);
}
$sideBar.children('.nH:last-child').hide();
}else{