THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| .gist-highlight { | |
| border-left: 3ex solid #eee; | |
| position: relative; | |
| } | |
| .gist-highlight pre { | |
| counter-reset: linenumbers; | |
| } | |
| .gist-highlight pre div:before { |
| import sys | |
| import time | |
| import subprocess | |
| import types | |
| from tempfile import TemporaryFile | |
| def remote_sh(target_host, login, password, command_text, stdout=None, stderr=None): | |
| winrs_text = 'winrs -remote:{0} -username:{1} -password:{2} -noprofile {3}'.format( | |
| target_host, login, password, command_text) | |
| #print('winrs text: {0}\n'.format(winrs_text)) |
| #!/usr/lib/env ruby | |
| # Acquires a shared lock on a SQLite database file and copies it to a backup | |
| # usage: backup-db.rb DBFILE.db BACKUPFILE.db | |
| # author: William Benton (willb@redhat.com) | |
| # Public domain. | |
| require 'sqlite3' | |
| require 'fileutils' |
| #!/usr/bin/ipython2 -i | |
| """ | |
| This script should be run from a folder residing at the toplevel of the kernel source tree, and which also contains | |
| https://raw.github.com/ulfalizer/Kconfiglib/master/kconfiglib.py | |
| Invoke as follows: | |
| ./kconfig-diff.py x86 DEFAULT kern1.conf kern2.conf kern3.conf |
| import json, datetime | |
| class RoundTripEncoder(json.JSONEncoder): | |
| DATE_FORMAT = "%Y-%m-%d" | |
| TIME_FORMAT = "%H:%M:%S" | |
| def default(self, obj): | |
| if isinstance(obj, datetime.datetime): | |
| return { | |
| "_type": "datetime", | |
| "value": obj.strftime("%s %s" % ( |
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| # This gist is compatible with Ansible 1.x . | |
| # For Ansible 2.x , please check out: | |
| # - https://gist.github.com/dmsimard/cd706de198c85a8255f6 | |
| # - https://github.com/n0ts/ansible-human_log | |
| # This program 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 | |
| # (at your option) any later version. | |
| # |
The DXF and PDF files for the enclosure custom machining can be found in the USRP B2x0 Enclosure page
| @ECHO OFF | |
| SETLOCAL | |
| GOTO:MAIN | |
| REM | |
| REM Info functions start | |
| REM | |
| REM Display version and copyright information | |
| :VERSION |