Skip to content

Instantly share code, notes, and snippets.

View LeeWarnock's full-sized avatar
🤠
Portfolioing

Lee Warnock LeeWarnock

🤠
Portfolioing
View GitHub Profile
@LeeWarnock
LeeWarnock / change_wallpaper
Created November 13, 2022 21:51 — forked from ameintjes/change_wallpaper
Use the recent "Astronomy Picture of the Day" by NASA as your desktop wallpaper (Python script for Mac OS X, should be easy do adapt for Linux or Windows)
#!/usr/bin/python
# Downloads the current "Astronomy Picture of the Day" from nasa.gov and sets as wallpaper
#
# Installation steps:
# - store this file somewhere and take note of the path
# - change WALLPAPER_DIR to some folder in your home directory
# and create the folder
# - make it executable:
# chmod a+x /path/to/change_wallpaper
# - follow instructions given in the .plist file to make it run daily
@LeeWarnock
LeeWarnock / Dockerfile
Created February 3, 2022 18:41 — forked from danopia/Dockerfile
ERCOT Frozen Grid 2021 - Metrics Reporters
FROM hayd/alpine-deno:1.10.1
WORKDIR /src/app
ADD deps.ts ./
RUN ["deno", "cache", "deps.ts"]
ADD *.ts ./
RUN ["deno", "cache", "mod.ts"]
ENTRYPOINT ["deno", "run", "--unstable", "--allow-net", "--allow-hrtime", "--allow-env", "--cached-only", "--no-check", "mod.ts"]
@LeeWarnock
LeeWarnock / index.html
Created August 6, 2020 01:48
Quentin's Interests
<div>
<h1>Quentin's Page of Interests</h1>
<p>The world wants to know: who is Quentin Ruiz-Esparza? Read this page to learn about Quentin's likes (and maybe his dislikes)!</p>
</div>
<div>
<h2>What's Your Top 5?</h2>
<p>Quentin was recently asked about his top 5 movies, musicians, and places he has visited. Here are his answers!</p>
<h3>Movies</h3>
<h3>Music Artists</h3>
<h3>Places I've Visited</h3>
@LeeWarnock
LeeWarnock / Install Full Kali Linux from Default Raspberry Pi install of Kali Lite
Last active November 30, 2023 04:08
Install Kali Full onto Raspberry Pi via Berryboot
This assumes Berryboot is installed:
1. From berryboot menu, install Kali Lite
2. Boot into Kali Lite
3. Open Terminal
Remove the sana repo from the sources.list
4. cd /etc/apt
5. rm sources.list
## How to hide API keys from github ##
1. If you have already pushed commits with sensitive data, follow this guide to remove the sensitive info while
retaining your commits: https://help.github.com/articles/remove-sensitive-data/
2. In the terminal, create a config.js file and open it up:
touch config.js
atom config.js
@LeeWarnock
LeeWarnock / draw_neural_net.py
Created November 10, 2017 10:25 — forked from craffel/draw_neural_net.py
Draw a neural network diagram with matplotlib!
import matplotlib.pyplot as plt
def draw_neural_net(ax, left, right, bottom, top, layer_sizes):
'''
Draw a neural network cartoon using matplotilb.
:usage:
>>> fig = plt.figure(figsize=(12, 12))
>>> draw_neural_net(fig.gca(), .1, .9, .1, .9, [4, 7, 2])
@LeeWarnock
LeeWarnock / getBlockLists.sh
Created October 7, 2017 00:27 — forked from johntyree/getBlockLists.sh
Make one large blocklist from the bluetack lists on iblocklist.com
#!/usr/bin/env sh
# Download lists, unpack and filter, write to stdout
curl -s https://www.iblocklist.com/lists.php \
| sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \
| xargs wget -O - \
| gunzip \
| egrep -v '^#'
@LeeWarnock
LeeWarnock / .sails-and-passport.md
Created September 27, 2016 01:51 — forked from RunnerRick/.sails-and-passport.md
How To Integrate Sails and Passport
@LeeWarnock
LeeWarnock / random-giphy-bg.html
Created August 25, 2016 01:48 — forked from dmerand/random-giphy-bg.html
HTML Template for Random Animated Gif Background Using Giphy
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
<script>
$(function() {
var xhr = $.get("http://api.giphy.com/v1/gifs/random?api_key=dc6zaTOxFJmzC");
xhr.done(function(data) {
$('.gif-bg').css('background-image', 'url(' + data.data.image_url + ')');
});