Skip to content

Instantly share code, notes, and snippets.

Avatar
🍞
brøt

ajs124 ajs124

🍞
brøt
View GitHub Profile
View integrity.nix
{ config, lib, pkgs, ... }: with lib;
let
cfg = config.boot.initrd.integrity;
in {
options.boot.initrd.integrity.devices = with types; mkOption {
description = ''
Standalone dm-integrity devices to open on boot.
These devices emulate a block device that has additional
per-sector tags that are used for storing integrity information.
View ejabberd.log
client # DEBUG Using selector: EpollSelector
client # [ 6.931400] systemd[1]: Started Login Service.
client # [ 6.933346] dbus-daemon[747]: [system] Successfully activated service 'org.freedesktop.systemd1'
client # DEBUG Loaded Plugin: RFC 6120: Stream Feature: START
View .zshrc
typeset -U path cdpath fpath manpath
for profile in ${(z)NIX_PROFILES}; do
fpath+=($profile/share/zsh/site-functions $profile/share/zsh/$ZSH_VERSION/functions $profile/share/zsh/vendor-completions)
done
HELPDIR="/nix/store/1sqg620vv5xjyyl687gd40dj1p46slyy-zsh-5.7.1/share/zsh/$ZSH_VERSION/help"
# Use emacs keymap as the default.
bindkey -e
@ajs124
ajs124 / Gemfile
Last active Apr 11, 2020
bbb greenlight package using bundix
View Gemfile
# frozen_string_literal: true
source 'https://rubygems.org'
git_source(:github) do |repo_name|
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
"https://github.com/#{repo_name}.git"
end
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
View gist:3432d730eb78c006edb562e171ea9f37
linuxPackages = super.linuxPackages.extend (selfLinux: superLinux: {
evdi = superLinux.callPackage ./evdi.nix {};
});
View gist:6402c6ca297f953d31c75a10b029135b
--- /tmp/test-01.unix.new.log 2020-01-02 00:47:10.366919517 +0100
+++ test-01.unix.new.log 2020-01-02 00:46:01.244632002 +0100
@@ -1,3 +1,4 @@
+/nix/store/xb062l4b76zyhq6grqf4iyfdikkpg8fl-bash-4.4-p23/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
WorkDir: /build/pysvn-1.9.11
PYTHON: /nix/store/d89hv7fvmky59qqgzb1yiwagv34i1q75-python3-3.7.5/bin/python3.7
Username: nixbld
@@ -10,6 +11,9 @@
Info: PYSVN command /nix/store/d89hv7fvmky59qqgzb1yiwagv34i1q75-python3-3.7.5/bin/python3.7 /build/pysvn-1.9.11/Examples/Client/svn_cmd.py --pysvn-testing 01.01.00 --config-dir /build/pysvn-1.9.11/Tests/testroot-01/configdir
Info: CWD: /build/pysvn-1.9.11/Tests/testroot-01
View wltrunk.nix
{ stdenv, fetchgit, wlroots, wayland-protocols, wayland, meson, ninja, cmake, pkgconfig, pixman, libxkbcommon, libudev, libGL, xorg }:
stdenv.mkDerivation {
pname = "wltrunk";
version = "2019-11-27";
src = fetchgit {
url = "https://git.sr.ht/~bl4ckb0ne/wltrunk";
rev = "5a234d3360b50764172e074ef969e40e600075c3";
sha256 = "1mvgchwppi2vrj25bgng3psyr0jkbah2419lp4hyqj6drb5r0l6q";
View gist:9080f16b3380fbbb7e72b0a07cfa1cc0
warning: refname '06eee4ea9420741f2e80497568fc6fd10ec5430f' is ambiguous.
Git normally never creates a ref that ends with 40 hex characters
because it will be ignored when you just specify 40-hex. These refs
may be created by mistake. For example,
git switch -c $br $(git rev-parse ...)
where "$br" is somehow empty and a 40-hex ref is created. Please
examine these refs and maybe delete them. Turn this message off by
running "git config advice.objectNameWarning false"
View default.nix
let
pkgs = import (builtins.fetchTarball {
url = "https://releases.nixos.org/nixos/unstable-small/nixos-19.09pre190928.b6d906732c8/nixexprs.tar.xz";
}) {};
src = pkgs.fetchFromGitHub {
owner = "frappe";
repo = "frappe";
rev = "12.0.8";
sha256 = "1hl1spypkibhbrvrql5r30bmwmrlbriyn8sm22kz9ah29jjm6l0y";
};
@ajs124
ajs124 / pifm.c
Created Jan 14, 2014
random version of pifm, not merged stereo support yet?
View pifm.c
// wget -O - http://beta.etherpad.org/p/pihackfm/export/txt 2>/dev/null | gcc -lm -std=c99 -g -xc - && ./a.out beatles.wav
// Access from ARM Running Linux
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <dirent.h>
#include <math.h>
#include <fcntl.h>
#include <assert.h>
You can’t perform that action at this time.