function ffsilent { ffmpeg -i "$1" -c copy -an "${1%.*}-nosound.${1#*.}" }
# Define an alias | |
# | |
# Set-Alias -Name backup-svn -Value { | |
# Param( | |
# [Alias('S')] | |
# [Parameter(Mandatory = $true)] | |
# [string] $SourcePath, | |
# [Alias('D')] | |
# [Parameter(Mandatory = $true)] | |
# [string] $DestinationPath |
Taken from https://gist.github.com/lttlrck/9628955
Rename a branch both locally and on server.
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
git log --oneline -10 # Managable git log.
/** Taken from Andrew Burgess YT video */ | |
// https://www.youtube.com/watch?v=_1mQ_A7fq-g | |
function logged< | |
This, | |
Args extends any[], | |
Return, | |
Fn extends (this: This, ...args:Args) => Returns> | |
( | |
target: Fn, |
// Place your key bindings in this file to override the defaults | |
[ | |
// -- GENERAL SETUP | |
// | |
// I hate lru tab switching. Use `ctrl+p+p` for that. | |
{ | |
"key": "ctrl+tab", | |
"command": "workbench.action.nextEditor" | |
}, | |
{ |
I want Microsoft to do better, want Windows to be a decent development platform-and yet, I constantly see Microsoft playing the open source game: advertising how open-source and developer friendly they are - only to crush developers under the heel of the corporate behemoth's boot.
The people who work at Microsoft are amazing, kind, talented individuals. This is aimed at the company's leadership, who I feel has on many occassions crushed myself and other developers under. It's a plea for help.
You probably haven't heard of it before, but if you've ever used win32 API bindings in C#, C++, Rust, or other languages, odds are they were generated from a repository called microsoft/win32metadata.
<?php | |
class HashSet | |
{ | |
// PHP arrays are organized trees under the hood, also php provides better api's for dealing with keys. | |
// Hence we will use an arrays use it's keys for storing our nodes. Note PHP Arrays are always associative arrays. | |
private $set = []; | |
public function __construct($keys = []) |
#!/usr/bin/env bash | |
# Script to update dart-sass from official github release. | |
# Copyright (C) 2021 Abhinav Kulshreshtha | |
# Changelog | |
# 26th january 2024 fix for new URL format and recommended binary path practice. | |
# 05th october 2021 "updated with proper url" |
#!/usr/bin/env bash | |
# shellcheck disable=SC2034,SC2086,SC2155,SC2001,SC2048 | |
# | |
# Search file contents (by file extension) for the specified search term. | |
# | |
# grep options: | |
# | |
# -i Perform case insensitive matching. | |
# −r Recursively search subdirectories listed. |