Skip to content

Instantly share code, notes, and snippets.

View gh0st's full-sized avatar

Chad Hollman gh0st

  • Oregon, United States
View GitHub Profile
@gh0st
gh0st / pi-web-browser-in-kiosk-mode.md
Last active February 4, 2021 15:43
Write up on how one might set up a pi to launch only a browser, putting it in a "kiosk" mode.

Set up a pi to launch a web browser in kiosk mode

For this project I simply want to have a raspberry pi start and launch a browser in kiosk mode. This pi would act as a status board letting passersby know the status of whatever is being displayed by the pi.

Set up

  1. Download and burn raspian to a micro sd.
  2. Log into the Pi with the default pi user and launch sudo rapsi-config.
  3. Set localization options if necessary.
  4. Change the default password.
  5. Configure the boot to Desktop/CLI and choose Console auto login.
@gh0st
gh0st / move_mouse.py
Last active February 4, 2021 15:44
A script that programmatically moves your mouse for you.
from random import *
import win32api, win32con, time, Tkinter as tk
def click(x, y):
# cursor move
win32api.SetCursorPos((x, y))
# click event call
# win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN, x, y, 0, 0)
# win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP, x, y, 0, 0)
@gh0st
gh0st / GPG and git on macOS.md
Created March 19, 2021 01:21 — forked from danieleggert/GPG and git on macOS.md
How to set up git to use the GPG Suite

GPG and git on macOS

Setup

No need for homebrew or anything like that. Works with https://www.git-tower.com and the command line.

  1. Install https://gpgtools.org -- I'd suggest to do a customized install and deselect GPGMail.
  2. Create or import a key -- see below for https://keybase.io
  3. Run gpg --list-secret-keys and look for sec, use the key ID for the next step
  4. Configure git to use GPG -- replace the key with the one from gpg --list-secret-keys
@gh0st
gh0st / .gitconfig
Last active November 11, 2021 14:23
[colors]
diff = auto
status = auto
branch = auto
interactive = auto
ui = true
pager = true
[alias]
lol = log --graph --decorate --pretty=oneline --abbrev-commit --all
lg = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all