Referenced here:
https://msdn.microsoft.com/en-us/library/aa719104(v=vs.71).aspx
- Use ref keyword for inout params
- Use out keyword for out params
| Windows Data Type | .NET Data Type |
Referenced here:
https://msdn.microsoft.com/en-us/library/aa719104(v=vs.71).aspx
| Windows Data Type | .NET Data Type |
#!/bin/sh | |
# | |
# Batch transcode mp4 files from a directory, | |
# set bitrate, and output to another directory. | |
# User-defined parameters | |
INPUT_DIR="/home/user/Videos/pre" | |
OUTPUT_DIR="/home/user/Videos/post" | |
MEDIA_EXTENSION="mp4" | |
TARGET_BITRATE_VIDEO="8M" |
package main | |
import ( | |
"fmt" | |
"encoding/json" | |
"github.com/gorilla/mux" | |
"log" | |
"net/http" | |
) |
# NodeJS v6 official image | |
FROM node:boron | |
EXPOSE 8080 | |
EXPOSE 9229 | |
WORKDIR /opt/app | |
RUN npm install -g node-sass grunt grunt-cli grunt-sass |
#include <iostream> | |
#include <thread> | |
#include <windows.h> | |
#include <conio.h> | |
const WORD keyCodes[4] = { | |
0x51, // Q | |
0x57, // W | |
0x45, // E |
[Install] | |
WantedBy=multi-user.target | |
[Unit] | |
Description=Google Cloud Compute Engine SQL Proxy | |
Requires=network.target | |
After=network.target | |
[Service] | |
Type=simple |
Download and install binary here: https://github.com/rg3/youtube-dl
youtube-dl.exe -f "best[ext=mp4]" --no-check-certificate <VIDEO URL>
youtube-dl.exe -f "worstvideo[ext=mp4]" --no-check-certificate
#!/bin/bash | |
# | |
# Summary: | |
# Exeucute Node.JS projects with 'long path' npm dependancies | |
# while using Vagrant on Windows | |
# | |
# Description: | |
# Vagrant with a Windows host and a Linux guest has issues with | |
# very long paths between shared folders. The goal of this script | |
# is to solve the problem by copying, syncing, and updating dependancies |
while read fileLine; do echo "Exporting ${fileLine}...\n"; export ${fileLine}; done < secrets.env | |
// EX: secrets.env | |
// MY_VAR=123 | |
// MY_API_KEY=ASDFKJDSFJL234545 |