Exhaustive list of SPDX (Software Package Data Exchange) licenses: https://spdx.org/licenses/
CREATING syn flood and web work load: | |
%hping3 -I p1p1 -p 8701 -S -V --flood 192.168.50.1 | |
%wrk -t8 -c1000 -d10s http://192.168.50.1:8701 | |
DRIVER VERSION | |
%route add default gw a.b.31.254 em1 | |
%ethtool -i p1p1 | |
CPU | |
Set the cpupower to the approriate governor profile. |
#!/bin/bash | |
# Give the usual warning. | |
clear; | |
echo "[INFO] Automated Android root script started.\n\n[WARN] Exploit requires sdk module \"NDK\".\nFor more information, visit the installation guide @ https://goo.gl/E2nmLF\n[INFO] Press Ctrl+C to stop the script if you need to install the NDK module. Waiting 10 seconds..."; | |
sleep 10; | |
clear; | |
# Download and extract exploit files. | |
echo "[INFO] Downloading exploit files from GitHub..."; |
Release in Chef 12.9.41 via PR #4741 core chef now has a feature which has been available in Poise for awhile, which is that notifications from within resources will now notify resources in outer run contexts. This means you can write a recipe with a service resource and send a notification to it from a resource that you write.
Notifications will bubble up from arbitrarily nested resources, so users that write resources that wrap resources which wrap your resource will still find the service resource in your default recipe.
At the same time the resources collection #find()
and #lookup
methods and the more commonly-used DSL method resources("service[ntpd]")
has been changed to also match
Automatically deletes old emails that match the specified label.
- Create a new Google Apps Script at https://script.google.com
- Overwrite the placeholder with the javascript below
- Update the following constants:
LABEL_TO_DELETE
: the label that should be have old messages deleted
#!/usr/bin/python | |
import os.path, subprocess, datetime, dateutil.parser, time, sys | |
def apple_year_offset(dateobj, years=0): | |
# Convert to a maleable format | |
mod_time = dateobj.timetuple() | |
# Offset year by number of years | |
mod_time = time.struct_time(tuple([mod_time[0]+years]) + mod_time[1:]) | |
# Convert back to a datetime obj | |
return datetime.datetime.fromtimestamp(int(time.mktime(mod_time))) |
#!/usr/bin/python | |
import sys, datetime, time | |
def apple_year_offset(dateobj, years=0): | |
# Convert to a maleable format | |
mod_time = dateobj.timetuple() | |
# Offset year by number of years | |
mod_time = time.struct_time(tuple([mod_time[0]+years]) + mod_time[1:]) | |
# Convert back to a datetime obj | |
return datetime.datetime.fromtimestamp(int(time.mktime(mod_time))) |
#!/bin/bash | |
### | |
# chkconfig: 345 20 80 | |
# description: Vert.x application service script | |
# processname: java | |
# | |
# Installation (CentOS): | |
# copy file to /etc/init.d | |
# chmod +x /etc/init.d/my-vertx-application |
#!/bin/bash | |
set -o nounset | |
set -o errexit | |
set -o pipefail | |
EXTRA_TAGS=${1} | |
TSDB_CMD=$( /usr/bin/which tsdb ) | |
START_TIME="1y-ago" | |
END_TIME="45d-ago" |