Skip to content

Instantly share code, notes, and snippets.

Screen Quick Reference

Basic

Description Command
Start a new session with session name screen -S <session_name>
List running sessions / screens screen -ls
Attach to a running session screen -x
Attach to a running session with name screen -r
@kiicia
kiicia / youtube_format_code_itag_list.md
Created December 30, 2019 00:32 — forked from sidneys/youtube_format_code_itag_list.md
YouTube video stream format codes itags

YouTube video stream format codes

Comprehensive list of YouTube format code itags

itag Code Container Content Resolution Bitrate Range VR / 3D
5 flv audio/video 240p - - -
6 flv audio/video 270p - - -
17 3gp audio/video 144p - - -
18 mp4 audio/video 360p - - -
22 mp4 audio/video 720p - - -
@kiicia
kiicia / ScrollVis
Created January 14, 2016 16:52
Changing elements that are scrolled into view (ie loading images only when can be seen)
var ScrollVis = function() {
var id = new Date().getTime();
var isVis = e => e.getBoundingClientRect().bottom > 0 && e.getBoundingClientRect().top < window.innerHeight;
var isVisMarked = e => e['vis-mark-' + id] === true;
var visMark = e => e['vis-mark-' + id] = true;
var isStarted, visTimeout, visEvent;
var starter = function(visElements, visAction) {
if (isStarted) {
return;
}
public static class SBCW extends CodeWriter {
private SBOS sbos = new SBOS();
@Override
public void close() throws IOException {
}
public String getCode() {
return sbos.getText();
<dependency>
<groupId>org.javassist</groupId>
<artifactId>javassist</artifactId>
<version>3.19.0-GA</version>
</dependency>
<dependency>
<groupId>net.openhft</groupId>
<artifactId>compiler</artifactId>
<version>2.2.0</version>
</dependency>