Skip to content

Instantly share code, notes, and snippets.

@unraze
unraze / elegoo_neptune_3.def.json
Created August 24, 2022 03:45
Official Elegoo Neptune 3 Cura Machine Profile
View elegoo_neptune_3.def.json
{
"version": 2,
"name": "ELEGOO NEPTUNE 3",
"inherits": "fdmprinter",
"metadata": {
"visible": true,
"author": "ELEGOO",
"manufacturer": "ELEGOO",
"category": "ELEGOO",
"file_formats": "text/x-gcode",
@palewire
palewire / README.md
Last active March 29, 2023 15:25
How to push tagged Docker releases to Google Artifact Registry with a GitHub Action
View README.md

How to push tagged Docker releases to Google Artifact Registry with a GitHub Action

Here's how I configured a GitHub Action so that a new version issued by GitHub's release interface will build a Dockerfile, tag it with the version number and upload it to Google Artifact Registry.

Before you attempt the steps below, you need the following:

  • A GitHub repository that contains a working Dockerfile
  • The Google Cloud SDK tool gcloud installed and authenticated

Create a Workload Identity Federation

@andrebrait
andrebrait / keychron_linux.md
Last active April 1, 2023 00:01
Keychron keyboards on Linux + Bluetooth fixes
View keychron_linux.md

Here is the best setup (I think so :D) for K-series Keychron keyboards on Linux.

Most of these commands have been tested on Ubuntu 20.04 and should also work on most Debian-based distributions. If a command happens not to work for you, take a look in the comment section.

Make Fn + F-keys work

Keychron Keyboards on Linux use the hid_apple driver (even in Windows/Android mode), both in Bluetooth and Wired modes. By default, this driver uses the F-keys as multimedia shortcuts and you have to press Fn + the key to get the usual F1 through F12 keys.

@tomhicks
tomhicks / plink-plonk.js
Last active January 18, 2023 15:57
Listen to your web pages
View plink-plonk.js
@hmanzur
hmanzur / Dockerrun.aws.json
Last active January 31, 2022 15:25
Beanstalk Environments to Docker container build in .env file
View Dockerrun.aws.json
{
"AWSEBDockerrunVersion": "1",
"Logging": "/tmp/app",
"Image": {
"Update": "true"
}
}
@Xaero252
Xaero252 / Moved.md
Last active May 26, 2019 02:17
Enable nvdec support for plex dockers on unraid
@johndatserakis
johndatserakis / install-imagick-docker-php-7-1-alpine.md
Last active March 13, 2023 15:39
Install imagick In Docker FROM php:7.1-fpm-alpine
View install-imagick-docker-php-7-1-alpine.md

docker-library/php#105

RUN set -ex \
    && apk add --no-cache --virtual .phpize-deps $PHPIZE_DEPS imagemagick-dev libtool \
    && export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" \
    && pecl install imagick-3.4.3 \
    && docker-php-ext-enable imagick \
    && apk add --no-cache --virtual .imagick-runtime-deps imagemagick \
 && apk del .phpize-deps
@Jobarion
Jobarion / THX.java
Last active November 6, 2022 03:26
THX Deep Note Generator
View THX.java
/*
MIT License
Copyright (c) 2018 Jonas Balsfulland
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 all
@kitze
kitze / store.js
Created January 24, 2018 13:14
simplified redux
View store.js
import produce from 'immer';
import {createStore} from 'redux';
const handleActions = (actionsMap, defaultState) => (
state = defaultState,
{type, payload}
) =>
produce(state, draft => {
const action = actionsMap[type];
action && action(draft, payload);
@MaxXor
MaxXor / gpu-passthrough.md
Created October 29, 2017 14:47
Arch GPU Passthrough Summary
View gpu-passthrough.md

Arch Linux GPU-Passthrough

A quick guide on how to setup a GPU-Passthorugh. Below are some of my Resources

The Arch Wiki is the goto place for additional information and performance tweaks like CPU-Pinning.

Requirements

  • IGPU or second dedicated GPU for Host system (unless you want to go the hard way and use one GPU for HOST and GUEST)