Skip to content

Instantly share code, notes, and snippets.

View akisys's full-sized avatar

Alexander Kuemmel akisys

  • AK Information Systems
View GitHub Profile
@ljos
ljos / cocoa_keypress_monitor.py
Last active August 12, 2024 17:34
Showing how to listen to all keypresses in OS X through the Cocoa API using Python and PyObjC
#!/usr/bin/env python
#
# cocoa_keypress_monitor.py
# Copyright © 2016 Bjarte Johansen <[email protected]>
#
# The MIT License (MIT)
#
# 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
@gmr
gmr / vpc.yaml
Last active November 4, 2022 13:59
Demonstration CloudFormation YAML template for creating a VPC
AWSTemplateFormatVersion: '2010-09-09'
Description: VPC Network Stack
Metadata: {}
Mappings: {}
Conditions: {}
Outputs: {}
Parameters:
CidrBlock:
AllowedPattern: '((\d{1,3})\.){3}\d{1,3}/\d{1,2}'
Default: 10.0.0.0/16
@bsodmike
bsodmike / README.md
Last active December 16, 2024 19:42
OC Nvidia GTX1070s in Ubuntu 16.04LTS for Ethereum mining

Following mining and findings performed on EVGA GeForce GTX 1070 SC GAMING Black Edition Graphics Card cards.

First run nvidia-xconfig --enable-all-gpus then set about editing the xorg.conf file to correctly set the Coolbits option.

# /etc/X11/xorg.conf
Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
@mcastelino
mcastelino / clearlinux_libvirt_virsh.md
Last active May 17, 2019 20:44
Creating Clearlinux VM's using Libvirt virsh

Creating Clearlinux VM's using Libvirt

Download the KVM image and OVMF.fd from

https://download.clearlinux.org/image/

Create a directory to hold your images

Uncompress the clearlinux image and call it clear.img

@ityonemo
ityonemo / test.md
Last active April 19, 2025 05:23
Zig in 30 minutes

A half-hour to learn Zig

This is inspired by https://fasterthanli.me/blog/2020/a-half-hour-to-learn-rust/

Basics

the command zig run my_code.zig will compile and immediately run your Zig program. Each of these cells contains a zig program that you can try to run (some of them contain compile-time errors that you can comment out to play with)