Skip to content

Instantly share code, notes, and snippets.

View valeth's full-sized avatar
🦀
rusting

Patrick Auernig valeth

🦀
rusting
  • 18:36 (UTC +02:00)
View GitHub Profile
@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 / 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 / pacman.service
Created December 20, 2017 21:48
Pacman Updates
[Unit]
Description=Pacman system updates
After=network.target
[Service]
ExecStart=/usr/bin/pacman -Sy
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
# 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")
@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
{
"segment_data": {
"time": {
"before": ""
}
}
}
.wklc {
color: #FFFFFF;
display: flex;
justify-content: center; }
.wklc-force-hidden {
display: none !important; }
.wklc-lesson-count {
border-radius: 3px !important; }
.wklc-items {
display: flex;
@valeth
valeth / snippets.coffee
Created March 4, 2018 11:21
JavaScript/CoffeeScript Snippets
titleize = (string) ->
tmp = string[0].toUpperCase()
for char in string.slice(1)
if char is char.toUpperCase()
tmp += " #{char}"
else
tmp += char
tmp
@valeth
valeth / rottensys_check.rb
Last active March 17, 2018 14:04
RottenSys Check
#!/usr/bin/env ruby
services = /
com.android.yellowcalendarz
|com.changmi.launcher
|com.android.services.securewifi
|com.system.service.zdsgt
/x
devices = `adb devices`.lines[1..-2].map { |x| x.split("\t").first }