Skip to content

Instantly share code, notes, and snippets.

View kimslawson's full-sized avatar

Kim Slawson kimslawson

View GitHub Profile
@kimslawson
kimslawson / change_wallpaper
Last active July 19, 2022 09:53 — forked from ameintjes/change_wallpaper
Use the recent "Astronomy Picture of the Day" by NASA as your desktop wallpaper (Updated to use Python3, tested on macOS 12.4 Monterey)
#!/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
@kimslawson
kimslawson / karabiner.json
Created June 23, 2018 12:52
Karabiner-elements config for Drevo Calibur - disable built-in kb and remap some keys
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"parameters": {
@kimslawson
kimslawson / keybase.md
Created February 6, 2016 18:00
Github Keybase identity proof

Keybase proof

I hereby claim:

  • I am kimslawson on github.
  • I am kimslawson (https://keybase.io/kimslawson) on keybase.
  • I have a public key whose fingerprint is F24A 0B36 BBFC 94E4 BC5D 8ADF 0CB0 C09F BCDA E9AF

To claim this, I am signing this object:

Revised: November 25, 2013

Between us (Kernel Panic Consulting) and you (Company Name)

Contract for website design, development and hosting

Summary

We’ll always do our best to fulfill your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We have no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.

@kimslawson
kimslawson / johanson-searchbar.css
Created July 19, 2013 23:07
Search bar CSS transforms and associated JS/jQuery for jboatworks.com search field. See http://jboatworks.com for it in action. Click/tap in the search field, enter a search query, and/or click/tap outside the field to see the transform.
/********************
SEARCH BAR
********************/
div#searchBar {
right: 411px;
position: absolute;
background-color: transparent;
top: 21px;
height: 22px;
border: 1px solid transparent;
@kimslawson
kimslawson / xkcd-passphrase-generator-acrostic.py
Created July 19, 2013 22:58
Acrostic function for generating passphrases, contributed to https://github.com/redacted/XKCD-password-generator
def find_acrostic(acrostic, wordlist):
"""
Constrain choice of words to those beginning with the letters of the given word (acrostic)
"""
"""
# slower but more elegant. "pythonic"
while 1:
words = " ".join(rng().sample(wordlist, n_words))
if acrostic.lower() == "".join(item[0] for item in words.split()).lower():