Skip to content

Instantly share code, notes, and snippets.

@cblte
cblte / .bash_profile
Last active August 29, 2015 14:26 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
<div class="item-header">
{% if post.exturl %}
<h1>
<a href="{{ post.exturl }}" title="Link zu {{ post.exturl }}" target="_blank">{{ post.title }}</a>
</h1>
{% else %}
<h1>{{ post.title }}</h1>
{% endif %}
<h2>{{ post.date }}{% if post.tags %} <span>&raquo;</span> {% for tag in post.tags %}<a href="{{ get_url(tags[tag].url) }}">{{ tag }}</a>{% if not loop.last %}, {% endif %}{% endfor %}{% endif %}</h2>
</div>
@cblte
cblte / gist:0dd94cb06625d94850bd
Created November 13, 2015 20:32 — forked from saetia/gist:1623487
Clean Install – OS X 10.11 El Capitan

OS X Preferences


most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat

Keybase proof

I hereby claim:

  • I am cblte on github.
  • I am cblte (https://keybase.io/cblte) on keybase.
  • I have a public key whose fingerprint is C49E BB99 EDD7 CAC4 7041 7C3E 345A 56EE CB74 BB87

To claim this, I am signing this object:

@cblte
cblte / arch_vbox.md
Created June 14, 2018 07:20 — forked from dannycastonguay/arch_vbox.md
Installing Arch Linux on VirtualBox in Windows 10 for beginners

Installing Arch Linux on VirtualBox in Windows 10

I recently upgraded to a new system, and instead of running Arch Linux natively I've decided to run it inside VirtualBox on Windows 10. Below I note down the steps I took, which closely follow the excellent wiki pages of archlinux. But along the way, I also noted a few other steps steps I took to make this system very comfortable, which you'll have to figure out for yourself if you like them or not!

Setting up Windows 10 to be ready

There isn't much of preparation required, given that I started from scratch, but I did have to setup my windows environment a little bit.

  1. Install the windows package manager chocolatey
  2. Install qBittorrent (which will be used to download an iso copy of arch) by running the following command from the command line choco install qbittorrent (recommended to run the command line as an adm
@cblte
cblte / home.php
Last active February 29, 2020 22:22
Bludit - display amount of comments made for a post.
<?php foreach ($content as $page) : ?>
<!-- A single blog post on the homepage -->
<article <?php if ($page->custom('link')) {?>class="link" <?php } ?>>
<!--
<?php
// CHECK IF PLUGIN IS LOADED
$pageUuid = $page->getValue('uuid');
@cblte
cblte / powershell-downloadAgreppineFromArte.ps1
Created March 31, 2020 08:44
How to download Agreppine from Arte.tv for offline view or if you cannot watch it because the website tells you not availble in your country
$arte = 'http://www.arte.tv/de/videos/026291-0{0}-A/'
for($i = 1; $i -lt 27; $i++) {
$url = $arte -f $($i.ToString().PadLeft(2,"0"))
$ydlcmd = "youtube-dl --geo-bypass -f best $url"
Write-Host("Downloading: " + $url)
Write-Host($ydlcmd)
Invoke-Expression "$ydlcmd"
}
@cblte
cblte / powershell-downloadJordskottFromArte.ps1
Created April 2, 2020 17:34
downloading jordskott from arte in best quality. ca 1GB per episode. ca 10gb in total
$a = 'https://www.arte.tv/de/videos/062201-0{0}-A/'
for($i = 5; $i -lt 10; $i++) {
$u = $a -f $($i.ToString().PadLeft(2,"0"))
$c = "youtube-dl -f best $u -o '%(id)s_%(title)s_%(format)s.%(ext)s'"
Write-Host("Downloading: " + $u)
Invoke-Expression "$c"
}
@cblte
cblte / check-fornewmacbook.sh
Created November 26, 2020 22:48
Check for new MacBook Pro on coolblue and mediamarkt
#!/bin/bash
urlcb="https://www.coolblue.nl/en/laptops/apple-macbook/apple-macbook-pro/13-inch-screen/processor:apple-m1-chip"
urlmm="https://www.mediamarkt.nl/nl/category/_apple-mac-755619.html?searchParams=%2FSearch.ff%3FfilterTabbedCategory%3Donlineshop%26filterCategoriesROOT%3DComputer%25C2%25A7MediaNLnlc482710%26filterCategoriesROOT%252FComputer%25C2%25A7MediaNLnlc482710%3DApple%2BMac%25C2%25A7MediaNLnlc755619%26filteravailability%3D1%26filterProcessormodel%3DApple%2BM1%26channel%3Dmmnlnl%26followSearch%3D9954%26disableTabbedCategory%3Dtrue%26navigation%3Dtrue&sort=&view=&page="
text1=$'NEW MAC NEW MAC! Check the Website!\n\n'
countcb=`curl -s -L $urlcb | grep -c -E -i "alt=\"Apple .* MYD.{3}\/"`
countmm=`curl -s -L $urlmm | grep -c -E "name\":\"APPLE MacBook Pro.*M1"`
@cblte
cblte / AsciidocCheatsheet.adoc
Created March 26, 2021 12:31 — forked from powerman/AsciidocCheatsheet.adoc
Asciidoc cheatsheet for GitHub

Asciidoc cheatsheet for GitHub