Skip to content

Instantly share code, notes, and snippets.

View damif94's full-sized avatar

Damián Ferencz damif94

View GitHub Profile
@damif94
damif94 / install.mjs
Last active January 27, 2024 21:35
install.mjs
#!/usr/bin/env zx
const latestNixModulesUrl = 'https://draftea-cdn-prod.s3.us-east-2.amazonaws.com/xb/nix/nix-modules-latest.zip'
const homeManagerPath = `${process.env.HOME}/.config/home-manager`
async function getSystemArch() {
let arch = await $`uname -m`
switch (arch.stdout.trim()) {
case 'x86_64':
#!/bin/bash
#
# shellcheck disable=SC1090,SC1091,SC2010,SC2016,SC2046,SC2086,SC2174,SC2181
#
# Copyright (c) 2015-2023 OpenMediaVault Plugin Developers
# Copyright (c) 2017-2020 Armbian Developers
#
# This file is licensed under the terms of the GNU General Public
# License version 2. This program is licensed "as is" without any
# warranty of any kind, whether express or implied.
@damif94
damif94 / factories_demo.go
Last active February 28, 2023 14:36
Factories for test demo
package main
import (
"encoding/json"
"fmt"
"github.com/Drafteame/game-engine/internal/models"
"github.com/Drafteame/game-engine/internal/test/factories"
"github.com/Drafteame/game-engine/internal/test/randomdata"
"github.com/bluele/factory-go/factory"
"go.mongodb.org/mongo-driver/bson/primitive"
@damif94
damif94 / Contributing.md
Created February 16, 2021 23:50 — forked from MarcDiethelm/Contributing.md
How to contribute to a project on Github

This text now lives at https://github.com/MarcDiethelm/contributing/blob/master/README.md. I turned it into a Github repo so you can, you know, contribute to it by making pull requests.


Contributing

If you want to contribute to a project and make it better, your help is very welcome. Contributing is also a great way to learn more about social coding on Github, new technologies and and their ecosystems and how to make constructive, helpful bug reports, feature requests and the noblest of all contributions: a good, clean pull request.