These rules are adopted from the AngularJS commit conventions.
This file contains hidden or 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
| // ==UserScript== | |
| // @name Open in godoc | |
| // @namespace https://github.com/knight42 | |
| // @version 0.1 | |
| // @description Open godoc from GitHub | |
| // @author knight42 | |
| // @include https://github.com/*/* | |
| // @exclude https://github.com/*/*/blob/* | |
| // @exclude https://github.com/settings/* | |
| // @exclude https://github.com/orgs/* |
This file contains hidden or 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 -O | |
| # -*- coding: utf-8 -*- | |
| import yaml | |
| import sys | |
| def delete_key(d, *keys): | |
| for key in keys: | |
| if d.get(key) is not None: |
This file contains hidden or 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 -O | |
| # -*- coding: utf-8 -*- | |
| #from __future__ import print_function, unicode_literals, with_statement, division, absolute_import | |
| # import os | |
| # import random | |
| # import requests | |
| import sys | |
| import requests |
This file contains hidden or 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
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "strconv" | |
| "github.com/miekg/dns" | |
| ) |
This file contains hidden or 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 | |
| # | |
| # Decompressor/compressor for files in Mozilla's "mozLz4" format. Firefox uses this file format to | |
| # compress e. g. bookmark backups (*.jsonlz4). | |
| # | |
| # This file format is in fact just plain LZ4 data with a custom header (magic number [8 bytes] and | |
| # uncompressed file size [4 bytes, little endian]). | |
| # | |
| # This Python 3 script requires the LZ4 bindings for Python, see: https://pypi.python.org/pypi/lz4 | |
| # |
This file contains hidden or 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 | |
| SWAGGER_DOCS_PORT=${SWAGGER_DOCS_PORT:-8080} | |
| d=$(mktemp -d) | |
| cd $d || exit 1 | |
| wget -q https://raw.githubusercontent.com/moby/moby/master/api/swagger.yaml | |
| docker run --rm -tid -v "$PWD/swagger.yaml":/usr/share/nginx/html/swagger.yaml \ | |
| -e 'REDOC_OPTIONS=hide-hostname="true" lazy-rendering' \ | |
| -p $SWAGGER_DOCS_PORT:80 \ | |
| bfirsh/redoc:1.6.2 |
This file contains hidden or 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
| # Excerpt from https://stackoverflow.com/a/14930421/4725840 | |
| git clone -b mybranch --single-branch git://sub.domain.com/repo.git |
This file contains hidden or 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 -O | |
| # -*- coding: utf-8 -*- | |
| ######################## | |
| # Require python-xlrd | |
| ######################## | |
| from __future__ import print_function, unicode_literals, with_statement, division | |
| import xlrd | |
| import csv | |
| from os import sys |