- Other refs: https://gist.github.com/andreyvit/2921703
start new with session name:
tmux new -s myname
attach:
/ | |
$$$lang-translate.service.js.aspx | |
$367-Million-Merger-Blocked.html | |
$defaultnav | |
${idfwbonavigation}.xml | |
$_news.php | |
$search2 | |
£º | |
.0 | |
/0 |
#!/bin/bash | |
# Centos 7 John the Ripper Installation | |
git clone https://github.com/magnumripper/JohnTheRipper.git | |
cd JohnTheRipper/src | |
git checkout bleeding-jumbo | |
./configure | |
make -s clean && make -sj4 | |
cd ../run/ | |
./john --test |
start new with session name:
tmux new -s myname
attach:
$socket = new-object System.Net.Sockets.TcpClient('172.16.103.106', 413); | |
if($socket -eq $null){exit 1} | |
$stream = $socket.GetStream(); | |
$writer = new-object System.IO.StreamWriter($stream); | |
$buffer = new-object System.Byte[] 1024; | |
$encoding = new-object System.Text.AsciiEncoding; | |
do | |
{ | |
$writer.Flush(); | |
$read = $null; |
A type is a collection of possible values. An integer can have values 0, 1, 2, 3, etc.; a boolean can have values true and false. We can imagine any type we like: for example, a HighFive type that allows the values "hi" or 5, but nothing else. It's not a string and it's not an integer; it's its own, separate type.
Statically typed languages constrain variables' types: the programming language might know, for example, that x is an Integer.
In that case, the programmer isn't allowed to say x = true
; that would be an invalid program.
The compiler will refuse to compile it, so we can't even run it.
<img id="preview" style="display: none; max-width: 200px" src=""> | |
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script> | |
<script> | |
$(document).ready(function() { | |
$("#photo_url").on("blur", function(event) { | |
var photo_url = $(this).val(); | |
var preview = $("#preview"); | |
if (photo_url) { | |
preview.attr("src", photo_url) |
def dump_memory | |
GC.start | |
time = DateTime.now.strftime('%-l%M') | |
path = Rails.root.join("tmp/ruby-heap.#{time}.dump") | |
io = File.open(path, "w") | |
ObjectSpace.dump_all(output: io) | |
io.close | |
tl;dr - Improvement from 16s down to < 1s
With 6 months of well license data: start_date: 2014-10-18, end_date: 2015-03-05
and a single filter by operator name: Standard Exploration Ltd.
Request:
bcurl 'http://localhost:3000/api/v1/maps/asset_list' \