Skip to content

Instantly share code, notes, and snippets.

View notpeter's full-sized avatar

Peter Tripp notpeter

View GitHub Profile
@notpeter
notpeter / Default (Linux).sublime-keymap.json
Created November 19, 2024 17:01
Default (Linux).sublime-keymap
[
{ "keys": ["ctrl+q"], "command": "exit" },
{ "keys": ["ctrl+shift+n"], "command": "new_window" },
{ "keys": ["ctrl+shift+w"], "command": "close_window" },
{ "keys": ["open"], "command": "prompt_open_file" },
{ "keys": ["ctrl+o"], "command": "prompt_open_file" },
{ "keys": ["ctrl+shift+t"], "command": "reopen_last_file", "args": {"source": "window"} },
{ "keys": ["alt+o"], "command": "switch_file", "args": {"extensions": ["cpp", "cxx", "cc", "c", "hpp", "hxx", "hh", "h", "ipp", "inl", "m", "mm"]} },
{ "keys": ["alt+shift+o"], "command": "switch_file", "args": {"extensions": ["cpp", "cxx", "cc", "c", "hpp", "hxx", "hh", "h", "ipp", "inl", "m", "mm"], "side_by_side": true} },
@notpeter
notpeter / Default (OSX).sublime-keymap.json
Last active November 19, 2024 17:00
Default (OSX).sublime-keymap
/*
On OS X, basic text manipulations (left, right, command+left, etc) make use of the system key bindings,
and don't need to be repeated here. Anything listed here will take precedence, however.
*/
[
{ "keys": ["super+shift+n"], "command": "new_window" },
{ "keys": ["super+shift+w"], "command": "close_window" },
{ "keys": ["super+alt+shift+n"], "command": "new_os_tab" },
{ "keys": ["ctrl+alt+tab"], "command": "next_os_tab" },
{ "keys": ["ctrl+alt+shift+tab"], "command": "prev_os_tab" },
@notpeter
notpeter / halloween_zed_logo.svg
Created October 30, 2024 18:35
Zed Logo with Feet
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# Simple `pdxinfo` file for Playdate game development.
# Place inside your `source` directory next to your main.lua
name=Reverse Game
author=Author Name
description=This is the best game ever
bundleID=com.example.reverse
version=0.1-beta3
buildNumber=123
# These are relative to the `source` directory
imagePath=images/menu
@notpeter
notpeter / user-home-dir.md
Last active April 23, 2024 15:37
Rust API Change Proposal: std::env::user_home_dir

Proposal (DRAFT) std::env::user_home_dir

Add new std::env::user_home_dir API returning Option<PathBuf>.

This API is a replacement for the deprecated std::env::home_dir which provides a platform agnostic method for identifying the user's home directory

@notpeter
notpeter / keybase.md
Created April 20, 2017 06:20
keybase.md

Keybase proof

I hereby claim:

  • I am notpeter on github.
  • I am notpeter (https://keybase.io/notpeter) on keybase.
  • I have a public key ASA0y4-Fjj1Qsfzx8HSUP3fanssfnI9bq44xixLxnUkyOgo

To claim this, I am signing this object:

@notpeter
notpeter / salt_minion.sls
Created September 9, 2016 22:37
SaltStack repo state
{% set version = "2016.3.3" %}
{% set pkg_version = '2016.3.3+ds-1' %}
salt_repo:
pkgrepo.managed:
- humanname: SaltStack Repo
- name: {{ "deb http://repo.saltstack.com/apt/ubuntu/%s/amd64/archive/%s %s main" %
(grains['osrelease'], version, grains['oscodename']) }}
- file: /etc/apt/sources.list.d/saltstack.list
- keyid: 754A1A7AE731F165D5E6D4BD0E08A149DE57BFBE # SaltStack Packaging Team
@notpeter
notpeter / nginx-elasticsearch-ssl.conf
Last active May 2, 2016 19:37
SSL Reverse Proxy for Elasticsearch (GET only, HTTP Basic Auth & and path restrictions)
# Place this config block inside the http scope of your nginx config.
# Replace with your DNS server. (e.g. VPC 10.12.0.0/16 -> 10.12.0.2)
resolver 8.8.8.8 valid=60s ipv6=off;
server {
listen 9201;
ssl on;
server_name whatever.domain.org;
ssl_certificate /etc/nginx/ssl/whatever.domain.org.crt;
@notpeter
notpeter / build_oracle_jdk_debs.sh
Created July 3, 2015 00:24
Oracle Java JDK - Make Debian/Ubuntu deb packages
#!/usr/bin/env bash
set -u
# Downloads Oracle JDK tarball and makes fancy debs out of it.
# Output is full of warnings, but the packages work. ;)
# Example URL='http://download.oracle.com/otn-pub/java/jdk/8u45-b14/jdk-8u45-linux-x64.tar.gz'
MAJOR=8
MINOR=45
BUILD=14