Skip to content

Instantly share code, notes, and snippets.

View flipsi's full-sized avatar

Philipp "Flipsi" Moers flipsi

View GitHub Profile
@flipsi
flipsi / hamburgerMenu.html
Created December 9, 2015 16:26
Hamburger Menu with CSS
<!DOCTYPE html>
<html>
<head>
<title>We have a nice menu here</title>
<style type="text/css">
#menu {
content: "";
position: relative;
/*left: 0;*/
@flipsi
flipsi / gist:0d781e139b45cdcdfc56e8107242a42e
Created January 2, 2025 18:29
2025-01-02 rofi timings output
(process:1597597): Timings-DEBUG: 19:27:37.760: 0.000000 (0.000000): Started
(process:1597597): Timings-DEBUG: 19:27:37.763: 0.002657 (0.002657): ../rofi/source/rofi.c:main:959
(process:1597597): Timings-DEBUG: 19:27:37.763: 0.003282 (0.000625): ../rofi/source/rofi.c:main:1010
(process:1597597): Timings-DEBUG: 19:27:37.763: 0.003374 (0.000092): ../rofi/source/rofi.c:main:1017 Setup Locale
(process:1597597): Timings-DEBUG: 19:27:37.763: 0.003509 (0.000135): ../rofi/source/rofi.c:main:1019 Collect MODES
(process:1597597): Timings-DEBUG: 19:27:37.764: 0.003523 (0.000014): ../rofi/source/rofi.c:main:1021 Setup MODES
(process:1597597): Timings-DEBUG: 19:27:37.764: 0.003539 (0.000016): ../rofi/source/rofi.c:main:1025 Setup mainloop
(process:1597597): Timings-DEBUG: 19:27:37.764: 0.003599 (0.000060): ../rofi/source/rofi.c:main:1028 NK Bindings
(process:1597597): Timings-DEBUG: 19:27:37.764: 0.003883 (0.000284): ../rofi/source/xcb.c:display_setup:1701 Open Display
(process:1597597): Timings-DEBUG: 19:27:37.764: 0.0
/**
* rofi -dump-theme output.
* Rofi version: 1.7.6
**/
* {
alternate-urgent-background: var(urgent-background);
selected-urgent-foreground: var(urgent-foreground);
alternate-active-foreground: var(active-foreground);
selected-active-background: var(gruvbox-dark-purple-light);
gruvbox-dark-purple-light: rgba ( 222, 134, 155, 100 % );
@flipsi
flipsi / gist:ecf442bdb71121830c5e7b22b99d55a0
Created January 2, 2025 18:23
2025-01-02 rofi config
configuration {
/* modes: "window,drun,run,ssh";*/
font: "PragmataPro Mono 11";
location: 0;
/* yoffset: 0;*/
/* xoffset: 0;*/
/* fixed-num-lines: true;*/
show-icons: false;
/* preview-cmd: ;*/
/* terminal: "rofi-sensible-terminal";*/
@flipsi
flipsi / gist:39e464745667e0bb337c9bcdd7894bd5
Created December 10, 2024 13:03
netctl Wifi profile with PEAP and MSCHAP
Description='A wireless connection using a custom network block configuration'
Interface=wlp0s20f3
Connection=wireless
Security=wpa-configsection
Auth802X=yes
IP=dhcp
WPAConfigSection=(
'ssid="SSID"'
'key_mgmt=WPA-EAP'
@flipsi
flipsi / Default (Linux).sublime-keymap
Created March 12, 2014 18:47
Sublime Text Key Bindings
[
///////////////////////////////
// Sublime-Text Key Bindings //
///////////////////////////////
// Author: Philipp Moers <soziflip funnycharacter gmail dot com>
///////////
// View //
@flipsi
flipsi / latex-brief-vorlage.tex
Created May 23, 2024 08:47
Latex Briefvorlage
% Author: Philipp Moers <soziflip@gmail.com>
%
% Latex Brief-Vorlage
%
% ------------------------------------------------------------------------------
\documentclass
[
fontsize=12pt, % Schriftgröße
version=last, % Neueste Version von KOMA-Skript verwenden
@flipsi
flipsi / netctl-profile
Last active August 7, 2023 11:57
netctl Wifi profile with PEAP
Description='netctl profile'
Interface=wlan0
Connection=wireless
Security=wpa-configsection
IP=dhcp
WPAConfigSection=(
'ssid="SSID"'
'proto=RSN'
'key_mgmt=WPA-EAP'
@flipsi
flipsi / notes.md
Last active July 24, 2020 11:11
ZIO vs. Cats IO - Functional Programming libraries in Scala.

ZIO vs. Cats IO - Functional Programming libraries in Scala

Last updated on 2020-07-24 13:07

OKRs Q3 2020 Key result: "I have decided between ZIO or Cats IO (or similar) and justified this decision."

This document is a wrap-up of my research on which Functional Programming library to use in Scala.

@flipsi
flipsi / getWifiInterface.py
Created December 21, 2015 23:51
Determine name of Wifi interface with Python
#!/usr/bin/python3
# -*- coding: utf-8 -*-
try:
from netifaces import interfaces
except ImportError:
print("The python package netifaces is required.")
print("You can install it from the PyPI with ``pip install netifaces''.")
exit(1)