Skip to content

Instantly share code, notes, and snippets.

View wolves's full-sized avatar

Christopher Stingl wolves

  • Chapel Hill, NC
View GitHub Profile
@wolves
wolves / alacritty-tmux-vim_truecolor.md
Created February 22, 2022 14:40 — forked from andersevenrud/alacritty-tmux-vim_truecolor.md
True Color (24-bit) and italics with alacritty + tmux + vim (neovim)

This should make True Color (24-bit) and italics work in your tmux session and vim/neovim when using Alacritty (and should be compatible with any other terminal emulator, including Kitty).

Testing colors

Running this script should look the same in tmux as without.

curl -s https://gist.githubusercontent.com/lifepillar/09a44b8cf0f9397465614e622979107f/raw/24-bit-color.sh >24-bit-color.sh
bash 24-bit-color.sh
@wolves
wolves / ITG-Lecture_Notes-W3.md
Last active October 11, 2021 20:03
Intro To Go - Lecture Notes (W3)

Week 2 Reference Note

  • copy(newSlice, origSlice) duplicates rather than references
    • Therefore manipulation on the new slice will not change the original that it was copied from

Lecture Notes (W3)

Functions

  • keep func() args to 2, keep func return values to 2, MAX 3!
@wolves
wolves / _Webpack-Fontawesome-Bootstrap-Phoenix.md
Created February 26, 2019 21:14 — forked from nicbet/_Webpack-Fontawesome-Bootstrap-Phoenix.md
Sass versions of Bootstrap 4 and Fontawesome 5 with Elixir / Phoenix Framework 1.3.x and 1.4.x using Webpack

SASS Versions of

  • Fontawesome 5
  • Bootstrap 4

in Phoenix 1.3 and 1.4 via Webpack

@wolves
wolves / cloudSettings
Last active August 20, 2019 13:49
Current VSCode User Settings
{"lastUpload":"2019-08-20T13:43:38.412Z","extensionVersion":"v3.4.1"}
@wolves
wolves / cloudSettings
Last active June 20, 2018 13:47
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-06-19T20:07:53.451Z","extensionVersion":"v2.9.2"}
@wolves
wolves / caddy.service
Created March 14, 2018 00:49
Systemd Caddy service setup
[Service]
Restart=on-failure
StartLimitInterval=86400
StartLimitBurst=5
; User and group the process will run as.
User=root
Group=www-data
; Letsencrypt-issued certificates will be written to this directory.
@wolves
wolves / tasks.ex
Last active April 1, 2022 14:05
Elixir curl Github API
repo_data = [name: "asdf"]
{status, result} = JSON.encode(repo_data)
IO.puts "RESULT: #{result}"
case System.cmd "curl", ["-XPOST", "-H", "Authorization: token #{github_token}", "https://api.github.com/user/repos", "-d", "#{result}"] do
{output, 0} -> IO.puts "#{output}"
{err, code} -> {:error, %Raygun.Error{message: err, command: "new", code: code}}
end
@wolves
wolves / routes.js
Last active June 26, 2016 14:02
react-router routes file
import React from 'react'
import { Route, IndexRoute } from 'react-router'
import App from './containers/App'
import Login from './containers/Login'
import Dashboard from './containers/Dashboard'
import SearchContainer from './containers/Search'
import Cart from './containers/Cart'
import Maintenance from './containers/Maintenance'
import Profile from './containers/Profile'
@wolves
wolves / router.js
Created September 9, 2014 19:16
Iron Router using waitOn function
Router.configure({
layoutTemplate: 'layout',
loadingTemplate: 'loading',
waitOn: function() {
return [
Meteor.subscribe('posts'),
Meteor.subscribe('comments')
];
}
});
{
latest_migration: "20140805143805",
features: {
dfp_keys: {
city: "",
state: "",
zip: [ ],
cnty: [ ],
targetcode: "",
cbsa: "",