Skip to content

Instantly share code, notes, and snippets.

@windyinsc
windyinsc / enable-touch-id-for-sudo.md
Created November 19, 2020 20:16
macOS - Enable Touch ID for sudo

Enable Touch ID for sudo

Thanks to this awesome Six Colors post: Quick Tip: Enable Touch ID for sudo

The short of it:

  1. In your terminal go to cd /etc/pam.d/.
  2. Now open the sudo file with your favorite command-line/GUI text editor.
    • Note that if you open it via the command-line, you’ll need to use sudo itself to do so, since the file is (understandably) protected.
  3. With the sudo file open, add the following command below below the first line. auth sufficient pam_tid.so
@windyinsc
windyinsc / index.html
Last active May 21, 2019 01:00
Oklahoma City Tornado Outbreak
<div class="flex-row">
<div class="video-div">
<span>NEWS 9 Broadcast</span>
<video controls muted autoplay id="video1"></video>
</div>
<div class="video-div">
<span>NEWS 9 Helicopter</span>
<video controls muted autoplay id="video6"></video>
</div>
@windyinsc
windyinsc / bsitowu.py
Created March 24, 2018 22:19 — forked from cmplant3210/bsitowu.py
BloomSky image uploader for Wunderground. Set cron job to upload as often as you'd like.
import urllib.request
import json
import ftplib
url = 'http://api.bloomsky.com/api/skydata/'
api = '<insert your api from dashboard.bloomsky.com>'
req = urllib.request.Request(url,headers={'Authorization':api})
response = urllib.request.urlopen(req)
@windyinsc
windyinsc / Modify PATH
Created October 21, 2017 09:35 — forked from nellynette/Modify PATH
nothing new. just to remember some commands on OS X
#to set the variable PATH to the value /bin:/sbin:/user/bin:/user/sbin:/system/Library/, you would enter the following command in a Terminal window:
$ PATH=/bin:/sbin:/user/bin:/user/sbin:/system/Library/ export PATH
#This modifies the environment variable PATH with the value assigned.
#To view all environment variables, enter:
$ env
@windyinsc
windyinsc / Brewfile
Created September 23, 2017 11:54 — forked from lludlow/Brewfile
brewfile
##
# Brewfile by Joel Parker Henderson and SixArm.com
#
# CAUTION: THIS IS A WORK IN PROGRESS. USE AT YOUR OWN RISK.
#
# We use this Brewfile for our teams and their developer laptops.
#
# This file installs many apps, including office suites, multimedia suites,
# programming langauges and IDEs, unix utilities, and sysadmin tools.
#
@windyinsc
windyinsc / gist:5e9824ccc5045566e2a4243d2e9e3ee4
Created September 5, 2017 02:20 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@windyinsc
windyinsc / env_variables.md
Created August 17, 2017 14:16
What the hell is env variables and how to add to path
@windyinsc
windyinsc / ffmpeg-cheatsheet.md
Last active September 7, 2023 12:15 — forked from larvata/ffmpeg-cheatsheet.md
ffmpeg notes

ffmpeg Cheatsheet

  • Join TS Files
  • Convert TS to MP4
  • Download Online AES-128 Encrypted HLS video
  • Convert Video to GIF
  • Extract Audio and Convert it to MP3
  • Burn Subtitles into Video

Join TS Files

@windyinsc
windyinsc / _verify-repair-permissions-disk.md
Created April 15, 2017 14:23 — forked from bzerangue/_verify-repair-permissions-disk.md
Mac OS X Utilities via Terminal: (Verify and Repair: Disk Permissions AND Disk / Software Update / TimeMachine)

Verify and Repair Disk Permissions via Terminal (Mac OS X)

Verify Permissions

diskutil verifyPermissions /

Repair Permissions

diskutil repairPermissions /

@windyinsc
windyinsc / vlc_ts_error_fix.md
Created March 19, 2017 00:12
Fix for VLC: ts error: libdvbpsi error (PSI decoder): TS duplicate

FIX FOR VLC ERROR BELOW

The following changes to VLC were successful in fixing all playback issues.

  • VLC Version 2.2.4 Weatherwax (Intel 64bit) on OS X 10.9

ISSUE:

ts error: libdvbpsi error (PSI decoder): TS duplicate (received 0, expected 1) for PID 0 ts error: libdvbpsi error (PSI decoder): TS duplicate (received 0, expected 1) for PID 4095