Skip to content

Instantly share code, notes, and snippets.

View mapfel's full-sized avatar

Marko Apfel mapfel

View GitHub Profile
@RyanBalfanz
RyanBalfanz / Arch_Linux_Raspberry_Pi.md
Last active August 29, 2015 14:02
Arch Linux fresh install on Raspberry Pi

Prepare the SD Card:

➜  Downloads  time sudo dd bs=1m if=ArchLinuxARM-2014.06-rpi.img of=/dev/rdisk1
1870+0 records in
1870+0 records out
1960837120 bytes transferred in 132.563127 secs (14791723 bytes/sec)
sudo dd bs=1m if=ArchLinuxARM-2014.06-rpi.img of=/dev/rdisk1  0.01s user 0.90s system 0% cpu 2:12.58 total

Update and Install Additional Packages

@rocketraman
rocketraman / .gitconfig
Last active January 17, 2024 01:52
.gitconfig aliases useful for gitworkflow (https://github.com/rocketraman/gitworkflow)
[alias]
# Basically `log --oneline --decorate --graph` with different colors and some additional info (author and date)
lg = log --graph --abbrev-commit --decorate --format=format:'%C(yellow)%h%C(reset) %C(normal)%s%C(reset) %C(dim white)%an%C(reset) %C(dim blue)(%ar)%C(reset) %C(dim black)%d%C(reset)'
# lg (see above) with --first-parent
lgp = log --graph --abbrev-commit --decorate --format=format:'%C(yellow)%h%C(reset) %C(normal)%s%C(reset) %C(dim white)%an%C(reset) %C(dim blue)(%ar)%C(reset) %C(dim black)%d%C(reset)' --first-parent
# https://stackoverflow.com/questions/61510067/show-specific-commits-in-git-log-in-context-of-other-commits
hl = "!f() { cd -- ${GIT_PREFIX:-.}; grep --color -E \"$(git log --pretty=%h \"$@\" | tr '\n' '|')\" || true; }; f"
hlp = "!f() { cd -- ${GIT_PREFIX:-.}; less -R -p $(git log --pretty=%h \"$@\" | tr '\n' '|'); }; f"
<TypePattern DisplayName="StyleCop Classes, Interfaces, &amp; Structs" RemoveRegions="All">
<TypePattern.Match>
<Or>
<Kind Is="Class" />
<Kind Is="Struct" />
<Kind Is="Interface" />
</Or>
</TypePattern.Match>
<Entry DisplayName="Constants">
<Entry.Match>