Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Jobs;
using BenchmarkDotNet.Running;
$inputFolderPath = $args[0]
Get-ChildItem $inputFolderPath -Filter *.mov |
Foreach-Object {
$inputFilePath = $_.FullName;
$outputWavPath = [System.IO.Path]::Combine([System.IO.Path]::GetDirectoryName($inputFilePath), [System.IO.Path]::GetFileNameWithoutExtension($inputFilePath) + ".wav")
$outputM4aPath = [System.IO.Path]::Combine([System.IO.Path]::GetDirectoryName($inputFilePath), [System.IO.Path]::GetFileNameWithoutExtension($inputFilePath) + ".m4a")
$outputMp4Path1 = [System.IO.Path]::Combine([System.IO.Path]::GetDirectoryName($inputFilePath), [System.IO.Path]::GetFileNameWithoutExtension($inputFilePath) + "1"+ ".mp4")
$outputMp4PathFinal = [System.IO.Path]::Combine([System.IO.Path]::GetDirectoryName($inputFilePath), [System.IO.Path]::GetFileNameWithoutExtension($inputFilePath) + ".mp4")
ffmpeg.exe -i $inputfilePath -vn -acodec copy $outputWavPath
qaac64.exe $outputWavPath -v 0 -q 2 -o $outputM4aPath
$subDomain = "redacted";
$rootDomain = "redacted";
$zoneName = $rootDomain
$resourceGroupName = $rootDomain
$secret = 'redacted';
$tenantId = 'redacted';
$applicationId = 'redacted';
$password = ConvertTo-SecureString $secret -AsPlainText -Force
$credential = New-Object System.Management.Automation.PSCredential ($applicationId, $password)
@prajaybasu
prajaybasu / windscribe-ikev2.txt
Last active February 3, 2022 20:51
Add all WS VPNs to Windows 10. Have both files in the same folder
<select id="location" name="location,
<option>Choose Location
us-central.windscribe.com,US Central
us-east.windscribe.com,US East
us-west.windscribe.com,US West
wf-us.windscribe.com,WINDFLIX US
ca.windscribe.com,Canada East
ca-west.windscribe.com,Canada West
wf-ca.windscribe.com,WINDFLIX CA
at.windscribe.com,Austria

Keybase proof

I hereby claim:

  • I am prajaybasu on github.
  • I am prajaybasu (https://keybase.io/prajaybasu) on keybase.
  • I have a public key ASD_rXhxktRjYUAPdsXim3KZdCp62B66LzJTbKZkbd5vDgo

To claim this, I am signing this object:

@prajaybasu
prajaybasu / Program.cs
Last active September 30, 2018 02:06
GuessTheNumber
using System;
namespace GuessTheNumber
{
class Program
{
const int MinRandomValue = 0;
const int MaxRandomValue = 25;
static readonly int RandomNumber = new Random().Next(MinRandomValue, MaxRandomValue + 1);
@prajaybasu
prajaybasu / Convert.cs
Last active September 24, 2018 16:10
Int32 Parsing differences
public static int Convert.ToInt32(string value)
{
if (value == null) return 0;
return Int32.Parse(value, CultureInfo.CurrentCulture);
}
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/exif-js/2.3.0/exif.min.js"></script>
<script>
window.onload = getExif("1535556934547.jpg");
function getExif(src) {
var img = new Image();
img.src = src;
img.onload = function () {
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Django Forms Tutorial</title>
</head>
<body>
<h2>Django Forms Tutorial</h2>
<form name="myForm">
<table>
using System;
using System.Security.Cryptography;
using System.Text;
using System.Runtime.InteropServices;
using System.Numerics;
using System.Runtime.CompilerServices;
namespace Scrypt
{
public static class Scrypt