Skip to content

Instantly share code, notes, and snippets.

View harrisonlingren's full-sized avatar

Harrison Lingren harrisonlingren

View GitHub Profile

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 21FA C3E1 221B AF13 72D9 7DD0 08AC 516A 1FC9 D42C

To claim this, I am signing this object:

@harrisonlingren
harrisonlingren / twitter_gradient.css
Created April 7, 2017 05:10
nice blue gradient from twitter
<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%);
}
@harrisonlingren
harrisonlingren / fix_windows.bat
Last active February 5, 2022 20:25
A script to fix Windows 10 shit
@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 / export-frames.sh
Last active December 5, 2017 00:00
Batch convert video files to frames
#!/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}...";
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():