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.
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 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 |
(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))) |
# Assuming an Ubuntu Docker image | |
$ docker run -it <image> /bin/bash |
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; |
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
#!/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. |
namespace :deploy do | |
desc "Notifies Honeybadger locally using curl" | |
task :notify_honeybadger do | |
require 'json' | |
require 'honeybadger' | |
begin | |
require './config/initializers/honeybadger' | |
rescue LoadError | |
logger.info 'Honeybadger initializer not found' |
#!/bin/bash | |
echo "Checking for Ruby..." | |
type -P ruby &>/dev/null || { echo >&2 "Ruby not found in PATH. Exiting."; exit 1; } | |
echo "Checking for Bundler..." | |
gem which bundler &>/dev/null || gem install bundler | |
echo "Installing gem dependencies..." | |
bundle install |
; Ruby has an awesome feature -- string interpolation. Read about it on the internet. | |
; On the other hand, Clojure only has cumbersome Java string formatting, which can not be | |
; used without pain after you've tried Ruby. | |
; So here's this simple macro that basically allows you to do most things you could do | |
; with Ruby string interpolation in Clojure. | |
(ns eis.stuff | |
(:require [clojure.string])) |