Skip to content

Instantly share code, notes, and snippets.

@joconsol
joconsol / movie.2.gif.md
Created May 11, 2021 21:03
Convert movies to gif in OS X Mac

#OS X Movie to animated GIF

ffmpeg -i movie-name.mp4 -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=0 --delay=3 > movie-name.gif

##Options

  • -r 10 tells ffmpeg to reduce the frame rate from 25 fps to 10
  • -s 600x400 tells ffmpeg the max-width and max-height
@joconsol
joconsol / EnableTls12ClientForDotNet.ps1
Created January 4, 2021 09:17 — forked from tivrobo/EnableTls12ClientForDotNet.ps1
Configure the .NET Framework to support TLS 1.2
#
# https://docs.microsoft.com/en-us/mem/configmgr/core/plan-design/security/enable-tls-1-2-client#bkmk_net
# you need to reboot the OS for the new settings to take effect
#
function AddRegValue {
param (
$Path,
$Name,
$Value,
@joconsol
joconsol / exchange_msg_trak_dash_v1.json
Created November 4, 2015 04:31 — forked from elijahpaul/exchange_msg_trak_dash_v1.json
Exchange Server message tracking dashboard (Kibana)
{
"title": "Exchange Message Tracking Logs",
"services": {
"query": {
"list": {
"0": {
"id": 0,
"color": "#7EB26D",
"alias": "Messages Sent (Internal)",
"pin": true,
/*
This example shows how you can use your data structure as a basis for
your Firebase security rules to implement role-based security. We store
each user by their Twitter uid, and use the following simplistic approach
for user roles:
0 - GUEST
10 - USER
20 - MODERATOR
  1. General Background and Overview
$logfile = "C:\admin\LOGS\CW-Monitoring-Install_log_$(get-date -format 'yyyyMMdd_hhmmsstt').txt"
function log($string, $color)
{
if ($Color -eq $null) { $color = "gray" }
write-host ($string + ' ' + $(get-date -format 'hhmmsstt')) -foregroundcolor $color
($string + ' ' + $(get-date -format 'hhmmsstt')) | out-file -Filepath $logfile -append
}
'''
@author Bommarito Consulting, LLC; http://bommaritollc.com/
@date 20131029
This script monitors and logs to CSV the status of all tunnels for all VPNs for a single EC2 region.
'''
# Imports
import boto
import boto.ec2
import boto.vpc
@joconsol
joconsol / README.md
Last active August 29, 2015 14:10 — forked from s0enke/README.md

This is an adjusted version of EC2 CloudWatch stats for Dashing which is not bound to EC2 metrics but a generic widget for cloudwatch graphs. Visualization is done by Rickshawgraph as in the original example.