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 | |
set -euo pipefail | |
# simple repo cloc report | |
# * ignores submodules | |
GIT_REMOTE="git@github.com:myorg" | |
REPOS=( | |
myfirstrepo | |
mysecondrepo |
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
""" | |
Tests for VSI-File | |
Copyright Koordinates Limited | |
License MIT | |
""" | |
import io | |
import logging | |
import os |
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 | |
set -eu | |
command -v eu-elflint >/dev/null || (echo "eu-elflint not found, install elfutils"; exit 1) | |
command -v scanelf >/dev/null || (echo "scanelf not found, install pax-utils"; exit 1) | |
BINARIES=$(scanelf -EET_EXEC -RBF %F "${1-.}") | |
ERRS=0 | |
for BINARY in $BINARIES; do |
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
/proj | |
/proj-build | |
/sqlite | |
/sqlite-amalgamation-*.zip | |
/one-native | |
/one-native.dSYM | |
/one.data | |
/one.html | |
/one.js | |
/one.wasm |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>GeoServer Documentation</title> | |
<link rel="stylesheet" href="_static/blueprint/screen.css" type="text/css" media="screen, projection" /> | |
<link rel="stylesheet" href="_static/blueprint/print.css" type="text/css" media="print" /> | |
<!--[if IE]> |
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
class J: | |
""" | |
Sequence Join Format String Wrapper | |
>>> seq = ['a', 'b', 1, None] | |
>>> print(f"default: {J(seq)}" | |
default: 1,b,1,None | |
>>> print(f"custom-delimeter: {J(seq):/-}" | |
custom-delimiter: a/-b/-1/-None | |
""" |
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
+ git --version | |
git version 2.30.1.602.g966e671106 | |
+ uname -a | |
Darwin otata 19.6.0 Darwin Kernel Version 19.6.0: Tue Jan 12 22:13:05 PST 2021; root:xnu-6153.141.16~1/RELEASE_X86_64 x86_64 i386 MacBookPro11,1 Darwin | |
+ rm -rf ./SK.local.git ./SK.remote.git | |
+ git clone --bare https://github.com/octocat/Spoon-Knife SK.remote.git | |
Cloning into bare repository 'SK.remote.git'... | |
warning: templates not found in /Users/rcoup/share/git-core/templates | |
remote: Enumerating objects: 16, done. |
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
# with Hack from https://www.nerdfonts.com/ installed | |
function iterm2_print_user_vars() { | |
# kubernetes current cluster & namespace | |
CONTEXT="$(kubectl config current-context)" | |
if [ -n "$CONTEXT" ]; then | |
NAMESPACE="$(kubectl config view -o=jsonpath="{.contexts[?(@.name==\"${CONTEXT}\")].context.namespace}")" | |
iterm2_set_user_var kubecontext "⎈ $CONTEXT:${NAMESPACE:-default}" | |
else | |
iterm2_set_user_var kubecontext "" |
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 contextlib | |
import io | |
import warnings | |
import pytest | |
from click.testing import CliRunner | |
""" | |
In your tests: |
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
$ cflow -T --brief --main=git_revparse_single refs.c revparse.c | |
+-git_revparse_single() <int git_revparse_single (git_object **out, git_repository *repo, const char *spec) at revparse.c:854> | |
+-git_revparse_ext() <int git_revparse_ext (git_object **object_out, git_reference **reference_out, git_repository *repo, const char *spec) at revparse.c:828> | |
| +-revparse__ext() <int revparse__ext (git_object **object_out, git_reference **reference_out, size_t *identifier_len_out, git_repository *repo, const char *spec) at revparse.c:663> | |
| | +-assert() | |
| | +-ensure_base_rev_loaded() <int ensure_base_rev_loaded (git_object **object, git_reference **reference, const char *spec, size_t identifier_len, git_repository *repo, bool allow_empty_identifier) at revparse.c:610> | |
| | | +-object_from_reference() <int object_from_reference (git_object **object, git_reference *reference) at revparse.c:596> | |
| | | | +-git_reference_resolve() <int git_reference_resolve (git_reference **ref_out, const git_reference *ref) at ref |
NewerOlder