Skip to content

Instantly share code, notes, and snippets.

@mr-bo-jangles
mr-bo-jangles / process.bat
Last active February 19, 2023 03:47
Parallel Batch Extracter
@echo off
Setlocal EnableDelayedExpansion
mkdir images
set count=1
xcopy /Q /Y #TOOLS#\pdfimages.exe . >NUL
xcopy /Q /Y #TOOLS#\rush.exe . >NUL
echo Extracting PPM formatted images from supplied PDFs
dir /b *.pdf | .\rush --eta -j 8 -T b ".\pdfimages \"{}\" images\{#}" -q
+ module.website.aws_appautoscaling_policy.ecs_policy
id: <computed>
arn: <computed>
name: "website-autoscale"
policy_type: "TargetTrackingScaling"
resource_id: "arn:aws:ecs:eu-west-2::service/webserver"
scalable_dimension: "ecs:service:DesiredCount"
service_namespace: "ecs"
target_tracking_scaling_policy_configuratio
@mr-bo-jangles
mr-bo-jangles / main.tf
Created March 8, 2018 16:35
ECS Autoscaling example
resource "aws_appautoscaling_target" "ecs_target" {
max_capacity = "${var.max_size}"
min_capacity = "${var.min_size}"
resource_id = "${aws_ecs_service.webserver.id}"
role_arn = "${aws_iam_role.ecs_iam_role.arn}"
scalable_dimension = "ecs:service:DesiredCount"
service_namespace = "ecs"
}
resource "aws_appautoscaling_policy" "ecs_policy" {
class CfgVehicles {
class Module_F;
class vComAIZeusModuleBase: Module_F {
category = "VcomAI Zeus Helper";
functionPriority = 1;
isGlobal = 1;
isTriggerActivated = 0;
scope = 1;
scopeCurator = 2;
fn update_last_seen(last_seen_hash: &mut HashMap<String, SystemTime>, nickname: &str) {
let time_now = SystemTime::now();
let mut last_seen_entry = last_seen_hash.entry(String::from(nickname)).or_insert(time_now);
*last_seen_entry = time_now;
println!("Updating {} in the last seen DB at {:?}", nickname, time_now);
println!("I'm now tracking {:?} people", last_seen_hash.len())
}
/ prezola.views.HomeView home
/404.html django.views.generic.base.TemplateView
/500.html django.views.generic.base.TemplateView
/__debug__/render_panel/ debug_toolbar.views.render_panel djdt:render_panel
/__debug__/sql_explain/ debug_toolbar.panels.sql.views.sql_explain djdt:sql_explain
/__debug__/sql_profile/ debug_toolbar.panels.sql.views.sql_profile djdt:sql_profile
/__debug__/sql_select/ debug_toolbar.panels.sql.views.sql_select djdt:sql_select
/__debug__/template_source/ debug_toolbar.panels.templates.views.template_source djdt:template_source
/about-us/ django.views.generic.base.RedirectView
/about-us/ django.views.generic.base.TemplateView about_us

Keybase proof

I hereby claim:

  • I am mr-bo-jangles on github.
  • I am giggaflop (https://keybase.io/giggaflop) on keybase.
  • I have a public key whose fingerprint is ED0B F379 F8D7 21E9 74E6 2C12 12EC 49F8 F58A C831

To claim this, I am signing this object:

// F3 - Add TFR Radios Function
// Credits: Please see the F3 online manual (http://www.ferstaberinde.com/f3/en/)
// ====================================================================================
// DECLARE VARIABLES
private["_unit", "_typeOfUnit", "_longRange","_radio1","_radio2","_radio3", "_backpackItems", "_sl_groups", "_sl_unit_group_index", "_ft_groups", "_ft_unit_group_index", "_unit_group", "_freq"];
_unit = player;