Skip to content

Instantly share code, notes, and snippets.

View liquuid's full-sized avatar

Fernando Henrique liquuid

View GitHub Profile
@liquuid
liquuid / shell.nix
Created October 8, 2022 23:58
shell.nix for python environment
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
# nativeBuildInputs is usually what you want -- tools you need to run
nativeBuildInputs = [ pkgs.python39Full pkgs.python39Packages.invoke pkgs.python39Packages.pip pkgs.python39Packages.pipx pkgs.docker-compose pkgs.docker pkgs.vscodium-fhs];
shellHook = ''
pipx install copier
pipx install pre-commit
pipx ensurepath
'';
}
@liquuid
liquuid / shell.nix
Created October 8, 2022 23:57
shell.nix for Android
with import <nixpkgs> {};
let
jdk = openjdk;
node = nodejs-14_x;
sdk = androidenv.androidsdk {
platformVersions = [ "23" ];
abiVersions = [ "x86" ];
useGoogleAPIs = true;
useExtraSupportLibs = false;
@liquuid
liquuid / shell.nix
Created October 8, 2022 23:54
shell.nix for SDL2 + Cmake project
with import <nixpkgs> {};
let fhs = pkgs.buildFHSUserEnv {
name = "myenv";
targetPkgs = pkgs: with pkgs;
[ zlib SDL2 SDL2.dev SDL2_image SDL2_mixer libtool binutils cmake ];
runScript = "bash";
profile = "
export LD_LIBRARY_PATH=/usr/lib:/usr/lib32
";
@liquuid
liquuid / configuration.nix
Created August 6, 2021 11:32
configuração do nixos usado no vídeo: distro hopper #168
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
@liquuid
liquuid / get-driver.sh
Created July 17, 2020 02:57
helper script to detect used linux modules
#!/bin/sh
#
# Find all modules and drivers for a given class device.
#
if [ $# != "1" ] ; then
echo
echo "Script to display the drivers and modules for a specified sysfs
class device"
echo "usage: $0 <CLASS_NAME>"
echo
@liquuid
liquuid / snapcraft.yaml
Created February 5, 2018 16:59
snapcraft with completer enabled
name: subutai
version: "7.0.0-master"
grade: stable
confinement: devmode
summary: Open Source LXC orchestration tool
description: "For more details please visit our site: https://subut.ai"
apps:
subutai:
command: bin/subutai
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@liquuid
liquuid / LICENSE.txt
Created November 3, 2011 08:32 — forked from p01/LICENSE.txt
Music SoftSynth
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Mathieu 'p01' Henri http://www.p01.org/releases/
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@liquuid
liquuid / LICENSE.txt
Created November 3, 2011 08:32 — forked from aemkei/LICENSE.txt
Latitude Longitude Distance - 140byt.es
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE