Skip to content

Instantly share code, notes, and snippets.

View tomtomsen's full-sized avatar
😀

tom tomsen tomtomsen

😀
View GitHub Profile
@tomtomsen
tomtomsen / test
Last active October 7, 2021 07:03
test
testx
@tomtomsen
tomtomsen / .gitattributes
Created October 28, 2020 15:32
.gitattributes for php projects
# https://php.watch/articles/composer-gitattributes
# Exclude build/test files from archive
/.github export-ignore
/.phive export-ignore
/.psalm export-ignore
/build export-ignore
/docs export-ignore
/examples export-ignore
/phpstan export-ignore
@tomtomsen
tomtomsen / README.md
Last active February 13, 2020 07:55
Working with iconfonts

Working with iconfonts

The problem

Wanted to use DevIcons characters in a php generated PDF. Couldn't copy the character itself from website (ala font awesome)

Tools

@tomtomsen
tomtomsen / .config i3 config
Created November 26, 2019 12:28
unix settings
# i3 config file (v4)
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
# Set mod key (Mod1=<Alt>, Mod4=<Super>)
set $mod Mod4
# set default desktop layout (default is tiling)
# workspace_layout tabbed <stacking|tabbed>
# Configure border style <normal|1pixel|pixel xx|none|pixel>
@tomtomsen
tomtomsen / .editorconfig
Last active August 22, 2019 11:50
.editorconfig
root = true
[*]
end_of_line = lf
trim_trailing_whitespace = true
indent_style = tab
indent_size = 3
insert_final_newline = true
[Makefile]
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '48e3236262b34d30969dca3c37281b3b4bbe3221bda826ac6a9a62d6444cdb0dcd0615698a5cbe587c3f0fe57a54d8f5') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
/iad/kaufen-und-verkaufen/d/ikea-hemnes-kommode-312544938/
git clone --bare [email protected]:tom-tomsen/dotfilesv2.git $HOME/.dotfiles
function dotfiles {
/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME $@
}
mkdir -p .dotfiles-backup
dotfiles checkout
if [ $? = 0 ]; then
echo "Checked out dotfiles.";
else
echo "Backing up pre-existing dot files.";
@tomtomsen
tomtomsen / dotfiles-init.sh
Last active February 20, 2019 22:34
Install dotfiles
#!/bin/bash
#
# https://developer.atlassian.com/blog/2016/02/best-way-to-store-dotfiles-git-bare-repo/
#
git init --bare $$HOME/.dotfiles
function dotfiles {
/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME $@
}
@tomtomsen
tomtomsen / about.md
Created August 10, 2011 13:21 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer