Skip to content

Instantly share code, notes, and snippets.

View kulas's full-sized avatar

Neil Kulas kulas

View GitHub Profile

Kiosk Mode macOS

  1. Create two user accounts
    • Administration account
    • Kiosk Account - This account will be locked down with Parental Controls
  2. Set up remote management
  3. Install kiosk software
  • We use a role-based Apple ID (ex: webmaster@[institution].org) to manage macOS software. Managing Apps this way saves lots of headaches.

Archiving Websites

Every so often, you may find yourself needing to preserve a website in its current state. Whether this is in advance of a significant website change, general documentation, or the possibility that the site needs to be taken offline, it is a good idea to archive the site so that it is navigable locally and without the need for a server.

Introducing HTTrack HTTrack Website Copier will do just that, download a website to a local directory, build all the directories, get HTML, images, and other files from the server to your computer.

HTTrack has a GUI for Windows that works really well: http://www.httrack.com . You can also use this tool from the command line. See the following steps to archive websites using the HTTrack command line tools.

MacOS Installation: First, you will need to install HTTrack locally. On macOS, https://brew.sh/ is the package manager of choice (as opposed to MacPorts). Homebrew is simpler to set up but does require you

@kulas
kulas / font-stack-system.css
Last active April 7, 2019 16:42
Font Stack - System
/* System Fonts */
body {
font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen-Sans,Ubuntu,Cantarell,'Helvetica Neue',sans-serif;
}
DNS
https://blog.udemy.com/dns-lookup-command/
Reverse LookUp
dig –x 23.243.242.112 +short.
Nano
ctrl + o = save Output
ctrl + k = cut current line
ctrl + u = paste or Uncut
ctrl + x = eXit
y = yes
n = no
VS Code
cmd + p
# Search within a project
cmd + r
# Search symbols in a file (like CSS selectors)
cmd + shift + p
Web Developer Tools - Chrome/Safari
Disable resource caching - See > Network > button in menu
Test Pixel Density
=====================
From the console:
> window.devicePixelRatio
# Return current device pixel density
Git Cheat Sheets
==============
https://devbookhelp.herokuapp.com/git
Git Clone
==============
git clone [repository] [local path]
git clone [repository] folder-name
git clone [repository] .
# If working directory is your desired destination, simply put a "."
# Cheat Sheet: Docker
Lists running containers
$ docker ps
Shows what images are available?
$ docker images
Shows ?
$ docker network ls
@kulas
kulas / Chrome Kiosk
Last active September 12, 2018 17:34 — forked from dankeezer/kiosk
AppleScript + directions to auto-launch Chrome in full-screen at startup.
# I'd just give you the .app but you need to change the code to the correct URL.
## Create the kiosk App
# Using Script Editor app create a script called “kiosk”
# Here’s the code
'''
do shell script "open '/Applications/Google Chrome.app' http://phhhoto.com/d/websterhall/5/2"