Skip to content

Instantly share code, notes, and snippets.

@Temikus
Temikus / Brewfile
Created October 25, 2021 04:56
Artem's Brewfile
# Common taps
tap "homebrew/cask-versions"
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-drivers"
tap "homebrew/core"
# Runtimes - python
brew "python@3.9"
brew "pylint"
@KiaraGrouwstra
KiaraGrouwstra / arch.sh
Last active September 26, 2022 18:36
Arch install notes
# follow https://www.addictivetips.com/ubuntu-linux-tips/how-to-install-arch-linux/, except:
# - use `/dev/sdb`
# - let ext4 get 100%, not swap
# - ditch grub for systemd-boot, see https://www.addictivetips.com/ubuntu-linux-tips/set-up-systemd-boot-on-arch-linux/
# - in install step swap `xorg-server-utils` for `xorg-apps` -- just in case also install `dialog`, `dhcpcd`, `linux-firmware` and `wpa_supplicant`
# also see: https://wiki.archlinux.org/index.php/Installation_guide
# bluetooth
sudo pacman -S bluez bluez-utils
systemctl enable bluetooth
/*
# Clean UI programming in a vacuum
This app was written for Chapter 19 in the 3rd edition of Eloquent
JavaScript—it aims to demonstrate modern UI programming without
depending on a specific framework or library.
Its convention is that components have an interface like this:
```
{
"title": "Leopold FC660 Capslock to FN w/ function keys and escape",
"rules": [
{
"description": "Map capslock to fn",
"manipulators": [
{
"conditions": [{ "type": "device_if", "identifiers": [{
"product_id": 257, "vendor_id": 1204
}]}],
@simenbrekken
simenbrekken / README.md
Last active October 11, 2017 16:23
Express.js brute-force ☕️-reloading

This neat little script let's you develop Express apps without using something like nodemon to reload your server between changes.

Usage:

  1. Put dev.js outside your project source folder, scripts/dev.js is what I'm using.
  2. Make sure your actual app in src/index.js exports the Express instance itself without listening:
import express from 'express'
@primaryobjects
primaryobjects / mouse.gif
Last active June 27, 2022 18:24
View the mouse pointer position in Selenium Nightwatch. Execute this code when the page loads or in the javascript console. See https://stackoverflow.com/a/35867777
mouse.gif
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active May 14, 2024 15:11
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@bkeepers
bkeepers / .env
Last active November 2, 2020 17:32
Probot plugin that ensures every commit message has the word "bananas"
# The ID of your GitHub App
APP_ID=
WEBHOOK_SECRET=development
# Uncomment this to get verbose logging
# LOG_LEVEL=trace # or `info` to show less
# Go to https://smee.io/new set this to the URL that you are redirected to.
# WEBHOOK_PROXY_URL=
function getAuthToken(interactive, cb) {
chrome.identity.getAuthToken({
interactive: interactive,
// must use the exact same scopes used to submit the license or the token shits
scopes:
['https://www.googleapis.com/auth/userinfo.profile',
'https://www.googleapis.com/auth/userinfo.email',
'https://www.googleapis.com/auth/chromewebstore.readonly']
},