https://gist.github.com/diegopacheco/3432ae63b514b878167a37976b004270
java -jar {$jetty.home}/start.jar --add-to-start=jmx
java -jar {$jetty.home}/start.jar --add-to-start=threadpool
java -jar {$jetty.home}/start.jar --add-to-start=threadlimithttps://gist.github.com/diegopacheco/3432ae63b514b878167a37976b004270
java -jar {$jetty.home}/start.jar --add-to-start=jmx
java -jar {$jetty.home}/start.jar --add-to-start=threadpool
java -jar {$jetty.home}/start.jar --add-to-start=threadlimit| # Example ~/.ssh/config for dealing with JSch problems regarding | |
| # ssh public key authentication with encrypted (password protected) keys. | |
| # | |
| # First, a problem description and a couple of solutions that worked for me, | |
| # (in March 2018 on MacOS High Sierra) and in the bottom youäll find an example | |
| # config that doesn't interfere with JSch's use of the ssh-agent. | |
| # | |
| # | |
| # Problem description: | |
| # -------------------- |
| (ns switch | |
| (:require [clojure.pprint :as pprint])) | |
| (defn project-clj-map [filename] | |
| (->> (slurp filename) | |
| (read-string) | |
| (drop 1) | |
| (partition 2) | |
| (map vec) | |
| (into {}))) |
| ;; I think it would be a mistake to introduce temporal coupling to prevent typos. | |
| ;; The example program below lets you identify "missing" keys specs at | |
| ;; the time and place of your choosing, and then handle them as you | |
| ;; deem appropriate, without imposing those decisions on other | |
| ;; users of spec. | |
| (require '[clojure.spec.alpha :as s] | |
| '[clojure.set :as set]) |
The easiest way to "convert" MKV to MP4, is to copy the existing video and audio streams and place them into a new container. This avoids any encoding task and hence no quality will be lost, it is also a fairly quick process and requires very little CPU power. The main factor is disk read/write speed.
With ffmpeg this can be achieved with -c copy. Older examples may use -vcodec copy -acodec copy which does the same thing.
These examples assume ffmpeg is in your PATH. If not just substitute with the full path to your ffmpeg binary.
| // Usage: | |
| // Copy and paste all of this into a debug console window of the "Who is Hiring?" comment thread | |
| // then use as follows: | |
| // | |
| // query(term | [term, term, ...], term | [term, term, ...], ...) | |
| // | |
| // When arguments are in an array then that means an "or" and when they are seperate that means "and" | |
| // | |
| // Term is of the format: | |
| // ((-)text/RegExp) ( '-' means negation ) |
#How I built an audio book reader for my nearly blind grandfather
Last year, when visiting my family back home in Holland, I also stopped by my grand-parents. My grand-father, now 93 years old, had always been a very active man. However, during the presceding couple of months, he'd gone almost completely blind and now spent his days sitting in a chair. Trying to think of something for him to do, I suggested he try out audio books. After finally convincing him -- he said audio books were for sad old people -- that listening to a well performed recording is actually a wonderful experience, I realized the problem of this idea.
####The problem with audio devices and the newly blind. After my first impulse to jump up and go buy him an
(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.
| # Source : http://thezinx.com/2013/10/29/create-bootable-dmg-iso-mavericks-app.html | |
| # Mount the installer image | |
| hdiutil attach /Applications/Install\ OS\ X\ Mavericks.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app | |
| # Convert the boot image to a sparse bundle | |
| hdiutil convert /Volumes/install_app/BaseSystem.dmg -format UDSP -o /tmp/Mavericks | |
| # Increase the sparse bundle capacity to accommodate the packages | |
| hdiutil resize -size 8g /tmp/Mavericks.sparseimage |
| #!/bin/sh | |
| ### | |
| # SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
| # For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
| ### | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |