Skip to content

Instantly share code, notes, and snippets.

View rbreslow's full-sized avatar

Rocky Breslow rbreslow

View GitHub Profile
#!/bin/bash
set -e
function usage() {
echo -n \
"Usage: $(basename "$0") path_to_output_directory
Download BIOS update from ASUS, extract Intel Flash Descriptor/ME, neutralize, and shrink.
"
}

What is my iPhone really used for?

  1. Music.
  2. Camera.
  3. GPS Navigation.
  4. ForeFlight.
  5. iMessaging.
  6. Phone calls.
  7. Health monitoring (e.g., trails tracking, step count).
SELECT
client_addr,
query_start,
state_change,
wait_event,
state,
EXTRACT(epoch FROM (state_change - query_start)) AS execution_duration,
EXTRACT(epoch FROM (CURRENT_TIMESTAMP - query_start)) AS total_duration,
query
FROM
@rbreslow
rbreslow / flake.nix
Created November 7, 2021 17:05
An example skeleton for Nix development environments using the flake default package.
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.simpleFlake {
inherit self nixpkgs;
name = "joker";
@rbreslow
rbreslow / app.tf
Created August 11, 2021 18:56
Lifecycle-fix for target groups.
resource "aws_lb_target_group" "app" {
# We want a randomly generated resource name so the lifecycle block will
# function. name_prefix can only be 6 characters due to a limitation in the
# AWS API.
# https://github.com/hashicorp/terraform-provider-aws/issues/636#issuecomment-637761075
name_prefix = substr(var.environment, 0, 6)
health_check {
healthy_threshold = "3"
interval = "30"
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| timestamp | message |
|---------------|-------------------------------------------------------------------------------
local PANEL = {}
AccessorFunc(PANEL, "m_iRadius", "Radius", FORCE_NUMBER)
local render = render
local RoundedRect = speak.util.RoundedRect
function PANEL:Init()
self.color = Color(255, 255, 255)
self.m_iRadius = 8
---
- hosts: nexus
connection: paramiko
become: True
vars:
nexus_data_bucket: rasterfoundry-development-data-us-east-1
service_definition:
version: "3"
services:
import java.util.*;
public class Mindfuck {
public static void main(String[] args) {
reconstruct("owoztneoer"); //012
reconstruct("fviefuro"); //45
}
public static void reconstruct(String str) {
String[] numbers = {"zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"};
var ldap = require('ldapjs'),
server = ldap.createServer(),
addrbooks = {}, userinfo = {
'jamf' : {'pwd': 'password1'}
},
ldap_port = 3899,
basedn = "dc=<domain>, dc=com"
var google = require('googleapis');
var directory = google.admin('directory_v1');