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
;;; gosmacs.el --- rebindings to imitate Gosmacs. | |
;; Copyright (C) 1986 Free Software Foundation, Inc. | |
;; Maintainer: FSF | |
;; Keywords: emulations | |
;; This file is part of GNU Emacs. | |
;; GNU Emacs is free software; you can redistribute it and/or modify |
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
import logging | |
import sys | |
from logging import config | |
# REF, modified from: | |
# https://stackoverflow.com/a/19367225 | |
if sys.platform == "darwin": | |
address = '/var/run/syslog' | |
facility = 'local1' |
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 | |
from PIL import Image | |
import sys | |
import time | |
import os | |
from os import path | |
import shutil | |
from optparse import OptionParser |
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
import sys | |
import logging | |
import logging.config | |
import random | |
import string | |
# "thank you" to folks on StackOverflow.com for various ideas, | |
# for this example. Works with Python3. |
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 | |
from clom import clom | |
from pprint import pprint as pp | |
# Install, into a virtualenv: pip install clom | |
# | |
# Reference: | |
# http://clom.readthedocs.org/en/latest/ | |
# Derived from: |
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 | |
from __future__ import print_function | |
from pprint import pprint | |
# install into a virtual-env: pip install sh | |
# | |
# References: | |
# http://amoffat.github.com/sh | |
# | |
# Inspired by: |
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 | |
# MacOS *specific*, 'sshfs' remote-mounts | |
# - tested on MacOS catalina; latest MacOS Fuse & sshfs | |
# - 10-02-2021 Sat | |
# NOTE: | |
# sudo mkdir -p /private/ssh # and do a 'chmod, chgrp'... | |
# drwxrwsr-x 5 root admin 160 Oct 2 08:32 /private/ssh/ | |
# - install, MacOS FUSE, sshfs from https://osxfuse.github.io/ |
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/sh | |
# "git fetch all branches" -- to your local-repo | |
## to RUN-ME: | |
## git branch -r | sed -r -e 's:origin/::g' -e '/^\s+HEAD/d' | egrep -v gerrit/ > /tmp/foo | |
# ... gives you a chance, to change the "temp list of Branches to fetch" | |
## cat /tmp/foo ## hand-edit, if needed |
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
# -*-conf-*- | |
[user] | |
# email = biggers@utsl.com | |
email = mabigger@cisco.com | |
name = Mark Biggers | |
[core] | |
autocrlf = input | |
safecrlf = false | |
pager = less -+S |
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
# /home/mabigger/.bashrc.win -*-sh-*- | |
# ---- References | |
# https://nickjanetakis.com/blog/setting-up-docker-for-windows-and-wsl-to-work-flawlessly | |
# https://sourceforge.net/projects/vcxsrv/ | |
CEC=mabigger | |
sudo mount --bind /mnt/c /c |
NewerOlder