Skip to content

Instantly share code, notes, and snippets.

👨‍💻
Gone corporate

Harrison Lingren harrisonlingren

👨‍💻
Gone corporate
Block or report user

Report or block harrisonlingren

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View slack_button.py
from gpiozero import Button
from signal import pause
import sys, requests, json
pressed_count = 0
webhook_url = 'YOUR-WEBHOOK'
message = 'Hello, world!'
# action to perform on press
def DoAction():
@harrisonlingren
harrisonlingren / export-frames.sh
Last active Dec 5, 2017
Batch convert video files to frames
View export-frames.sh
#!/bin/bash
# Batch convert video files to frames
# script by Harrison Lingren
for file in Video/*;
do
echo "> Parsing file: $file";
if [ ! -d "${file:6:4}" ]; then
echo "> Creating directory ${file:6:4}...";
@harrisonlingren
harrisonlingren / fix_windows.bat
Last active Oct 23, 2019
A script to fix Windows 10 shit
View fix_windows.bat
@rem *** Disable Some Service ***
sc stop DiagTrack
sc stop diagnosticshub.standardcollector.service
sc stop dmwappushservice
sc stop WMPNetworkSvc
sc stop WSearch
sc config DiagTrack start= disabled
sc config diagnosticshub.standardcollector.service start= disabled
sc config dmwappushservice start= disabled
@harrisonlingren
harrisonlingren / twitter_gradient.css
Created Apr 7, 2017
nice blue gradient from twitter
View twitter_gradient.css
<style>
div { width:100%; height:100%; }
.layer-1 { width:1500px; height:500px; }
.layer-1{
background: -moz-linear-gradient(140deg, rgba(105,255,255,1) 0%, rgba(1,68,159,1) 100%);
background: -webkit-linear-gradient(140deg, rgba(105,255,255,1) 0%, rgba(1,68,159,1) 100%);
background: -o-linear-gradient(140deg, rgba(105,255,255,1) 0%, rgba(1,68,159,1) 100%);
background: -ms-linear-gradient(140deg, rgba(105,255,255,1) 0%, rgba(1,68,159,1) 100%);
background: linear-gradient(310deg, rgba(105,255,255,1) 0%, rgba(1,68,159,1) 100%);
}
View keybase.md

Keybase proof

I hereby claim:

  • I am harrisonlingren on github.
  • I am hlingren (https://keybase.io/hlingren) on keybase.
  • I have a public key whose fingerprint is 8ADA 31D8 958F 48E3 5EBA ECF7 1145 E61C D4FA 687C

To claim this, I am signing this object:

You can’t perform that action at this time.