Skip to content

Instantly share code, notes, and snippets.

View cornfeedhobo's full-sized avatar

cornfeedhobo cornfeedhobo

View GitHub Profile
@cornfeedhobo
cornfeedhobo / README.md
Last active December 3, 2025 16:44
Framework Laptop Customizations

Framework Laptop Customizations

This documents the changes made while installing OpenSUSE LEAP 15.3 on the Framework Laptop (1st edition).


Guided install

During the guided install, there are some minor changes that will make things smoother later.

@cornfeedhobo
cornfeedhobo / 99-framework.conf
Created February 28, 2022 17:49
Framework Laptop Customizations
Section "InputClass"
Identifier "Framework Clickpad"
MatchProduct "Touchpad"
MatchDriver "synaptics"
# Enable clicking
Option "ClickPad" "true"
Option "EmulateMidButtonTime" "0
Option "ClickMethod" "clickfinger"
Option "ClickFinger1" "1"
#!/usr/bin/python3
# Import PyGObject
# PyGObject is a Python package which provides bindings for GObject based libraries such as GTK, GStreamer, WebKitGTK, GLib, GIO and many more.
from gi import require_version
# for arguments
from sys import argv
from os import geteuid
_rl_enabled ()
{
[[ "$( bind -v )" == *$1+([[:space:]])on* ]]
}
---
- hosts: "notforyou"
any_errors_fatal: true
pre_tasks:
- name: "Disable selinux"
become: true
selinux:
cite about-plugin
about-plugin 'Bash My AWS'
export BASH_MY_AWS="$HOME/.bash-my-aws"
__bma_load ()
{
force=$1
if [[ -d "$BASH_MY_AWS" ]] ; then
if [[ -z $force ]] || [[ ":$PATH:" != *":$BASH_MY_AWS/bin:"* ]] ; then
@cornfeedhobo
cornfeedhobo / poet
Last active August 11, 2018 16:40
poet
e1b1d1904004519450c071749131d1c04540249090c11011654431f10141d1f4f0811414e53
@cornfeedhobo
cornfeedhobo / oauth2-scope.uml
Created February 22, 2017 16:47 — forked from qevo/oauth2-scope.uml
UML for OAuth2 Authorize Scope Request
@startuml
title "OAuth2 Authorize Scope Request"
actor User
entity "Service 1" as MS1
entity "Service 2" as MS2
database SSO
User -> MS1 : Login
#!/bin/bash
# bash generate random alphanumeric string
#
# bash generate random 32 character alphanumeric string (upper and lowercase) and
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
# bash generate random 32 character alphanumeric string (lowercase only)
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1
@cornfeedhobo
cornfeedhobo / test.go
Created November 19, 2016 16:18
HCL parsing strangeness
// Copyright © 2016 cornfeedhobo
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in