How to inform Eclipse and other Mac applications of the command line PATH
- Update Mac OS X's notion of
PATH
.
$ defaults write ~/.MacOSX/environment PATH "`echo $PATH`"
$ echo "setenv PATH $PATH" | sudo tee /etc/launchd.conf
- Restart Mac OS X.
#!/bin/bash | |
# | |
# The reason of creating this script is that Endpoint Security VPN installs it's own application firewall kext cpfw.kext | |
# which prevents for example PPTP connections from this computer, which is not appropriate if you need subj connection just | |
# from time to time | |
# | |
# Usage: ./checkpoint.sh | |
# | |
# The script checks if Enpoint Security VPN is running. If it is, then it shuts it down, if it is not, it fires it up. | |
# Or, make an Automator action and paste the script. |
How to inform Eclipse and other Mac applications of the command line PATH
PATH
.$ defaults write ~/.MacOSX/environment PATH "`echo $PATH`"
$ echo "setenv PATH $PATH" | sudo tee /etc/launchd.conf
package me.filippov.netty_demo; | |
import io.netty.bootstrap.Bootstrap; | |
import io.netty.bootstrap.ChannelFactory; | |
import io.netty.channel.*; | |
import io.netty.channel.nio.NioEventLoopGroup; | |
import io.netty.channel.socket.DatagramPacket; | |
import io.netty.channel.socket.InternetProtocolFamily; | |
import io.netty.channel.socket.nio.NioDatagramChannel; |
# Assuming an Ubuntu Docker image | |
$ docker run -it <image> /bin/bash |
(defrecord Server [service-map] | |
component/Lifecycle | |
(start [component] | |
(info :msg "Starting server.") | |
(let [server (bootstrap/create-server (:service-map service-map))] | |
(bootstrap/start server) | |
(assoc component :server server))) | |
(stop [component] | |
(info :msg "Stopping server.") | |
(update-in component [:server] bootstrap/stop))) |
(ns om-material-ui.core | |
(:require [clojure.string :as str] | |
[om-tools.dom :as omt])) | |
(defn kebab-case | |
"Converts CamelCase / camelCase to kebab-case" | |
[s] | |
(str/join "-" (map str/lower-case (re-seq #"\w[a-z]+" s)))) | |
(def material-tags |
opacity-rule = [ | |
"93:class_g = 'URxvt' && !_NET_WM_STATE@:32a", | |
"90:class_g = 'Qvim' && !_NET_WM_STATE@:32a", | |
"95:class_g = 'Zathura' && !_NET_WM_STATE@:32a", | |
"95:class_g = 'Spacefm' && !_NET_WM_STATE@:32a", | |
"88:class_g = 'LilyTerm' && !_NET_WM_STATE@:32a", | |
"80:class_g = 'i3-bar' && !_NET_WM_STATE@:32a", | |
"50:class_g = 'i3-frame' && !_NET_WM_STATE@:32a", | |
"0:_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'" | |
]; |
(ns srs-s.routes.core | |
(:require [io.pedestal.http :as pedestal] | |
[io.pedestal.http.route.definition :refer [defroutes]] | |
[io.pedestal.interceptor.helpers :as interceptor] | |
[io.pedestal.http.body-params :as body-params] | |
[ring.util.response :as ring-response] | |
[cognitect.transit :as transit] | |
[om.next.server :as om] | |
[om.tempid :as tempid]) | |
(:import [java.io OutputStream] |
#!/bin/bash | |
# Downloads and installs the startssl CA certs into the global Java keystore | |
# https://sipb.mit.edu/doc/safe-shell/ | |
set -euf -o pipefail | |
# Check if JAVA_HOME is set | |
if [ "$JAVA_HOME" = "" ] | |
then | |
echo "ERROR: JAVA_HOME must be set." | |
exit 1 |
(ns foo.test-helper | |
(:require [clojure.spec :as s] | |
[clojure.spec.test :as st] | |
[clojure.string :as str] | |
[clojure.test :refer :all] | |
[clojure.test.check.generators :as gen] | |
[clojure.test.check.random :refer [IRandom]] | |
[clojure.test.check.rose-tree :as rose])) | |
(defn instrument-all |