Skip to content

Instantly share code, notes, and snippets.

@mikoim
mikoim / README.md
Last active September 24, 2024 12:41
[Updated! Aug 14 2020] YouTube recommended encoding settings on ffmpeg (+ libx264)

Parameters

Container: MP4

Parameter YouTube recommends setting
-movflags faststart moov atom at the front of the file (Fast Start)

Video codec: H.264

@sahilsk
sahilsk / Instructions-ssh-tunneling-upstart.md
Last active March 9, 2017 07:42
ssh tunneling upstart script. Tags: upstart, ssh, tunnel, init

Instructions

  • Create upstart file

    vim /etc/init/create_tunnel.conf

  • Start the script

@drmalex07
drmalex07 / README-setup-tunnel-as-systemd-service.md
Last active October 1, 2024 07:50
Setup a secure (SSH) tunnel as a systemd service. #systemd #ssh #ssh-tunnel #ssh-forward

README

Create a template service file at /etc/systemd/system/secure-tunnel@.service. The template parameter will correspond to the name of target host:

[Unit]
Description=Setup a secure tunnel to %I
After=network.target
@MartinNowak
MartinNowak / OSX-10.8.ova
Last active October 11, 2022 21:16
curl follow redirects
@jhafner
jhafner / jquery-to-vanilla-js.md
Created December 16, 2013 17:52 — forked from harmstyler/moving_from_jquery.md
jQuery methods in vanilla JavaScript.

Moving from jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
@joyrexus
joyrexus / README.md
Last active October 7, 2024 02:12 — forked from liamcurry/gist:2597326
Vanilla JS equivalents of jQuery methods

Sans jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
@earthgecko
earthgecko / bash.generate.random.alphanumeric.string.sh
Last active October 16, 2024 20:10
shell/bash generate random alphanumeric string
#!/bin/bash
# bash generate random alphanumeric string
#
# bash generate random 32 character alphanumeric string (upper and lowercase) and
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
# bash generate random 32 character alphanumeric string (lowercase only)
cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 32 | head -n 1