Skip to content

Instantly share code, notes, and snippets.

View phryneas's full-sized avatar
🫖
418 I'm a teapot.

Lenz Weber-Tronic phryneas

🫖
418 I'm a teapot.
View GitHub Profile
@phryneas
phryneas / home-manager-module.nix
Last active June 14, 2020 09:02
vscode-liveshare-home-manager-nixos
{pkgs, lib, config, ...}:
with lib;
let
liveshareGist = builtins.fetchTarball {
url = "https://gist.github.com/phryneas/698996d24748d3ce7f61ef818949a28e/archive/3dbf12cd282ebcb6cacf40d466e4a519d4ce1dfe.tar.gz";
sha256 = "0mas9rnr6hn7yiivjs5xvnprhrqwac47nqfxh3vgmm67v982v83l";
};
livesharePkg = pkgs.callPackage liveshareGist {};
cfg = config.services.vsliveshare;
pkg = livesharePkg.override { enableDiagnosticsWorkaround = cfg.enableDiagnosticsWorkaround; };
{ stdenv, runCommand, electron, callPackage,
bash, python, jq, nodejs-8_x, node? nodejs-8_x, neovim, ripgrep, xorg,
...}:
let
yarn2nix = callPackage ( builtins.fetchTarball {
url = "https://github.com/phryneas/yarn2nix/archive/8a6b9dcf7cef8840eb7bc64d7639bad566af2e9d.tar.gz " ;
sha256 = "0ih11vcd9ad5y13877bxz7ijsykhqwdfwmvwhic3xlgcdhxji80v";
}) {};
version = "v0.3.6";
oniSrc = builtins.fetchTarball {
{ config, pkgs, ... }:
{
imports =
[
./hardware-configuration.nix
# use zfs from current master instead of nixos bundled versoin
./zfs-master.nix
];
{ stdenv, vscode-utils, autoPatchelfHook,
/*icu, curl, lttng-ust,*/ libX11, gnome3,
utillinux, openssl, icu, zlib, curl, lttng-ust, libsecret, libkrb5,
gcc, libunwind, binutils
}:
let
runtimeVersion = "2.1.1";
runtimeHash = "6985b9f6844d51ba1197c3f52aabc7291bb15bc1";
runtime = fetchTarball {
url = "https://download.microsoft.com/download/9/3/E/93ED35C8-57B9-4D50-AE32-0330111B38E8/dotnet-runtime-${runtimeVersion}-linux-x64.tar.gz";

Keybase proof

I hereby claim:

  • I am phryneas on github.
  • I am phryneas (https://keybase.io/phryneas) on keybase.
  • I have a public key whose fingerprint is 8331 9323 EF6D 1C7E 8835 59A1 D8C4 AE56 B76C 94DD

To claim this, I am signing this object:

@phryneas
phryneas / package.json
Last active March 8, 2018 17:46
barcamp-demo: writing redux
{
"name": "demo-redux",
"version": "1.0.0",
"description": "",
"main": "thunk.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
@phryneas
phryneas / BgCallExample.js
Created June 11, 2017 12:42
transparent asynchronous calls in a firefox plugin
/**
* @property {boolean} synchronousCalls
* @property {string} instanceName
*/
class BgCallExample {
/**
* @param {boolean} synchronousCalls
* @param {string} instanceName
*/
##########
# Tweaked Win10 Initial Setup Script
# Primary Author: Disassembler <disassembler@dasm.cz>
# Original Version: 1.4, 2016-01-16
# Tweaked based on personal preferences for @alirobe 2016-03-23 - v1.4.1
# NOTE: MAKE SURE YOU READ THIS SCRIPT CAREFULLY BEFORE RUNNING IT + ADJUST COMMENTING AS APPROPRIATE
# This script will reboot your machine when completed.
##########
# Ask for elevated permissions if required

Keybase proof

I hereby claim:

  • I am phryneas on github.
  • I am phryneas (https://keybase.io/phryneas) on keybase.
  • I have a public key ASAT-im6hheMKc7nriVshoD0OYx_8Ktg-x90l3IeVNGtWAo

To claim this, I am signing this object: