diskutil erasevolume HFS+ 'RAM Disk' `hdiutil attach -nobrowse -nomount ram://XXXXX`where XXXXX is the size of the RAM disk in terms of memory blocks.
Notes:
| # frozen_string_literal: true | |
| require 'aws-sdk-dynamodb' | |
| require 'hirb' | |
| # NOTICE: Authorize via https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html | |
| dynamodb = Aws::DynamoDB::Client.new | |
| scan_opts = { table_name: '<TABLE_NAME>' } | |
| items = [] |
| Mute these words in your settings here: https://twitter.com/settings/muted_keywords | |
| ActivityTweet | |
| generic_activity_highlights | |
| generic_activity_momentsbreaking | |
| RankedOrganicTweet | |
| suggest_activity | |
| suggest_activity_feed | |
| suggest_activity_highlights | |
| suggest_activity_tweet |
| # Upper | |
| cpulimit -l 1 -- taskset -c 0 ./pct | |
| cpulimit -l 18 -- taskset -c 1 ./pct | |
| cpulimit -l 35 -- taskset -c 2 ./pct | |
| cpulimit -l 52 -- taskset -c 3 ./pct | |
| cpulimit -l 69 -- taskset -c 4 ./pct | |
| cpulimit -l 86 -- taskset -c 5 ./pct | |
| cpulimit -l 103 -- taskset -c 6 ./pct | |
| cpulimit -l 1 -- taskset -c 63 ./pct |
| # batch convert | |
| for i in *.mp4; do ffmpeg -i "$i" "${i%.mp4}.webm"; done | |
| # convert from one format to another | |
| ffmpeg -i input.mp3 output.wav | |
| # convert from one video format to another ("-qscale" value are 0-10, 0 is the best) | |
| ffmpeg -i input.mp4 -qscale 0 output.webm | |
| # convert video to audio (sometimes this one is better than the custom one below) |
| FROM ruby:2.5.5-alpine3.9 as builder | |
| WORKDIR /app | |
| ARG RAILS_MASTER_KEY | |
| ENV BUNDLE_SILENCE_ROOT_WARNING=1 \ | |
| BUNDLE_IGNORE_MESSAGES=1 \ | |
| BUNDLE_GITHUB_HTTPS=1 \ | |
| BUNDLE_FROZEN=1 \ |
This document contains excerpts from my web server logs collected over a period of 7 years that shows various kinds of recon and attack vectors.
There were a total of 37.2 million lines of logs out of which 1.1 million unique HTTP requests (Method + URI) were found.
$ sed 's/^.* - - \[.*\] "\(.*\) HTTP\/.*" .*/\1/' access.log > requests.txt
| class Game | |
| attr_accessor :_ | |
| def default_ship x, y, heading | |
| _.new(:ship) do |s| | |
| s.x = x | |
| s.y = y | |
| s.dy = 0 | |
| s.dx = 0 | |
| s.heading = heading |