Skip to content

Instantly share code, notes, and snippets.

View valeth's full-sized avatar
🦀
rusting

Patrick Auernig valeth

🦀
rusting
  • 06:37 (UTC +02:00)
View GitHub Profile
{
"segment_data": {
"time": {
"before": ""
}
}
}
@valeth
valeth / Gemfile
Last active March 1, 2018 11:32
Useful ruby gems
# Event scheduling
gem "rufus-scheduler"
# Retrying with exponential backoff
gem "retriable"
# RSS/Atom feed parsing
gem "feedjira"
# Markdown processing
# frozen_string_literal: true
# rubocop:disable all
require "ostruct"
PRY_DATA_HOME =
if ENV.include?("XDG_DATA_HOME")
File.join(ENV["XDG_DATA_HOME"], "pry")
else
File.join(Dir.home, ".local/share/pry")
If you found this note in a small wooden box with a heart on it, then *congratulations!* You are probably the first person to read this. I didn’t really plan on sharing this with anybody, but for some reason I think it’s exciting that somebody out there, a complete stranger, will come across this note and read my story. Someone I will never meet, sharing such a personal bond with me. I’m fascinated that either one of us could die - even as soon as tomorrow - with the other being completely clueless to the fact. To you, my entire life is within this note, and so I will live for as long as your memory can carry me. Writing this, I’m wondering if that makes you feel fascinated or violated. It’s so exciting.
I’m sorry if my story is a bit disorganized, but I’d like to get it down while it’s still fresh on my mind. First, I’ll tell you a little bit about myself. I’m a first-year college girl and have led, by most standards, a pretty unspectacular life up to this point. I grew up in an upper-middle class school dis
@valeth
valeth / pacman.service
Created December 20, 2017 21:48
Pacman Updates
[Unit]
Description=Pacman system updates
After=network.target
[Service]
ExecStart=/usr/bin/pacman -Sy
@valeth
valeth / connection_targets.yml
Last active December 12, 2017 20:20
Else Heart.Break() notes
Hotel:
"Hotel_Room4_FuseBox_Poor_FuseBox_1"
Police Office:
"PoliceOfficeInterior_MinistryOfficeWorkstationComputer_1"
Internet:
"Outpost"
@valeth
valeth / rebase-workflow.md
Last active December 1, 2017 10:07
Git Rebase Workflow

Git Rebase-based Workflow

  • Keeps your project more organized by splitting features into separate branches for review.
  • Avoids merge commits and keep your git history clean.

Repeat this process for every feature you want to add.

  1. Make sure the master branch of your fork is even with upstream/master
  2. Create a feature branch, leave the master branch untouched (important!)
  3. Make your changes in your feature branch
@valeth
valeth / setup.md
Last active November 12, 2017 23:31
GPG as SSH agent

Generate keys

Assuming a keychain already exists.

gpg --expert --edit-key KEYID

addkey and go through process

quit and save

Get public SSH key

@valeth
valeth / appmanifest_APPID.acf
Created November 1, 2017 22:11
Steam App Manifest
"AppState"
{
"AppID" "APPID"
"Universe" "1"
"installdir" "APPNAME"
"StateFlags" "1026"
}
@valeth
valeth / Rakefile
Last active October 25, 2017 22:38
Wine Rakefile
# frozen_string_literal: true
require "yaml"
require "shellwords"
# NOTE: put app tasks into rakelib
ENV.update(
"WINEPREFIX" => File.join(__dir__, "containers", "default"),
"WINEARCH" => "win32",