This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while (true); do | |
echo . | |
date | |
x=$(dig @8.8.8.8) | |
if [[ "$x" == *connection\ timed\ out* ]]; then | |
echo ------=====OFFLINE=====------ | |
echo $x | |
ping -c 1 8.8.4.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
import re | |
import sys | |
import boto | |
import pprint | |
del_match = sys.argv[1] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nandoP: .version | |
[02:12am] OpsBot: nandoP: Willie v. 3.1.3 at commit: | |
[02:12am] OpsBot: commit 6c882b6dfcc19dd0897e8db1bfcbae55debb3830 | |
[02:12am] OpsBot: Author: Edward Powell <powell.518@gmail.com> | |
[02:12am] OpsBot: Date: Tue Jan 22 15:11:22 2013 -0500 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ config, pkgs, ... }: | |
{ | |
imports = [ | |
./hardware-configuration.nix | |
./hosts.nix | |
]; | |
system = { | |
stateVersion = "17.03"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ config, lib, pkgs, ... }: | |
with lib; | |
let | |
cfg = config.services.nginx; | |
virtualHosts = mapAttrs (vhostName: vhostConfig: | |
let | |
serverName = if vhostConfig.serverName != null | |
then vhostConfig.serverName |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
import random | |
import subprocess | |
from textwrap import dedent | |
image_dir = "/home/nando/Pictures/nasa" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ 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; |
OlderNewer