- Create new partition for Local Storage
# gdisk /dev/sda
- Check /dev/sda partition table
#! /usr/bin/env python | |
import fileinput | |
import argparse | |
from operator import itemgetter | |
parser = argparse.ArgumentParser() | |
parser.add_argument('--target-mb', action = 'store', dest = 'target_mb', default = 61000, type = int) | |
parser.add_argument('vmtouch_output_file', action = 'store', nargs = '+') | |
args = parser.parse_args() |
Note 1: The following CQ curl commands assumes a admin:admin username and password. | |
Note 2: For Windows/Powershell users: use two "" when doing a -F cURL command. | |
Example: -F"":operation=delete"" | |
Note 3: Quotes around name of package (or name of zip file, or jar) should be included. | |
Uninstall a bundle (use http://localhost:4505/system/console/bundles to access the Apache Felix web console) | |
curl -u admin:admin -daction=uninstall http://localhost:4505/system/console/bundles/"name of bundle" | |
Install a bundle | |
curl -u admin:admin -F action=install -F bundlestartlevel=20 -F |
From bmc Mon Oct 2 15:12:34 2000 | |
Subject: Undergrad systems curriculum | |
To: faculty@cs.cornell.edu | |
Date: Mon, 2 Oct 2000 15:12:34 -0700 (PDT) | |
X-Mailer: ELM [version 2.4ME+ PL31H (25)] | |
MIME-Version: 1.0 | |
Content-Type: text/plain; charset=US-ASCII | |
Content-Transfer-Encoding: 7bit | |
Content-Length: 4065 | |
Status: RO |
-- Two dashes start a one-line comment. | |
--[[ | |
Adding two ['s and ]'s makes it a | |
multi-line comment. | |
--]] | |
---------------------------------------------------- | |
-- 1. Variables and flow control. | |
---------------------------------------------------- |
# The blog post that started it all: https://neocities.org/blog/the-fcc-is-now-rate-limited | |
# | |
# Current known FCC address ranges: | |
# https://news.ycombinator.com/item?id=7716915 | |
# | |
# Confirm/locate FCC IP ranges with this: http://whois.arin.net/rest/net/NET-165-135-0-0-1/pft | |
# | |
# In your nginx.conf: | |
location / { |
#!/bin/bash | |
set -euo pipefail | |
if [[ $# -ne 1 ]] || [[ "$1" == '--help' ]]; then | |
cat >&2 <<'EOF' | |
Insert the following before a key in .ssh/authorized_keys: | |
command=".ssh/remember_command ID",no-agent-forwarding,no-port-forwarding,no-X11-forwarding,no-user-rc,no-pty | |
(On newer systems you can replace all these no-* options with single "restrict".) | |
Put this script into your ~/.ssh/ directory and make it executable. | |
It will remember the first requested command for the specified ID, |
#!/bin/bash | |
modprobe -r ec_sys | |
modprobe ec_sys write_support=1 | |
on="\x8a" | |
off="\x0a" | |
led(){ | |
echo -n -e $1 | dd of="/sys/kernel/debug/ec/ec0/io" bs=1 seek=12 count=1 conv=notrunc 2> /dev/null |
... | |
public static class RunWhenShuttingDown extends Thread { | |
public void run() { | |
if (perfect.test()) { | |
co.println("Shutting down...\n\n\n"); | |
co.println("solution is here,\n"); | |
co.println("The end is near,"); | |
co.println("there is no fear,"); | |
try { |