Skip to content

Instantly share code, notes, and snippets.

View speedoholic's full-sized avatar
👨‍💻
Exploring SwiftUI

Kushal Ashok speedoholic

👨‍💻
Exploring SwiftUI
View GitHub Profile
@speedoholic
speedoholic / prepare_combine_ffmpeg.ps1
Created February 15, 2026 01:22
PowerShell Script to Prepare and Combine MP4 files using FFmpeg
# PowerShell Script to Prepare Files and Combine Them Using FFmpeg (https://ardalis.com/combine-mp4-files-ffmpeg-windows/)
try {
# Step 1: Get all .mp4 files in the current folder and check the total duration
$files = Get-ChildItem -Filter *.mp4
# Check if there are no .mp4 files in the folder
if ($files.Count -eq 0) {
Write-Host "No .mp4 files found in the current folder. Exiting script."
exit
@speedoholic
speedoholic / automateRequests.js
Last active June 23, 2019 17:01
Don't want to pay for those browser extensions that help you add more connections on LinkedIn? Use this snippet while you are on the "search/results/people/" page and filters are applied to get "People" who are "2nd" or "3rd+" connections. Feel free to optimize it or add more functionalities.
function clickSend(x,i) {
var y = document.getElementsByClassName('artdeco-button--3 ml1');
if(y.length > 0) {
y[0].click();
console.log("Request sent for index: "+ i)
setTimeout(function(){
clickConnect(x,i+1);
}, 1000);
} else {
console.log("Button not found for index: " + i)
@speedoholic
speedoholic / Reachability+NetworkType.swift
Last active March 11, 2019 13:21 — forked from floriankrueger/Reachability+NetworkType.swift
Getting the current network connection type through Reachability and CoreTelephony (based on https://stackoverflow.com/a/36451194/766873)
//
// ReachabilityHelper.swift
// TradeX
//
// Created by Kushal Ashok on 1/11/19.
//
import Reachability //https://cocoapods.org/pods/ReachabilitySwift
import CoreTelephony