Skip to content

Instantly share code, notes, and snippets.

@Fastjur
Fastjur / .gitconfig
Created June 9, 2020 08:08
Better git log & conflicts alias
[alias]
conflicts = diff --name-only --diff-filter=U
l=log --graph --all --pretty=format:'%C(yellow)%h%C(cyan)%d%Creset %s %C(white)- %an, %ar%Creset'
ll=log --stat --abbrev-commit
lg=log --color --graph --pretty=format:'%C(bold white)%h%Creset -%C(bold green)%d%Creset %s %C(bold green)(%cr)%Creset %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
llg=log --color --graph --pretty=format:'%C(bold white)%H %d%Creset%n%s%n%+b%C(bold blue)%an <%ae>%Creset %C(bold green)%cr (%ci)' --abbrev-commit
@Fastjur
Fastjur / allowed-domains.MD
Last active October 24, 2022 00:53
Allowed /r/youseeingthisshit domains

Allowed domains for /r/youseeingthisshit

  • reddituploads.com
  • 500px.com
  • abload.de
  • anony.ws
  • deviantart.com
  • deviantart.net
  • fav.me
  • fbcdn.net
@Fastjur
Fastjur / simple-latex-summary.tex
Created January 9, 2018 14:20
Very simple 2 columned latex summary
\documentclass[a4paper]{article}
\usepackage[margin=1.2cm]{geometry}
\usepackage{mathtools}
\usepackage{dsfont}
\usepackage{multicol}
\setlength{\columnsep}{1cm}
\usepackage[utf8]{inputenc}
\usepackage{enumitem}
@Fastjur
Fastjur / Start Menu.bat
Created August 21, 2017 19:07
Create a shortcut to a program in your Start Menu using the context menu 'Send to' function.
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Creates a shortcut to the selected file in
:: the start menu of the current user.
:: INSTALLATION:
:: 1. Open 'run', type in 'shell:sendto' and press enter
:: 2. Put this batch file in the folder that just opened
:: 3. A new 'Start Menu.bat' entry should now appear in your
:: context menu 'Send to' section.
:: Thanks to: https://stackoverflow.com/a/9253018
:: https://superuser.com/a/455383
@Fastjur
Fastjur / elevate.bat
Created August 21, 2017 19:06
Automatically elevate a windows batch file
::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Elevate.cmd - Version 4
:: Automatically check & get admin rights
:: Taken from: https://stackoverflow.com/a/12264592
::::::::::::::::::::::::::::::::::::::::::::::::::::::
@echo off
CLS
ECHO.
ECHO =============================
ECHO Running Admin shell
@Fastjur
Fastjur / bootstrap-simple-size-tester.html
Created June 23, 2017 14:26
Really simple 'test' html to show what size you're currently on.
<div class="row">
<div class="hidden-lg hidden-md hidden-sm">Extra Small</div>
<div class="hidden-lg hidden-md hidden-xs">Small</div>
<div class="hidden-lg hidden-sm hidden-xs">Medium</div>
<div class="hidden-md hidden-sm hidden-xs">Large</div>
</div>
@Fastjur
Fastjur / remove-old-branches.bash
Last active June 19, 2017 14:05
Remove all local git branches already merged in master
git remote prune origin && (git branch --merged master | grep -v 'master$' | xargs git branch -d)
@Fastjur
Fastjur / .bashrc
Created June 7, 2016 11:48
A bash script that makes a random branch and file and pushes this to origin.
gitbehind() {
TIME=$(date +%s);
git checkout -b $TIME;
git checkout $TIME;
echo $TIME >> $TIME.file;
git add $TIME.file;
git commit -m "Behind Commit";
git push -u origin $TIME;
git checkout master;
git branch -D $TIME;
@Fastjur
Fastjur / show-colors.sh
Created May 27, 2016 19:52
Print out all colors in terminal, handy for configuring color palette
for x in 0 1 4 5 7 8; do for i in `seq 30 37`; do for a in `seq 40 47`; do echo -ne "\e[$x;$i;$a""m\\\e[$x;$i;$a""m\e[0;37;40m "; done; echo; done; done; echo "";