start new:
tmux
start new with session name:
tmux new -s myname
# Environment, set GEM_HOME & GEM_PATH. For example, we can launch JRuby like this: | |
# GEM_HOME=/Users/amurray/tmp/gems/ GEM_PATH=/Users/amurray/tmp/gems java -jar ~/Downloads/jruby-complete-1.7.0.preview1.jar -S irb | |
# ===================== | |
# LISTING gems | |
puts Gem::Specification.find_all.to_s | |
puts Gem::Specification.find_all.map{|spec| "#{spec.name} (#{spec.version})" } | |
# ===================== | |
# USING (a specific version of) gems |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
Dagger step 1: Add android-apt, dagger 2, dagger2-compiler, and javax annotation to the build.gradle files. | |
Note that they're not all "compile" dependencies. | |
Step 2: Add our module. Our ApplicationModule will be able to inject the ApplicationContext to classes that need it. | |
Step 3: Add our Component.Dagger 2 generates code for each Component you create, | |
using the file name Dagger(NameOfComponent). | |
Example: DaggerApplicationComponent. | |
Components can have multiple modules, in our case we have one. |
module Inc = Incremental_lib.Incremental.Make () | |
open Inc | |
let make init = | |
let num = 4 in | |
let den_v = Var.create init in | |
let den = Var.watch den_v in | |
(* computes "if den = 0 then 0 else num / den" *) | |
let div = bind den (fun den -> return (num / den)) in |
Salvaged from Google Cache of http://www.lps-it.fr/blog/20151218-signal-handling-and-ruby.html
December 18, 2015
Linux Ruby
Since version 2.0.0, signal handling in Ruby can be tricky. I bet if you're here, it's because you've seen this error message :
This basic guide supports Ubuntu Xenial Xerus 16.04 and will enable several external encoding and decoding libraries: libfaac (AAC encoder), libfdk-aac (AAC encoder), libmp3lame (MP3 encoder), libopencore-amr (AMR encoder/decoder), librtmp (for additional RTMP protocols), libtheora (Theora encoder), libvorbis (Vorbis encoder), libvpx (VP8 encoder/decoder), and libx264 (H.264 encoder). These are optional and may be omitted if desired. This guide will also install many filters (see the filter list in the [Filtering Guide][1].
Note: Copy and paste the whole code box for each step.
UPDATED 22.11.2022
It's been two years since the last update, so here's the updated working script as per the comments below.
Thanks to BryanHaley for this.
setInterval(function () {
video = document.getElementsByTagName('ytd-playlist-video-renderer')[0];
video.querySelector('#primary button[aria-label="Action menu"]').click();