Skip to content

Instantly share code, notes, and snippets.

View dfrankland's full-sized avatar
🏕️
Catching Pokemon

Dylan Frankland dfrankland

🏕️
Catching Pokemon
View GitHub Profile
@dfrankland
dfrankland / flake.lock
Created October 21, 2021 23:42
Nix Flake / Shell for Node.js Projects With Native Dependencies
{
"nodes": {
"flake-utils": {
"locked": {
"lastModified": 1629481132,
"narHash": "sha256-JHgasjPR0/J1J3DRm4KxM4zTyAj4IOJY8vIl75v/kPI=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "997f7efcb746a9c140ce1f13c72263189225f482",
"type": "github"
@dfrankland
dfrankland / cypress-nix-shell.sh
Created October 5, 2021 03:21
Quickly create an environment to run Cypress within nix
nix-shell -E 'with import <nixpkgs> { }; runCommand "dummy" { buildInputs = [ cypress ]; shellHook = "export CYPRESS_INSTALL_BINARY=0 CYPRESS_RUN_BINARY=${cypress}/bin/Cypress;"; } ""'
@dfrankland
dfrankland / flake.lock
Last active February 19, 2022 13:23
Nix Flake / Shell for Java Projects
{
"nodes": {
"flake-utils": {
"locked": {
"lastModified": 1634851050,
"narHash": "sha256-N83GlSGPJJdcqhUxSCS/WwW5pksYf3VP1M13cDRTSVA=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "c91f3de5adaf1de973b797ef7485e441a65b8935",
"type": "github"
@dfrankland
dfrankland / configuration.nix
Created June 19, 2021 19:18 — forked from RobBlackwell/configuration.nix
NixOS on Dell XPS 13
# 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
@dfrankland
dfrankland / LICENSE
Created June 4, 2021 20:32 — forked from binji/LICENSE
pokegb.cc w/o macros
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 copies or substantial portions of the Software.
@dfrankland
dfrankland / configuration.nix
Created May 10, 2021 05:11
Default configuration files for NixOS with GNOME 3 on a Proxmox VM
# 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
@dfrankland
dfrankland / install-nix.fish
Last active March 18, 2021 22:38
Install Nix using Fish shell
#!/usr/bin/env fish
# Install fisher
curl -sL https://git.io/fisher | source && fisher install jorgebucaran/fisher
# Install nix-env fisher plugin
fisher install lilyball/nix-env.fish
# Install Nix
curl -sL https://nixos.org/nix/install | sh
@dfrankland
dfrankland / steps-to-use-pritunl-on-a-server.md
Last active April 5, 2023 14:11
Steps to use Pritunl on a server or headless environment
@dfrankland
dfrankland / gpg-signing.md
Created February 8, 2021 18:32 — forked from xavierfoucrier/gpg-signing.md
GPG signing with Git and Github Desktop

Hi Github users,

You can now signed your commits on Github using at least Git 2.18.0 and Github Desktop 1.6.1.

  1. Generate a GPG key and add it to Github: https://help.github.com/articles/generating-a-new-gpg-key (if you don't want to type a passphrase on every commit, you need to press "Enter" when the console will prompt you to type a passphrase)

  2. Configure Git properly by editing the .gitconfig file using the command line git config --global --edit in a terminal, then replace YOUR_GITHUB_EMAIL, YOUR_SIGNING_KEY and GPG_BINARY_PATH with your data

@dfrankland
dfrankland / notes-on-running-random-binaries-in-NixOS.md
Last active January 9, 2021 21:41
Notes on running random binaries in NixOS

Notes on running random binaries in NixOS

To run Rust binaries:

  1. Export LD_LIBRARY_PATH env var

    export LD_LIBRARY_PATH="$(echo /nix/store/*-extra-utils/lib)"