-i
- ignore errors
-c
- continue
-t
- use video title as file name
--extract-audio
- extract audio track
//ISODate struct | |
type ISODate struct { | |
Format string | |
time.Time | |
} | |
//UnmarshalJSON ISODate method | |
func (Date *ISODate) UnmarshalJSON(b []byte) error { | |
var s string | |
if err := json.Unmarshal(b, &s); err != nil { |
# Fabfile to: | |
# - update the remote system(s) | |
# - download and install an application | |
from fabric import Connection | |
from fabric import task | |
import os | |
import environ | |
root = environ.Path(__file__) - 1 # one folder back (/manage - 3 = /) |
/** | |
* Cryptography Functions | |
* | |
* Forked from AndiDittrich/AesUtil.js | |
* https://gist.github.com/AndiDittrich/4629e7db04819244e843 | |
*/ | |
import crypto, { CipherGCM, CipherGCMTypes, DecipherGCM } from 'crypto'; | |
import { Password } from './types'; |
/* | |
Paraphrased from RFC 4122: | |
The formal definition of the UUID string representation is | |
provided by the following ABNF: | |
UUID = time-low "-" time-mid "-" | |
time-high-and-version "-" | |
clock-seq-and-reserved | |
clock-seq-low "-" node |
#!/bin/bash | |
# | |
#This script assumes very little other than a fresh Ubuntu install (using the Windows store) on Win10 1709 or newer with WSL installed already | |
#In Powershell, run the following to install WSL and Ubuntu | |
# | |
#Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux | |
#Invoke-WebRequest -Uri https://aka.ms/wsl-ubuntu-1604 -OutFile ~/Ubuntu.zip -UseBasicParsing | |
#Expand-Archive ~/Ubuntu.zip ~/Ubuntu | |
#~/Ubuntu/ubuntu.exe | |
# |
using System; | |
using System.Collections.Generic; | |
namespace PrettifyStackTrace | |
{ | |
public class Stacky | |
{ | |
public string ExceptionType { get; set; } | |
public string Method { get; set; } | |
public string FileName { get; set; } |
# Login to AWS registry (must have docker running) | |
docker-login: | |
$$(aws ecr get-login --no-include-email --region us-east-1 --profile=mycompany) | |
# Build docker target | |
docker-build: | |
docker build -f Dockerfile --no-cache -t mycompany/myapp . | |
# Tag docker image | |
docker-tag: |
using System.Threading.Tasks; | |
using System.IO.MemoryMappedFiles; | |
using System.Runtime.InteropServices; | |
using System.Security.Cryptography; | |
using System.Runtime.Serialization; | |
using System.Runtime.Serialization.Formatters.Binary; | |
async Task Main() | |
{ | |
using (var channel = DemoServer()) |
#!/bin/bash | |
# ------------------------------------------------------------------------------ | |
# FILE: autossh | |
# DESCRIPTION: This is an SSH-D proxy with auto-reconnect on disconnect | |
# AUTHOR: Hector Nguyen (hectornguyen at octopius dot com) | |
# VERSION: 1.0.0 | |
# ------------------------------------------------------------------------------ | |
VERSION="1.0.0" | |
GITHUB="https://github.com/hectornguyen/autossh" | |
AUTHOR="Hector Nguyen" |