Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
#!/bin/sh | |
runMinecraftCommand="java -Xms256M -Xmx768M -jar minecraft_server.jar nogui" | |
startScript="start.sh" | |
echo "Great let's get minecraft setup!" | |
# Sanity check, do we have java installed? | |
if ! hash java 2>/dev/null; then | |
echo "You don't have java installed. You're gonna have a tough time." | |
echo "Are you sure you selected the default Amazon Linux HVM ami?" |
I use the first | |
ββ BEGIN LICENSE ββ | |
Michael Barnes | |
Single User License | |
EA7E-821385 | |
8A353C41 872A0D5C DF9B2950 AFF6F667 | |
C458EA6D 8EA3C286 98D1D650 131A97AB | |
AA919AEC EF20E143 B361B1E7 4C8B7F04 |
This process requires that you are able to ssh OR log in locally using the root user account and that no services be running as users out of /home on the target machine.
The examples are from a default installation with no customization-you NEED to know what you're working with for volumes/partitions to not horribly break things.
By default, CentOS 7 uses XFS for the file system and Logical Volume Manager (LVM), creating 3 partitions: /
,/home
and swap.
NOTE: If you want to be sure that nothing is writing to /home
you can either modify the host to boot into single-user mode OR try to use the
systemctl isolate runlevel1.target
command to switch (not tested! should work).
$(document).ajaxComplete((e, x, o) => { | |
if (o.url == "https://api.twitter.com/1.1/statuses/retweet.json") { | |
tweet_id = JSON.parse(x.responseText)['id_str']; | |
auth_token = JSON.parse(document.querySelector('#init-data').value)['formAuthenticityToken']; | |
fetch("https://twitter.com/i/tweet/pin", { | |
body: `authenticity_token=${auth_token}&id=${tweet_id}`, | |
method: "POST", | |
headers: { | |
Accept: "application/json, text/javascript, */*; q=0.01", | |
"Cache-Control": "no-cache", |
I ran into the battle of running all of my VMs and the host node under a single public IP address. Luckily, the host is just pure Debian, and ships with iptables. | |
What needs to be done is essentially to run all the VMs on a private internal network. Outbound internet access is done via NAT. Inbound access is via port forwarding. | |
Network configuration | |
Hereβs how itβs done: | |
Create a virtual interface that serves as the gateway for your VMs: |
/* | |
TTY, A The Lounge Theme bodged together by | |
ββββββββββββββββββββββββ | |
ββββββββββββββββββββββββ | |
ββββββββββββββββββββββββ | |
ββββββββββββββββββββ | |
ββββββββββββββββββββ | |
ββββββββββββββββββββ | |
Needs "One Dark" theme because based upon that, | |
"npm install thelounge-theme-onedark" |
Enabling .NET Standard support on UWP apps targeting 15063 or below is relatively simple.
Set your project's TargetPlatformMinVersion
to anything above 15063, for this I've always used 16299 but other SDKs should work the same way
Open your .csproj
file in a text editor (right click, "Unload project", right click again, "Edit project file"), and add the following 2 lines to the first property group.
const dgram = require("dgram"); | |
const ip = process.argv[2]; | |
const port = process.argv[3] || 27015; | |
if (!ip) { | |
console.log("giv ip"); | |
process.exit(1); | |
} |