Update: I made this a proper blog post
- linux box
Update: I made this a proper blog post
| ################################################################################# | |
| # start and stop the vpn from the command line from now on with these two commands | |
| ################################################################################# | |
| startvpn() { | |
| sudo launchctl load -w /Library/LaunchDaemons/net.pulsesecure.AccessService.plist | |
| launchctl load -w /Library/LaunchAgents/net.pulsesecure.pulsetray.plist | |
| } | |
| quitvpn() { | |
| launchctl unload -w /Library/LaunchAgents/net.pulsesecure.pulsetray.plist | |
| sudo launchctl unload -w /Library/LaunchDaemons/net.pulsesecure.AccessService.plist |
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
The server.rb file slowly feeds data to the socket, and both clients will yield data as it's available. UneventfulMachine steals the API of EventMachine.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
Simply put, destructuring in Clojure is a way extract values from a datastructure and bind them to symbols, without having to explicitly traverse the datstructure. It allows for elegant and concise Clojure code.
| // Bootstrap wants jQuery global =( | |
| window.jQuery = $ = require('jquery') | |
| // Bootstrap doesn't have a "main" field / export anything =( | |
| var bootstrap = require('bootstrap/dist/js/bootstrap') | |
| // Get Bootstrap styles with cssify | |
| var style = require('./node_modules/bootstrap/dist/css/bootstrap.css') | |
| var popover = document.createElement('span') | |
| popover.innerHTML = 'I have a popover' |
| (defn tree-seq-depth | |
| "Returns a lazy sequence of vectors of the nodes in a tree and their | |
| depth as [node depth], via a depth-first walk. branch? must be a fn | |
| of one arg that returns true if passed a node that can have | |
| children (but may not). children must be a fn of one arg that | |
| returns a sequence of the children. Will only be called on nodes for | |
| which branch? returns true. Root is the root node of the tree." | |
| [branch? children root] | |
| (let [walk (fn walk [depth node] | |
| (lazy-seq |
| This diff is a modified version of a diff written by Arnis Lapsa. | |
| [ The original can be found here: https://gist.github.com/ArnisL/6156593 ] | |
| This diff adds support to tmux for 24-bit color CSI SRG sequences. This | |
| allows terminal based programs that take advantage of it (e.g., vim or | |
| emacs with https://gist.github.com/choppsv1/73d51cedd3e8ec72e1c1 patch) | |
| to display 16 million colors while running in tmux. | |
| The primary change I made was to support ":" as a delimeter as well |