Skip to content

Instantly share code, notes, and snippets.

{
"meta": {
"theme": "rickosborne"
},
"basics": {
"name": "Joseph Khafaji",
"label": "Software Engineer",
"image": "",
"summary": "A principal software engineer with 19 years of professional experience in the fields of information and telecommunication technologies. My passion is building clean, well tested and working software. I love diving deeper than average to understand how things work under the hood and what makes something tick. I consider myself as a generalist engineer who utilises his tools and development practises to excercise problem solving in an efficient and pragmatic manner.",
"website": "",
@HackerTheMonkey
HackerTheMonkey / apue.h
Created February 20, 2021 22:31 — forked from Batou99/apue.h
apue.h
/* Our own header, to be included before all standard system headers */
#ifndef _APUE_H
#define _APUE_H
#if defined(SOLARIS)
#define _XOPEN_SOURCE 500 /* Single UNIX Specification, Version 2 for Solaris 9 */
#define CMSG_LEN(x) _CMSG_DATA_ALIGN(sizeof(struct cmsghdr)+(x))
#elif !defined(BSD)
#define _XOPEN_SOURCE 600 /* Single UNIX Specification, Version 3 */
-- 1. Create a new generic password entry in Keychain Access called "WHATEVER_AnyConnect_VPN" (the name in Keychain access must match that in line 39 below) with your password for the Cisco AnyConnect VPN server.
-- 2. Open this script in Script Editor (both this and the above are in the Applications->Utilities folder) and "Save as.." an Application (.app) with desired name.
-- 3. Open Security & Privacy System Preferences, go to Privacy, Accessibility.
-- 4. Enable the above .app so it can access Accessibility
-- 5. Copy and paste a nice icon on the generic Applescript icon (I used a copy of the default AnyConnect one)
-- 6. Add the new .app to /Users/[yourshortname]/Applications with a shortcut to your Dock
-- 7. Enjoy the fast connection with no need to enter password and increased security of not having a sensitive password stored as plain text
-- 8. Run script again to close connection
-- AnyConnect now refered to as targetApp
import org.apache.commons.lang.StringUtils;
public class Validatable {
private boolean isValid;
public static <T> Validatable ifNull(T field) {
if (field == null) {
return new Validatable().invalid();
} else {
require 'formula'
class Scala < Formula
homepage 'http://www.scala-lang.org/'
url 'http://www.scala-lang.org/files/archive/scala-2.10.3.tgz'
sha1 '04cd6237f164940e1e993a127e7cb21297f3b7ae'
devel do
url 'http://www.scala-lang.org/files/archive/scala-2.11.0-M4.tgz'
sha1 '43e0983cebe75154e41a6b35a5b82bdc5bdbbaa2'
Library/Formula/scala.rb