Skip to content

Instantly share code, notes, and snippets.

View aheil's full-sized avatar
:octocat:
Teaching how to code for living and how to survive in SkyNet's world

Andreas Heil aheil

:octocat:
Teaching how to code for living and how to survive in SkyNet's world
View GitHub Profile
@aheil
aheil / liascript.code-snippet
Last active November 22, 2022 11:55
LiaScript Code Snippets for Visual Studio Code
{
// LiaScript Code Snippets for Visual Studio Code
//
// Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
// Placeholders with the same ids are connected.
"LiaScript Section": {
@aheil
aheil / gist:ee07479f7316cdb88e4dbb378bbd58a9
Created February 16, 2022 22:39
Vanilla CSS Patreon Button using Font Awesome
<a href="https://www.patreon.com/bePatron?u=68747299&amp;redirect_uri=https%3A%2F%2Fpodcast.hack-the-planet.tv" style="color: #5dff5d; text-decoration:none">
<div style="border-radius: 25px; background:#00aa00; hover:background:#00ff00; display: inline-block;padding-top: 5px; padding-bottom:5px; padding-left:25px; padding-right:25px">
<div style="color:#5dff5d; font-weight:500;">
<i class="fab fa-patreon" style="color:#5dff5d;"></i>
&nbsp;PATREON
</div>
</div>
</a>
@aheil
aheil / remux.bat
Last active October 21, 2020 14:25
Remux all MK4 fileks in a folder to MP4
@echo off
for /f "delims=" %%f in ('dir /b /a-d-h-s') do (
if "%%~xf" == ".mkv" (
if not exist "%cd%\%%~nf.mp4" (
ffmpeg -i "%cd%\%%f" -c copy -map 0 "%cd%\%%~nf.mp4"
)
)
)
@aheil
aheil / main.yml
Created January 12, 2020 12:46
Ansible role for Raspberry Pi automated wifi rapair installation
# Raspberry Pi (and Linux) Wifi Repair Automation
# Created: 2020/01/09 19:41:05
# Last modified: 2020/01/12 13:44:17
- name: Install prerequisite packages
become: yes
apt:
name: "{{ packages }}"
state: latest
@aheil
aheil / main.yml
Created January 7, 2020 20:36
exa Ansible role
---
- name: Make sure packages are installed
apt:
name:
- libgit2-27
- cmake
state: present
tags:
- wsl
@aheil
aheil / dist-upgrade.yml
Created November 9, 2019 22:21
Ansible task to upgrade Windows WSL 1.x Ubunto to latest release
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# # # #
# # Upgrade Windows WSL 1.x Ubunto to latest release # #
# # # #
# # Upgrade process based on: # #
# # https://medium.com/@rockey5520/wsl-ubuntu-upgrade-to-disco-dingo-19-04-b4abff20452d # #
# # # #
# # Created: 2019/11/01 23:54:53 # #
# # Last modified: # #
# # # #
@aheil
aheil / c4.puml
Last active June 21, 2019 23:03
Beispiel Level 2 C4 Model vom Live Coding Stream am 22.6.2019
!includeurl https://raw.githubusercontent.com/RicardoNiepel/C4-PlantUML/release/1-0/C4_Container.puml
Person(user, "Anwender", "Stellt Reisekostenanträge")
Person(consultant, "Sachbearbeiter", "Prüft und genehmigt")
System_Boundary(portal, "Reisekostenportal"){
Container(web_app, "Web Applikation", "Spring Boot, Apache", "Stellt die Busainesslogik für das Reisekostenportal bereit")
@aheil
aheil / rfc.bat
Created June 13, 2019 20:17
Open RFC in Chrome by typing rfc 1234
@echo off
start chrome https://tools.ietf.org/html/rfc%1