Skip to content

Instantly share code, notes, and snippets.

nando nand0p

Block or report user

Report or block nand0p

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View nix-store-example.txt
# echo $PATH
/home/nando/bin:/run/wrappers/bin:/etc/per-user-pkgs/nando/bin:/home/nando/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin
# ls -la $(which electricsheep)
lrwxrwxrwx 1 root root 93 Dec 31 1969 /run/current-system/sw/bin/electricsheep -> /nix/store/c5hivhjb18h9vqinqmh1c6m6nhnr66gm-electricsheep-2.7b33-2017-02-04/bin/electricsheep
View buildbot-mod-truncated.txt
# NixOS module for Buildbot continous integration server.
# Full file at https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/continuous-integration/buildbot/master.nix
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.buildbot-master;
escapeStr = s: escape ["'"] s;
masterCfg = if cfg.masterCfg == null then pkgs.writeText "master.cfg" ''
from buildbot.plugins import *
View electricsheep
{ stdenv, fetchFromGitHub, autoreconfHook, wxGTK30, libav, lua5_1, curl
, libpng, xorg, pkgconfig, flam3, libgtop, boost, tinyxml, freeglut, mesa, glee }:
stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "electricsheep";
version = "2.7b33-2017-02-04";
src = fetchFromGitHub {
owner = "scottdraves";
repo = pname;
View buildbot-test.txt
# Test ensures buildbot master comes up correctly and workers can connect
import ./make-test.nix ({ pkgs, ... } : {
name = "buildbot";
nodes = {
bbmaster = { config, pkgs, ... }: {
services.buildbot-master = {
enable = true;
package = pkgs.buildbot-full;
# NOTE: use fake repo due to no internet in hydra ci
View kde5-plasma-desktop-wallpaper-randomizer
#!/usr/bin/env python
import os
import random
import subprocess
from textwrap import dedent
image_dir = "/home/nando/Pictures/nasa"
View nginx.nix
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.nginx;
virtualHosts = mapAttrs (vhostName: vhostConfig:
let
serverName = if vhostConfig.serverName != null
then vhostConfig.serverName
View configuration.nix
{ config, pkgs, ... }:
{
imports = [
./hardware-configuration.nix
./hosts.nix
];
system = {
stateVersion = "17.03";
copySystemConfiguration = true;
autoUpgrade = {
View configuration.nix
{ config, pkgs, ... }:
{
imports = [
./hardware-configuration.nix
./hosts.nix
];
system = {
stateVersion = "17.03";
View containerize-jenkins-job-output.txt
Started by user admin
Building in workspace /var/lib/jenkins/.jenkins/workspace/test
[test] $ /bin/sh -xe /tmp/jenkins5123811298485596202.sh
+ terraform --version
Terraform v0.9.2
+ docker --version
Docker version 17.04.0-ce, build 4845c56
+ ansible --version
ansible 2.2.2.0
config file =
View containerize-jenkins.sh
docker build /path/to/Dockerfile -t nand0p/jenkins-centos
docker run -d --privileged=true \
--net=host \
--volume /dev/vboxdrv:/dev/vboxdrv \
--volume /var/lib/jenkins:/var/lib/jenkins \
--volume /var/run/docker.sock:/var/run/docker.sock \
--name jenkins-centos nand0p/jenkins-centos
You can’t perform that action at this time.