Skip to content

Instantly share code, notes, and snippets.

@deevus
deevus / gh-dl-release
Last active June 2, 2024 20:22 — forked from maxim/gh-dl-release
Download assets from private Github releases
#!/usr/bin/env bash
#
# gh-dl-release! It works!
#
# This script downloads an asset from latest or specific Github release of a
# private repo. Feel free to extract more of the variables into command line
# parameters.
#
# PREREQUISITES
#
@xioustic
xioustic / README.md
Last active June 29, 2018 21:25
Benchmarking FFMpeg Piped to VLC for Periscope Streams (HLS) on Windows

What is This

I wanted to pipe ffmpeg output to VLC on Windows which took a little while to figure out. ffmpeg cannot detect what format to use when piping, so I went through some obvious options but it was unclear what was best. So I wrote an extremely naive benchmarking script that would run a common stream for two minutes and then take the CPU/Memory usage data from tasklist /v before killing the two processes.

System Info

system

Proc: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz  3.39GHz
@gregorskii
gregorskii / facebook-scraper.conf.j2
Last active May 4, 2016 23:35
Enable Facebook Scrapers on NGINX using Ansible (Trellis Example) Per https://gist.github.com/ifnull/1ac3d9a20d827972d581be6d5ade96eb
# trellis/roles/nginx/templates/facebook-scraper.conf.j2
satisfy any;
allow 204.15.20.0/22;
allow 69.63.176.0/20;
allow 66.220.144.0/20;
allow 66.220.144.0/21;
allow 69.63.184.0/21;
allow 69.63.176.0/21;
allow 74.119.76.0/22;
@bastman
bastman / docker-cleanup-resources.md
Created March 31, 2016 05:55
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

@ifnull
ifnull / REAME.md
Created July 16, 2014 00:08
SSH tunneling for web admin access to Solr

Introduction

You have SSH access to a server and need to access a web admin (or any protocol) on a non-public port.

For example, you want to access a Solr admin on port 8983 but the server's firewall only allows port 80 and 22. Rather than opening a port in the server's firewall we can just create a SSH tunnel.

Setup

@natelandau
natelandau / .bash_profile
Last active June 13, 2024 18:01
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@ifnull
ifnull / gist:9614867
Created March 18, 2014 06:57
PIN numbers sorted by probability.
1234
0000
1111
2580
1212
5555
2222
6969
7777
5683
@rickbenetti
rickbenetti / head.phtml
Last active September 7, 2023 07:41
Add header rich snippets to your Magento Store
<?php
/**
*
* Copyright (c) 2013 Studio Boz
*
* @project_name Studio Boz
* @copyright Copyright (c) 2013 Studio Boz (http://studioboz.com.br)
* @author Rick Benetti <rick@studioboz.com.br>
*
**/
first
@ifnull
ifnull / gist:4570012
Last active December 11, 2015 07:58
List running virtual boxes to shutdown busted vagrant boxes
VBoxManage list runningvms
VBoxManage controlvm {foobar} poweroff