Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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 / 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