wrk is the binary used as injector, always used with these options:
./wrk -t12 -c1000 -d15s http://127.0.0.1:8080/
wrk is the binary used as injector, always used with these options:
./wrk -t12 -c1000 -d15s http://127.0.0.1:8080/
| -- how to model threaded comments (e.g. reddit comments) in SQL with a simple 'ancestors' column | |
| -- The comment tree: | |
| -- [1] | |
| -- / \ | |
| -- [2] [4] | |
| -- / \ \ | |
| -- [3] [7] [6] | |
| -- / | |
| -- [5] |
| ' Disables Vanguard from starting when you boot your computer | |
| Call CreateObject("Shell.Application").ShellExecute("cmd.exe", "/c ""sc config vgc start= disabled & sc config vgk start= disabled""", "", "runas") |
| #!/bin/bash | |
| cd /sys/kernel/config/usb_gadget/ | |
| mkdir -p procon | |
| cd procon | |
| echo 0x057e > idVendor | |
| echo 0x2009 > idProduct | |
| echo 0x0200 > bcdDevice | |
| echo 0x0200 > bcdUSB | |
| echo 0x00 > bDeviceClass |
| const puppeteer = require('puppeteer'); | |
| class Webpage { | |
| static async generatePDF(url) { | |
| const browser = await puppeteer.launch({ headless: true }); // Puppeteer can only generate pdf in headless mode. | |
| const page = await browser.newPage(); | |
| await page.goto(url, { waitUntil: 'networkidle', networkIdleTimeout: 5000 }); // Adjust network idle as required. | |
| const pdfConfig = { | |
| path: 'url.pdf', // Saves pdf to disk. | |
| format: 'A4', |
| using System; | |
| using System.Collections.Immutable; | |
| using System.Diagnostics; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Reflection; | |
| using System.Reflection.Metadata; | |
| using System.Reflection.PortableExecutable; | |
| using System.Security.Cryptography; |
| using System.Drawing; | |
| using System.Runtime.InteropServices; | |
| using System.Security; | |
| using System.Threading.Tasks; | |
| namespace System.Windows.Forms | |
| { | |
| using Point = Drawing.Point; | |
| /// <summary> |
| using System; | |
| using System.Collections.Generic; | |
| using System.ComponentModel; | |
| using System.IO; | |
| using System.Net; | |
| using System.Text; | |
| /* EXAMPLE USAGE | |
| FileDownloader fileDownloader = new FileDownloader(); |
This was originally posted here on reddit. If you decide to try this, please post a comment either confirming that it works or stating any issues that came up. Thanks to reddit user /u/mat_storm1 for pointing out some typos and thanks to reddit user /u/supercore23 for pointing out potential issues with spaces in the world path.
This guide explains how to install and run a Terraria server on your Raspberry Pi. I assume you have already installed Raspbian and have a very basic understanding of the command line. Installation on other Unix-based systems should be very similar. The goal is to reach a setup that only requires you to plug in your Pi to start the server. Connecting to the server should be easily done by using a hostname, not an IP. We should also be able to ssh into the server and do server-admin stuff at any t