Skip to content

Instantly share code, notes, and snippets.

@jimternet
jimternet / cisco.osascript
Created October 25, 2018 17:35 — forked from japaz/cisco.osascript
Automate Cisco AnyConnect VPN client with lastpass on OSX
-- 1. Open Security & Privacy System Preferences, go to Privacy, Accessibility
-- 2. Enable Applescript Editor
-- Usage: <script> gatewayHostName password
-- based on https://gist.github.com/andrewh/7135352 and https://github.com/seanfisk/juniper-network-connect-vpn-applescript/blob/master/juniper.applescript
on run argv
if (count of argv) is not equal to 2 then
return "Usage: <script> gatewayHostName password"
else
public String initLadyOnDateNextToMeAskedAboutFormerRelationships{
while (true){
System.out.println("and then I met " + getRandomGuyName() + " and i was like wahteverrrrrrrrrrr";
}
}
---
- hosts: localhost
tasks:
- file: path=/nfs state=directory mode=777 owner=root group=root
- mount:
name: "/nfs"
fstype: nfs
src: "192.168.68.100:/volume1/Public"
opts: "credentials=/etc/credentials.jsw921"
state: mounted
@jimternet
jimternet / womp.log
Created October 19, 2016 03:24
smtp error
[com.sun.mail.smtp.SMTPSendFailedException: 501 5.1.7 Invalid address
;
nested exception is:
com.sun.mail.smtp.SMTPSenderFailedException: 501 5.1.7 Invalid address
sudo zypper ar \
http://download.opensuse.org/repositories/devel:/languages:/nodejs/SLE_12/ \
Node.js
sudo zypper in nodejs nodejs-devel
http://software.opensuse.org/ymp/devel:languages:nodejs/SLE_12/nodejs.ymp
http://download.opensuse.org/repositories/SUSE:/SLE-12:/GA/standard
@jimternet
jimternet / tasks.md
Last active November 4, 2015 05:24
Just a markdown to track all the work I think we might be doing Dco

PD projects

AmDef work

  • support Family Cases
  • Migrate to embedded tomacat/ boot
  • integrate with DAMN
  • Expose CaseGet API
  • Expose attach attorney API

Document management in Amdef

  • Create API to delete by resource
  • add basic auth to ^^^^
@jimternet
jimternet / README.md
Last active August 29, 2015 14:26 — forked from fnichol/README.md
Chef Bootstrapper For SuSE/SLES

Chef Bootstrapper For SuSE/SLES

Installation

Note: Run this script as the root user (no sudo calls are used in the script).

You will need the curl package installed, though I would have no idea why it wouldn't be installed by default:

zypper --non-interactive install curl

#
brew install boot2docker
brew cask install virtualbox
brew cask install vagrant
brew cask install vagrant-manager
<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:camel="http://camel.apache.org/schema/blueprint"
xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0"
xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0"
xsi:schemaLocation="
http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd">
<ext:property-placeholder>
<ext:default-properties>
@jimternet
jimternet / app.java
Created March 24, 2014 16:14
simple HIVE JDBC POC
package com.target.cassandra.hadoop;
import java.sql.Array;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Map;
import org.apache.hadoop.hive.jdbc.HiveConnection;