Skip to content

Instantly share code, notes, and snippets.

default via 192.168.1.254 dev wlp3s0 proto dhcp metric 600
172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1
172.37.17.0/24 dev dummy0 proto kernel scope link src 172.37.17.1
192.168.1.0/24 dev wlp3s0 proto kernel scope link src 192.168.1.183 metric 600
192.168.56.0/24 dev vboxnet0 proto kernel scope link src 192.168.56.1 linkdown
# generated using pypi2nix tool (version: 1.8.1)
# See more at: https://github.com/garbas/pypi2nix
#
# COMMAND:
# pypi2nix -V 2.7
#
{ pkgs ? import <nixpkgs> {}
}:
{ lib, stdenv, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "go-jira";
version = "1.0.23";
modSha256 = "03adxj2nk1c3gciwxnl4yv2m3mm554yzp04j3mb4paaq79c3b3z2";
subPackages = [ "cmd/jira" ];
src = fetchFromGitHub {
#! /usr/bin/env nix-shell
#! nix-shell -i bash -p postgresql_11
pg_dump --no-owner --no-privileges --schema-only database -f /tmp/database_back.sql -h example.com -U a_user
@nyarly
nyarly / gist:3e16147bc0b7ec7716be95026720fb35
Last active March 22, 2019 04:01
Don't push to master, clumsy
#!/usr/bin/env bash
if [ "$(git config --get branch.master.foolhardy)" = 'true' ]; then
exit 0
fi
while read local lsha remote rsha; do
case $remote in
**/master)
#!/usr/bin/env bash
if [ "$(git config --get branch.master.foolhardy)" = 'true' ]; then
exit 0
fi
while read local lsha remote rsha; do
case $remote in
**/master)
#!/usr/bin/env bash
if [ "$(git config --get branch.master.foolhardy)" = 'true' ]; then
exit 0
fi
while read local lsha remote rsha; do
case $remote in
**/master)
with (import /home/judson/dev/nixpkgs {});
(bundlerEnv {
pname = "shex-map";
gemdir = ./.;
groups = [ "default" "development" ];
}).env
{ pkgs ? import <nixpkgs> {} }:
let
inherit (pkgs) lib stdenv ruby_2_3 rake bundler bundlerEnv openssl defaultGemConfig;
rubyEnv = bundlerEnv {
name = "mezzo";
ruby = ruby_2_3;
gemdir = ./.;
@nyarly
nyarly / cvimrc
Last active March 3, 2019 18:55
cVim config
let vimport = 18001
iunmap <C-k>
set numerichints
set typelinkhints
site "*://docs.rs/*" {
unmapAll
map J previousTab
map K nextTab