Skip to content

Instantly share code, notes, and snippets.

View StephenOTT's full-sized avatar
:shipit:
...

Stephen Russett StephenOTT

:shipit:
...
View GitHub Profile
@6be709c0
6be709c0 / updateSecret.sh
Created September 20, 2017 04:18
A simple command to finally update the docker secret !
#!/usr/bin/env bash
# HOW TO USE
# ./updateSecret.sh secretName newValue
# It's that simple !
if [ "$#" -ne 2 ];
then
echo "#####"
echo "You must supplied secretName newValue"
@kamontat
kamontat / New iTerm2 Tab at Finder
Last active October 8, 2020 11:38
The AppleScript service, For open the new tab (if window exist) or new window (if window not launch before)
on is_running(appName)
tell application "System Events" to (name of processes) contains appName
end is_running
on CD_to(theDir)
set go_dir to "cd " & theDir & " && clear"
-- check running name in `activity Monitor` this must matching.
set isRunning to is_running("iTerm2")
@volhovm
volhovm / citrix-gentoo.org
Created August 28, 2016 16:17
A short manual on establishing citrix VPN connection on Linux Gentoo

A short manual on establishing citrix VPN connection on Linux Gentoo

Problem

My company provides access to inner services, like test servers, database servers, etc. via Citrix VPN solution, which’s not developed for linux.

Here we use setup, that routes packages to VM Windows 7 (Virtualbox) guest with Citrix Adapter installed. Windows is used like NAT-modem here, or whatever.

@travist
travist / payment.html
Last active August 3, 2018 17:37
Form.io + Stripe Payment Processing
<div ng-controller="StipePayment">
<formio form="form" submission="submission"></formio>
</div>
@travist
travist / create.js
Last active February 15, 2018 14:43
Form.io Server-to-Server User Creation and Authentication
var request = require("request");
// The api key is generated within the Form.io project settings.
var apiKey = '23kj2k3jhkj2h3';
// Create a new user.
request({
method: 'POST',
url: 'https://example.form.io/user/submission',
headers: {
@jonschlinkert
jonschlinkert / open-iterm-from-finder.md
Last active May 24, 2022 01:33
Add an icon to your finder toolbar to open iTerm in the current folder.

Open iTerm from finder

The code and instructions in this gist are from http://peterdowns.com/posts/open-iterm-finder-service.html. I've had to do this a few times and wanted to distill it the basics.

  1. Open Automator
  2. Create an Application
  3. Choose Actions > Utilities > Run Applescript
  4. Paste the contents of open_in_iterm.app into the window.
  5. Save the script somewhere convenient
  6. Find the script, then drag the script onto the Finder window while holding the command key (or in Yosemite, the command + option keys)
@sundararajana
sundararajana / jslogofx.js
Created April 2, 2015 10:39
jslogofx.js - Extending a webapp using #javafx and #nashorn
#!/usr/bin/jjs -fx
/**
* This #nashorn script demonstrates using JavaFX WebView
* and DOM interaction to extend the functionality of a
* pre-written webapp without changing that application code.
* jslogo implements Logo programming language with DOM and JS.
* In this example, we extend "jslogo" webapp to add a feature
* to load logo script file from local file system.
*
@jeremychone
jeremychone / Jackson8Module.java
Last active May 5, 2021 13:21
A simple Java 8 centric Jackson Module wrapper for making custom serializer lambda friendly. (can be extended to support other Jackson Module custom methods)
package com.britecrm.util;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.core.ObjectCodec;
import com.fasterxml.jackson.databind.*;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.module.SimpleModule;
@menski
menski / MyTestScript.groovy
Created October 6, 2014 21:29
Deploy BPMN process with external script resource via REST API on heroku
println "Hello world"
execution.setVariable("groovy", "works")
@meyerdan
meyerdan / CreateFilter.java
Last active April 5, 2018 17:12
camunda Filter Service
// create a taskQuery
TaskQuery myTasksQuery = taskService.createTaskQuery().taskAssignee("daniel.meyer").active();
// save taskQuery as filter
Filter myTasksFilter = filterService.newTaskFilter("My Tasks");
myTasksFilter.setOwner("daniel.meyer");
myTasksFilter.setQuery(myTasksQuery);
String filterId = filterService.saveFilter(myTasksFilter);
// execute the filter