This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set Window Title | |
PS C:\> $Host.UI.RawUI.WindowTitle = "New Window Title" | |
# $Env | |
$Env:SOME_VAR="Some value" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set Window Title | |
PS C:\> $Host.UI.RawUI.WindowTitle = "New Window Title" | |
# $Env | |
$Env:SOME_VAR="Some value" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Speed up/slowdown - https://trac.ffmpeg.org/wiki/How%20to%20speed%20up%20/%20slow%20down%20a%20video | |
ffmpeg -i input.mkv -filter_complex "[0:v]setpts=0.5*PTS[v];[0:a]atempo=2.0[a]" -map "[v]" -map "[a]" output.mkv | |
ffmpeg -i input.mkv -filter:v "setpts=0.5*PTS" output.mkv | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* The onOpen function runs automatically when the Google Docs document is | |
* opened. | |
* | |
* More on `onOpen` and other trigger functions: https://developers.google.com/apps-script/guides/triggers/ | |
* More on `SpreadsheetApp` class: https://developers.google.com/apps-script/reference/spreadsheet/spreadsheet-app | |
*/ | |
function onOpen() { | |
// Add a menu with some items, some separators, and a sub-menu. | |
SpreadsheetApp.getUi().createMenu('Utilities') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export DISPLAY=:0 | |
SSH_AGENT_PID_SAVED=$SSH_AGENT_PID | |
eval `keychain --eval id_rsa id_dsa` | |
#if [ -z "$SSH_AGENT_PID_SAVED" ] | |
#then | |
setx SSH_AGENT_PID $SSH_AGENT_PID | |
setx SSH_AUTH_SOCK $SSH_AUTH_SOCK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# shortform git commands | |
alias g='git' | |
# count relevant lines of shell code in a git repo | |
egrep -v '^\s*($|#)' $(git grep -l '#!/bin/.*sh' *) | wc -l | |
# push all remotes | |
for i in `git remote`; do git push $i; done; | |
# cherry pick range of commits, starting from the tip of 'master', into 'preview' branch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -framerate 25/2 -f image2 -i img%%3d.jpg -filter:v "scale=1024:-1" -r 25 -loop 20 -final_delay 50 _out.mp4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -f image2 -i img%%3d.jpg -filter:v "scale=640:-1" -loop 20 -final_delay 50 _out.gif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Web requests in CPS style | |
// Victor Polozov (c) 2014 | |
// see WebR.getUrl function | |
module WebR | |
open System | |
open System.IO | |
open System.Net | |
open System.Text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Customer | |
open Shop | |
type ICalendar = | |
abstract member DayOfWeek : System.DayOfWeek | |
type Calendar() = | |
interface ICalendar with | |
member x.DayOfWeek = System.DateTime.Now.DayOfWeek |
NewerOlder