I hereby claim:
- I am calvinbui on github.
- I am calvinbui (https://keybase.io/calvinbui) on keybase.
- I have a public key whose fingerprint is CD3C 6C92 4DAB B3AE 7B66 6C7A 4C9B 02FB 07AF AA21
To claim this, I am signing this object:
#!/usr/bin/env python | |
"""Removes old backups keeping only the newest specified amount""" | |
import argparse | |
import glob | |
import os | |
import shutil | |
PARSER = argparse.ArgumentParser(description="Delete old backups") | |
PARSER.add_argument("-p", "--path", required=True, type=str, help="path where backups are stored") | |
PARSER.add_argument("-r", "--regex", required=True, type=str, help="pattern of backup folders to match") |
$Dir = get-childitem . | where {$_.extension -eq ".mp4"} | |
Foreach ($file in $Dir){ | |
$output = $file | % {$_.BaseName} | |
$input = $file | |
.\ffmpeg.exe -i "$input" -an -c:v libvpx -pix_fmt yuv420p -threads 4 -slices 8 -lag-in-frames 16 -auto-alt-ref 1 -ac 2 -c:a libvorbis -qmin 17 -crf 17 -qmax 17 -qcomp 1 -b:v 0 -qscale:a 10 -pass 1 -passlogfile "C:\Users\Calvin\AppData\Local\Temp\75b67ed3-075e-4eb7-b783-41b40406e7c4" -f webm -y "NUL" | |
.\ffmpeg.exe -i "$input" -c:v libvpx -pix_fmt yuv420p -threads 4 -slices 8 -lag-in-frames 16 -auto-alt-ref 1 -ac 2 -c:a libvorbis -qmin 17 -crf 17 -qmax 17 -qcomp 1 -b:v 0 -qscale:a 10 -pass 2 -passlogfile "C:\Users\Calvin\AppData\Local\Temp\75b67ed3-075e-4eb7-b783-41b40406e7c4" -f webm -y "$output.webm" | |
} |
#—————————————————————————— | |
# PowerShell console profile | |
# Calvin Bui | |
# Put at C:\Users\Calvin\Documents\WindowsPowerShell\profile.ps1 | |
# Then run as admin: Set-ExecutionPolicy -ExecutionPolicy Unrestricted |
M83 ; extruder relative mode | |
M104 S170 ; set extruder temp to 170 | |
M140 S[bed1_temperature] ; this will take the layer 1 temperature for bed 0 | |
M190 S[bed1_temperature] ; wait for bed temp | |
M109 S170 ; wait for extruder temp | |
G28 W ; home all without mesh bed level | |
M104 S[extruder0_temperature] T0 ; this will take the layer 1 temperature for extruder 0 | |
G80 ; mesh bed leveling | |
M109 S[extruder0_temperature] ; Heat extruder to print temp and wait | |
G1 Y-3.0 F1000.0 ; go outside print area |
M115 U3.1.1-RC4 ; tell printer latest fw version | |
M83 ; extruder relative mode | |
M140 S[first_layer_bed_temperature] ; set bed temp | |
M104 S170 ; set extruder temp to 170 | |
M190 S[first_layer_bed_temperature] ; wait for bed temp | |
M109 S170 ; wait for extruder temp | |
G28 W ; home all without mesh bed level | |
M104 S[first_layer_temperature] ; set extruder to print temp | |
G80 ; mesh bed leveling ie 9 points | |
M109 S[first_layer_temperature] ; Heat extruder to print temp and wait |
########### | |
# General # | |
########### | |
save-position-on-quit | |
keep-open | |
####### | |
# OSD # | |
####### | |
title='${path}' |
{ | |
"title": "Windows keys", | |
"rules": [{ | |
"description": "home/end except for iterm2/vim/outlook", | |
"manipulators": [{ | |
"type": "basic", | |
"from": { | |
"key_code": "end" | |
}, | |
"to": [{ |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# Download from bit.ly/finish-setup | |
# Check for root | |
if [ "$EUID" -ne 0 ] | |
then echo "Please run as root" | |
exit | |
fi |
language: c | |
sudo: false | |
branches: | |
except: | |
- /(untagged)/ | |
cache: | |
apt: true |