Skip to content

Instantly share code, notes, and snippets.

View mirez's full-sized avatar

Alberto Ramirez mirez

View GitHub Profile
@mirez
mirez / install_hp_printer_drivers.sh
Last active September 24, 2023 19:16 — forked from garry-jeromson/install_hp_printer_drivers.sh
Install HP printer drivers on macOS 13.4 Ventura
#!/bin/bash
curl -o ~/Downloads/hpdrivers.dmg https://updates.cdn-apple.com/2020/macos/001-41745-20201210-DBC9B46B-88B2-4032-87D9-449AF1D20804/HewlettPackardPrinterDrivers.dmg
hdiutil attach ~/Downloads/hpdrivers.dmg
pkgutil --expand /Volumes/HP_PrinterSupportManual/HewlettPackardPrinterDrivers.pkg ~/Downloads/hp-expand
hdiutil eject /Volumes/HP_PrinterSupportManual
FROM public.ecr.aws/lambda/dotnet:5.0
#You can alternately also pull these images from DockerHub amazon/aws-lambda-dotnet:5.0
# Copy function code
COPY net5-lambda-template/bin/Debug/net5.0 ${LAMBDA_TASK_ROOT}
# Set the CMD to your handler (could also be done as a parameter override outside of the Dockerfile)
CMD [ "net5-lambda-template::net5_lambda_template.LambdaFunction::Handler" ]
@mirez
mirez / GIF-Screencast-OSX.md
Created October 29, 2019 16:58 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

<appender name="GraphiteUdpAppender" type="log4net.Appender.UdpAppender">
<remoteAddress value="graphiteserver.somewhere.com"/>
<remotePort value="8125"/>
<layout type="log4net.Layout.PatternLayout">
<IgnoresException value="False"/>
<conversionPattern value="%property{log4net:HostName}.log4net.%level:1|kv\n"/>
</layout>
</appender>
<!-- Remember to add the appender to the root