docker cp <containerId>:/file/path/within/container /host/path/target
docker stop $(docker ps -aq)
import javafx.fxml.Initializable; | |
import javafx.scene.control.Slider; | |
import javafx.scene.control.TableCell; | |
import javafx.scene.control.TableColumn; | |
import javafx.scene.control.TableView; | |
import java.net.URL; | |
import java.util.ResourceBundle; | |
public class Controller implements Initializable { |
#https://gorails.com/setup/ubuntu/14.04 | |
sudo apt-get update | |
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties | |
sudo apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev | |
curl -L https://get.rvm.io | bash -s stable | |
source ~/.rvm/scripts/rvm | |
echo "source ~/.rvm/scripts/rvm" >> ~/.bashrc | |
rvm install 2.1.2 | |
rvm use 2.1.2 --default |
#!/usr/bin/env node | |
// | |
// Quickly find AWS SSM params by partial search, use custom AWS profiles, get an interactive | |
// result to query, and get a AWS URL to view and edit target. | |
// | |
// Requires AWS CLI, NodeJS v10+ and Python 2/3 | |
// | |
// Before running for first time do: | |
// npm install inquirer |
# GNU Screen | |
# Preferred Configuration File | |
# Turn off start up message | |
startup_message "off" | |
# Allow bold colors | |
attrcolor b ".I" | |
# Tell screen how to set colors. AB = background, AF=foreground |
# | |
# Download a great Gnu Screen config straight to your current user's environment | |
# | |
# Just paste that in wherever env you're at and run `screen` and you'll have a good configuration with a status bar, | |
# tabs, no warning screen, beeps/bells/alerts, and more. | |
# | |
# Screen Config (.screenrc) located here: | |
# Gist: https://gist.github.com/dantheman213/8df6fabb1bc6fc192c9e | |
# Raw: https://gist.githubusercontent.com/dantheman213/8df6fabb1bc6fc192c9e/raw/bfd65a3695974b94223849c516b5b58828932613/Great%2520GNU%2520Screen%2520config |
#!/bin/bash | |
fn="$1" | |
of=`echo $1 | sed s/mp4/jpg/` | |
lf=`ffprobe -show_streams "$fn" 2> /dev/null | grep nb_frames | head -1 | cut -d \= -f 2` | |
rm -f "$of" | |
let "lf = $lf - 1" | |
ffmpeg -i $fn -vf select=\'eq\(n,$lf\) -vframes 1 $of |
import android.util.Log; | |
import java.security.SecureRandom; | |
import java.security.cert.CertificateException; | |
import java.security.cert.X509Certificate; | |
import javax.net.ssl.HostnameVerifier; | |
import javax.net.ssl.HttpsURLConnection; | |
import javax.net.ssl.SSLContext; | |
import javax.net.ssl.SSLSession; |
'use strict'; | |
const later = require('later'); | |
const logger = require('./logger')('guard'); | |
const pm2 = require('pm2'); | |
const schedule = later.parse.recur().every(10).second(); | |
// set local timezone | |
later.date.localTime(); |
<?php | |
/** | |
* Include posts from authors in the search results where | |
* either their display name or user login matches the query string | |
* | |
* @author danielbachhuber | |
*/ | |
add_filter( 'posts_search', 'db_filter_authors_search' ); | |
function db_filter_authors_search( $posts_search ) { |