Skip to content

Instantly share code, notes, and snippets.

View bodokaiser's full-sized avatar
😀
Happy to be here!

Bodo Kaiser bodokaiser

😀
Happy to be here!
View GitHub Profile
@chrisdiana
chrisdiana / export-cognito-users.sh
Last active March 18, 2024 09:38
Export AWS Cognito User Pool
# Export as Text Table
aws --region XXXXXXXXX cognito-idp list-users --user-pool-id XXXXXXXXXXXXX --output table > ~/users.txt
# Export as JSON
aws --region XXXXXXXXX cognito-idp list-users --user-pool-id XXXXXXXXXXXXX --output json > ~/users.json
# Export User Pool with more than 60 users (pagination)
aws --region XXXXXXXXX cognito-idp list-users --user-pool-id XXXXXXXXXXXXX --pagination-token INCREDIBLYLONGSTRINGHERE --output json > ~/users-2.json
@mrry
mrry / tensorflow_self_check.py
Last active August 24, 2023 17:13
[DEPRECATED] TensorFlow on Windows self-check
# Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
require "formula"
class Mongodb < Formula
homepage "http://www.mongodb.org/"
url "http://downloads.mongodb.org/src/mongodb-src-r2.6.3.tar.gz"
sha1 "226ab45e3a2e4d4a749271f1bce393ea8358d3dd"
bottle do
sha1 "d573717ca7c67455680a6823de210c940faf9ac6" => :mavericks
sha1 "f7d2a0711e3ac09fd61bcb243360c1a07fb83233" => :mountain_lion
@somada141
somada141 / ct2hu.md
Last active March 7, 2023 21:43
Converting CT Data to Hounsfield Units #medical #CT #imagedata #dicom #hounsfield #math

Converting CT Data to Hounsfield Units

The formula is:

hu = pixel_value * slope + intercept

Normally, these values are stored in the DICOM file itself. The tags are generally called the Rescale Slope and Rescale Intercept, and typically have values of 1 and -1024, respectively.

@bodokaiser
bodokaiser / .vimrc
Created May 4, 2013 07:47
This is my vimrc file which enables syntax, column ruler, four spaces auto-indent on all files except for html where I use two spaces.
syntax on
filetype plugin indent on
:set nu
:set cc=80
:set smartindent
:set tabstop=4
:set shiftwidth=4
:set expandtab
autocmd FileType html set tabstop=2 | set shiftwidth=2
@bodokaiser
bodokaiser / TerminalScheme.terminal
Created May 4, 2013 07:37
This is my favored Mac OS X Terminal scheme.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BackgroundAlphaInactive</key>
<real>0.20177023121387283</real>
<key>BackgroundBlur</key>
<real>0.60489169034090906</real>
<key>BackgroundColor</key>
<data>