Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View fpauser's full-sized avatar

Falk Pauser fpauser

View GitHub Profile
@fpauser
fpauser / README.md
Last active April 28, 2023 09:07
Fix glib2 issues preventing openvpn3-client from working
import Component from '@glimmer/component';
export default class extends Component {
@tracked
_nextId = 0;
@tracked
_patches: Patch[] = [];
get defaultHyperItem() {
Transaction ID : 185
Begin time : Thu Apr 21 08:26:20 2022
Begin rpmdb : 87ed577b823171eda3da9b6c471deb51baf54bd2
End time : Thu Apr 21 08:29:12 2022 (172 seconds)
End rpmdb : 79cb69dcfff807c6349c8aa685aed93335eea4b0
User : System <unset>
Return-Code : Success
Releasever : 35
Command Line : system-upgrade upgrade
Comment :
@fpauser
fpauser / rbenv-install-system-wide.sh
Last active December 30, 2020 21:53 — forked from jnx/rbenv-install-system-wide.sh
rbenv single & system-wide installation for Debian (tested with Debian 7.1) & Ubuntu (tested with Ubuntu 12.04 LTS)
# Update, upgrade and install development tools:
apt-get update
apt-get -y upgrade
apt-get -y install build-essential
apt-get -y install git-core
# Install rbenv
git clone https://github.com/sstephenson/rbenv.git /usr/local/rbenv
# Add rbenv to the path:

Running X11 applications using Podman

This is a short tutorial on using podman to run X11 applications. This need often arises when one has to run X11 applications on distros such as Silverblue, when the application for instance has no Flatpak and one doesn't want to install the particular app on their host OS (for instance for Silverblue this process would result in the need to layer a package and then reboot, something which understandably would get quite irritating after a while).

@fpauser
fpauser / Flexible Dockerized Phoenix Deployments.md
Created March 24, 2020 23:41 — forked from jswny/Flexible Dockerized Phoenix Deployments.md
A guide to building and running zero-dependency Phoenix (Elixir) deployments with Docker. Works with Phoenix 1.2 and 1.3.

Prelude

I. Preface and Motivation

This guide was written because I don't particularly enjoy deploying Phoenix (or Elixir for that matter) applications. It's not easy. Primarily, I don't have a lot of money to spend on a nice, fancy VPS so compiling my Phoenix apps on my VPS often isn't an option. For that, we have Distillery releases. However, that requires me to either have a separate server for staging to use as a build server, or to keep a particular version of Erlang installed on my VPS, neither of which sound like great options to me and they all have the possibilities of version mismatches with ERTS. In addition to all this, theres a whole lot of configuration which needs to be done to setup a Phoenix app for deployment, and it's hard to remember.

For that reason, I wanted to use Docker so that all of my deployments would be automated and reproducable. In addition, Docker would allow me to have reproducable builds for my releases. I could build my releases on any machine that I wanted in a contai

@fpauser
fpauser / rust_wine.md
Created December 12, 2019 09:12 — forked from vi/rust_wine.md
Using Rust in Wine as a sort of cross-compiler

Cross-compiling Rust from Linux to Windows using Wine

0. Ensure Rust works on Host

Let's create a dummy project for a test.

$ cargo new test
$ cd test/
$ mkdir examples

Keybase proof

I hereby claim:

  • I am fpauser on github.
  • I am fpauser (https://keybase.io/fpauser) on keybase.
  • I have a public key ASDrheWhV9hcswZWgJj4b2tWHQnbcUVu9pkrLWqQpJv2TAo

To claim this, I am signing this object:

[21:56 fpauser ~/dev]$ cd nerves-examples/
[21:56 fpauser ~/dev/nerves-examples (master)]$ ls
blinky hello_gpio hello_gpio_input hello_leds hello_network hello_phoenix hello_wifi neopixel README.md
[21:56 fpauser ~/dev/nerves-examples (master)]$ cd hello_phoenix/
[21:57 fpauser ~/dev/nerves-examples/hello_phoenix (master)]$ ls
apps config mix.exs mix.lock README.md
[21:57 fpauser ~/dev/nerves-examples/hello_phoenix (master)]$ export MIX_TARGET=rpi3
[21:57 fpauser ~/dev/nerves-examples/hello_phoenix (master)]$ mix deps.get
Env
MIX_TARGET: rpi3
@fpauser
fpauser / bash.log
Created May 22, 2017 15:43
Nerves app
fpauser@2183NB223:~/dev/elixir$ mix new nerves_test --umbrella
* creating .gitignore
* creating README.md
* creating mix.exs
* creating apps
* creating config
* creating config/config.exs
Your umbrella project was created successfully.
Inside your project, you will find an apps/ directory