Skip to content

Instantly share code, notes, and snippets.

View pbstriker38's full-sized avatar

Daniel Alfaro pbstriker38

View GitHub Profile
@pbstriker38
pbstriker38 / progress_circle_component.html.erb
Created December 9, 2021 19:23
Circular progress bar ViewComponent
<!-- Circle -->
<div>
<!-- Building a Progress Ring: https://css-tricks.com/building-progress-ring-quickly/ -->
<svg height="<%= @diameter %>" width="<%= @diameter %>">
<circle
class="text-gray-300"
stroke-width="<%= @stroke_width %>"
stroke="currentColor"
fill="transparent"
r="<%= normalized_radius %>"
@pbstriker38
pbstriker38 / chisel.service
Created May 31, 2021 00:19
chisel systemd service
[Unit]
Description=Chisel Tunnel Service
After=network.target
[Service]
Type=simple
Restart=always
RestartSec=1
StartLimitInterval=0
EnvironmentFile=/etc/default/chisel
@pbstriker38
pbstriker38 / turbotax_prosper_1099-B_script.rb
Last active March 18, 2019 18:22
Capybara script to input line items from Prosper 1099-B form
require 'rubygems'
require 'capybara'
require 'capybara/dsl'
require 'selenium-webdriver'
Capybara.run_server = false
Capybara.current_driver = :selenium_chrome # brew tap homebrew/cask && brew cask install chromedriver
Capybara.default_max_wait_time = 10
Capybara.app_host = 'https://myturbotax.intuit.com'
@pbstriker38
pbstriker38 / prepare-commit-msg
Created May 10, 2018 20:54
Add JIRA ticket to commit message
#!/bin/sh
BRANCH_NAME=$(git symbolic-ref --short HEAD)
TICKET_NUMBER=$(echo $BRANCH_NAME | egrep -o "[A-Z]+[_-]\d+$" | tr '_' '-')
if [[ -n $TICKET_NUMBER ]]; then
sed -i -e "1s/^/$TICKET_NUMBER /" $1
fi