Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| #!/bin/bash | |
| # A simple script to backup an organization's GitHub repositories. | |
| #------------------------------------------------------------------------------- | |
| # NOTES: | |
| #------------------------------------------------------------------------------- | |
| # * User @jimklimov (and probably some others called out in the long comment | |
| # thread below) have modified this script to make it more robust and keep | |
| # up with various changes in the GitHub API and response format at: | |
| # https://github.com/jimklimov/github-scripts |
| #!/bin/bash | |
| # git-standup: find out what you did yesterday (or last friday). | |
| # | |
| # Setup: | |
| # 1. Change AUTHOR if your git user doesn't match your unix account. | |
| # 2. Save somewhere on your path, make executable. | |
| # 3. git config --global alias.standup '!git-standup' | |
| # 4. Profit. | |
| # | |
| # Original idea via @paulgreg (https://twitter.com/paulgreg/status/248686055727972352) |
| ddns-update-style none; | |
| deny bootp; #default | |
| authoritative; | |
| include "/etc/dhcp/ipxe-option-space.conf"; | |
| # GREEN (private network) | |
| subnet 10.1.1.0 netmask 255.255.255.0 { | |
| range 10.1.1.100 10.1.1.199; | |
| option subnet-mask 255.255.255.0; |
| >>> from jinja2 import Template | |
| >>> tmpl = """{% if name != "Jeff" %}Nothing to see here move along{% else %} | |
| ... hello {{name}}, how are you?{% endif %}""" | |
| >>> template = Template(tmpl) | |
| >>> print template.render({"name": "Jeff"}) | |
| hello Jeff, how are you? | |
| >>> print template.render({"name": "John"}) | |
| Nothing to see here move along | |
| >>> |
| # Generating throwaway QR codes from the command line for shunting URLS to mobile devices | |
| brew install qrencode | |
| qrencode -o - http://www.google.com | open -f -a preview |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| import getopt | |
| import pycassa | |
| import subprocess | |
| import sys | |
| from pycassa.pool import ConnectionPool | |
| from pycassa.columnfamily import ColumnFamily | |
| def query_typename(column, typename): | |
| data = column.get(typename.replace('-', '_')) |
| Enable-RemoteDesktop | |
| Set-WindowsExplorerOptions -enableshowHiddenFilesFoldersDrives -enableshowProtectedOSFiles -enableshowFileExtensions | |
| cinst VisualStudio2013Ultimate -InstallArguments WebTools | |
| cinst fiddler4 | |
| cinst mssqlserver2012express | |
| cinst console-devel | |
| cinst sublimetext2 | |
| cinst poshgit | |
| cinst googlechrome | |
| cinst windirstat |
Located in alphabetical order (not prefer)
Cab), also designed as a more modern replacement, written in Cgolang)| MIT License | |
| Copyright (c) 2014 Piotr Kuczynski | |
| Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
| The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWAR |