Skip to content

Instantly share code, notes, and snippets.

View Apreche's full-sized avatar
🚲

Scott Rubin Apreche

🚲
View GitHub Profile
@Apreche
Apreche / sample.json
Created May 18, 2023 17:17
sample.json
{
"key": "value"
}
[user]
name = Scott Rubin
email = apreche@frontrowcrew.com
signingkey = 3AED85D3D52E7843
[core]
attributesfile = ~/.gitattributes
pager = less -r
[init]
defaultBranch = main
[color]
@Apreche
Apreche / gist:02fd0f04fba17ca71243169345d60a0d
Created May 17, 2021 13:42
Dell monitor in stock checker
#!/usr/bin/env python3
import sys
import requests
import subprocess
from bs4 import BeautifulSoup
URL = "https://www.dell.com/en-us/shop/dell-ultrasharp-27-4k-usb-c-monitor-u2720q/apd/210-avjv/monitors-monitor-accessories"
CHECK = "Temporarily Out of Stock"
@Apreche
Apreche / .bashrc
Created August 3, 2020 00:24
Ubuntu 20.04 WSL2 Bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
umask 022
PATH="$HOME/bin:$HOME/.poetry/bin:$HOME/.local/bin:$PATH"
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
@Apreche
Apreche / .bashrc
Last active June 28, 2020 22:37
Ubuntu 16.04 bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
umask 022
PATH="$HOME/bin:$HOME/.poetry/bin:$HOME/.local/bin:$PATH"
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
@Apreche
Apreche / .bashrc
Last active June 28, 2020 22:33
server .bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
PATH="$HOME/bin:$HOME/.poetry/bin:$HOME/.local/bin:$PATH"
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@Apreche
Apreche / .psqlrc
Last active June 27, 2020 20:40
My psqlrc file
\set QUIET 1
\pset null 'Ø'
\x auto
\set COMP_KEYWORD_CASE upper
\unset QUIET
@Apreche
Apreche / config.h
Created June 6, 2020 18:09
config.h for st terminal
/* See LICENSE file for copyright and license details. */
/*
* appearance
*
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
*/
static char *font = "JetBrains Mono:pixelsize=16:antialias=true:autohint=true";
static int borderpx = 2;
@Apreche
Apreche / bash_aliases
Last active April 7, 2020 15:53
bash_aliases
alias apt-search="apt-cache search --names-only"
alias greppy='find ! -path "*migrations*" -name "*.py" | xargs grep'
alias grephtml='find -name "*.html" | xargs grep'
alias grepjs='find -name "*.js" | xargs grep'
alias grepcss='find -name "*.css" | xargs grep'
alias grepall='find ! -path "*migrations*" -and ! -name "*.pyc" | xargs grep'
alias grepregex='grep -rnE'
alias rmpyc='find -name "*.pyc" -delete'
alias runserver='./manage.py runserver_plus 0.0.0.0:8000'
alias gittag='git tag | sort -g'
@Apreche
Apreche / ipython_config.py
Last active April 7, 2020 15:53
iPython configuration
# Configuration file for ipython.
#------------------------------------------------------------------------------
# InteractiveShellApp(Configurable) configuration
#------------------------------------------------------------------------------
## A Mixin for applications that start InteractiveShell instances.
#
# Provides configurables for loading extensions and executing files as part of
# configuring a Shell environment.