Skip to content

Instantly share code, notes, and snippets.

View carthik's full-sized avatar
WTB FIFO brain, PST.

Carthik Sharma carthik

WTB FIFO brain, PST.
View GitHub Profile
@ruanbekker
ruanbekker / cheatsheet-elasticsearch.md
Last active September 17, 2025 09:41
Elasticsearch Cheatsheet : Example API usage of using Elasticsearch with curl
@natemccurdy
natemccurdy / disable_firewall.pp
Created October 22, 2015 17:17
Puppet profiles for managing basic Windows settings
# This will disable the windows firewall
#
# Requires: puppetlabs/registry
#
class profile::windows::disable_firewall {
registry::value { 'Disable DomainProfile firewall':
key => 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SharedAccess\Parameters\FirewallPolicy\DomainProfile',
value => 'EnableFirewall',
data => '0',
@jeffpatton1971
jeffpatton1971 / Get-WinEventTail.ps1
Last active December 14, 2023 16:59
This function will allow you to tail Windows Event Logs. You specify a Logname for either the original logs, Application, System and Security or the new format for the newer logs Microsoft-Windows-PowerShell/Operational
Function Get-WinEventTail
{
<#
.SYNOPSIS
A tail cmdlet for Eventlogs
.DESCRIPTION
This function will allow you to tail Windows Event Logs. You specify
a Logname for either the original logs, Application, System and Security or
the new format for the newer logs Microsoft-Windows-PowerShell/Operational
.PARAMETER LogName
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active October 31, 2025 16:45
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: