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:
| # 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 |
| // Compile with: | |
| // gcc -o click click.m -framework ApplicationServices -framework Foundation | |
| // | |
| // Usage: | |
| // ./click -x pixels -y pixels | |
| // At the given coordinates it will click and release. | |
| // | |
| // From http://hints.macworld.com/article.php?story=2008051406323031 | |
| #import <Foundation/Foundation.h> | |
| #import <ApplicationServices/ApplicationServices.h> |
| using Microsoft.AspNetCore.Builder; | |
| using Microsoft.AspNetCore.Hosting; | |
| using Microsoft.AspNetCore.Http; | |
| using Microsoft.Extensions.Logging; | |
| namespace WebApplication1 | |
| { | |
| public class Program | |
| { | |
| public static void Main(string[] args) |
| CFLAGS = -std=c99 -Wall -Wextra -O3 -g3 | |
| lfsr: lfsr.c |