Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
(function() { | |
var filterName = new RegExp(prompt("Insert the regex"), 'i'); | |
if (!filterName) { | |
return alert('Invalid regex'); | |
} | |
var MAX_ITERATIONS = 500; | |
var $profileNode = document.querySelector('[title="Profile"] > span'); |
Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
<?php | |
include "tree.php"; | |
$x = new Tree(); | |
$x->bacon = "Pancetta"; | |
$x->pasta["fagioli"] = 3; | |
$y = clone $x; | |
$y->pasta = null; |
Download the InstantClient from the Oracle website
Create and unzip all theses files into a the directory /opt/instantclient/VERSION
With TOR, you can specify the country of exit nodes to test a particular website from a specific country.
Just add these 4 lines in the torrc file.
ExitNodes {jp}
StrictNodes 1
GeoIPExcludeUnknown 1
AllowSingleHopCircuits 0
#!/usr/bin/env ruby | |
require 'open-uri' | |
require 'JSON' | |
require 'digest/sha2' | |
require 'pry' | |
require 'bigdecimal' | |
require 'bitcoin' # Because I need to cheat every now and then | |
# Usage: | |
# gem install pry json ffi ruby-bitcoin |
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
My typical setup for a development box in VirtualBox uses two NICs. The first uses NAT to allow the box to communicate with the outside world through my host computer’s network connection. (NAT is the default, so shouldn't require any setup.) The second is a "host-only" connection that allows my host and guest to interact.
To create a host-only connection in VirtualBox, start by opening the preferences in VirtualBox. Go to the "Network" tab, and addd a Host-only Network. Modify the host-only network, and disable DHCP. Make a note of the IP address. (Feel free to set the IP address as well, if you like.)
Next, assign this host-only adapter to the virtual machine. Select the VM and press "Settings". Go to the "Network" tab, and select "Adpater 2". Enable the adapter, set it to a "Host-only Adapter", and select the adpater you created above.
I can never find a great guide on this stuff, so these are more like notes to myself.
The goal here is to have a virtualbox running more or less headless. An ssh client is used separately to actually use the machine. I've found it to be fantastic for a quick dev setup.
Assumes you have a vbox setup with Ubuntu server (this will work for 16.04) ready to go.