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/perl -w | |
# Oskar Liljeblad 2008-10-17 | |
package TSM; | |
use strict; | |
use Encode; | |
$TSM::dsmadmc = 'dsmadmc'; | |
$TSM::username = 'admin'; |
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 | |
# Siptrack dynamic inventory script for Ansible. | |
# Depends on siptracklib | |
# * https://github.com/sii/siptracklib | |
# | |
#http://docs.ansible.com/ansible/latest/dev_guide/developing_inventory.html | |
# | |
# by Stefan Midjich <swehack at gmail dot com> |
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
// build: go build password.go | |
// run: ./password -password='clear text' | |
// use HISTCONTROL=ignoreboth and indent commands with one space to avoid | |
// saving passwords in your shell history. | |
package main | |
import ( | |
"os" | |
"fmt" |
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
/*sex.c*/ | |
/* Original author unknown. Presumably this is public domain by now. | |
* If you are the original author or know the original author, please | |
* contact <freebsd@spatula.net> | |
* | |
* Orphan code cleaned up a bit by Nick Johnson <freebsd@spatula.net> | |
* Completely rewrote how word wrapping works and added -w flag. | |
*/ |
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/python -tt | |
# (c) 2012, Stefan Midjich | |
# Written by Stefan Midjich <swehack@gmail.com> | |
# | |
# This module was written for Ansible. | |
# It doesn't support all of Homebrew yet. | |
# | |
# Ansible is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or |
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 bash | |
# Simple backup script for borg. http://borgbackup.readthedocs.io/en/stable/ | |
# Install on Fedora: sudo dnf install borgbackup | |
# | |
# Configure BORG_REPO below to match some path on your own system. In my case | |
# it points to an autofs mount on my network backup device. | |
# Configure your own borg_excludes. | |
# by Stefan Midjich <swehack at gmail dot com> | |
export BORG_REPO="/media/nas/backups/$(hostname -s)-borgbackup" |
OlderNewer