the default modifier key is Ctrl + b
tmux ls # list sessions
tmux new -s myname # new session by name
tmux kill-session -t myname # kill session by name
| // usage: | |
| // { | |
| // xtype: 'ux_highchart', | |
| // highchartCfg: { | |
| // // ... | |
| // } | |
| // } | |
| Ext.define('Ext.ux.Highchart', { | |
| extend: 'Ext.Container', |
| # get image | |
| docker pull neo4j | |
| # list | |
| docker ps # show running containers | |
| docker ps -a # + show all | |
| # new | |
| docker run neo4j # create a new container | |
| docker run --name neo4j-local neo4j # + add a name |
Below are the steps to get an ARM64 version of Ubuntu running in the QEMU emulator on Windows 10.
Install for Windows from https://qemu.weilnetz.de/w64/ (I used qemu-w64-setup-20181211.exe)
Put C:\Program Files\qemu on your PATH, and run the below to check it's working (which will list out
the CPUs the AArch64 emulator can emulate):
qemu-system-aarch64 -M virt -cpu help
| One bugfix | |
| http://www.sencha.com/forum/showthread.php?23615-Grid-Search-Plugin&p=799141&viewfull=1#post799141 | |
| For datecolumns like: | |
| ,{ | |
| text:'date', | |
| dataIndex:'datecreated', | |
| xtype:'datecolumn', | |
| format:'d.m.Y H:i' | |
| } |
Guide to using MakeSelf tool to create self-extracting shell scripts for easy distribution
How to package your shell scripts project as a release which can be easily downloaded, extracted, and run.
This is intended to work with one or more executable scripts that use a shell shebang. This could work with other shebangs I guss, but you're probably better off using the packaging approach for that language.
This guide is written for macOS / Linux.
| var dgram = require('dgram'); | |
| var socket = dgram.createSocket({ type: 'udp4', reuseAddr: true }); | |
| const PORT = 9875; | |
| const MULTICAST_ADDR = '239.255.255.255'; | |
| //options, need to be changed | |
| var addr = '127.0.0.1'; | |
| var multicastAddr = '239.69.0.119'; |
| // uses Apache commons CSV, IO and Lang | |
| import org.apache.commons.csv.CSVFormat; | |
| import org.apache.commons.csv.CSVParser; | |
| import org.apache.commons.csv.CSVPrinter; | |
| import org.apache.commons.io.FileUtils; | |
| import org.apache.commons.io.IOUtils; | |
| import java.io.*; | |
| import java.util.ArrayList; | |
| import java.util.List; |