Skip to content

Instantly share code, notes, and snippets.

View jimklo's full-sized avatar

Jim Klo jimklo

View GitHub Profile
@jimklo
jimklo / environment.yml
Last active January 21, 2023 20:34
Gallery Image Download
name: imgextract
channels:
- conda-forge
- defaults
dependencies:
- bzip2=1.0.8
- ca-certificates=2022.12.7
- geckodriver=0.32.0
- libcxx=14.0.6
- libffi=3.4.2
@jimklo
jimklo / CA_Swatch.html
Created March 17, 2022 22:29
3D Print Debug
<!DOCTYPE html>
<meta charset='UTF-8'>
<head>
<title>Cura Settings Export</title>
<style>
tr.category td { font-size: 1.1em; background-color: rgb(142,170,219); }
tr.disabled td { background-color: #eaeaea; color: #717171; }
tr.local td { background-color: #77DD77; }
body.hide-disabled tr.disabled { display: none; }
body.hide-local tr.normal { display: none; }
@jimklo
jimklo / console.log
Created March 21, 2020 18:46
Initial electron-react-boilerplate `yarn dev` startup error
HMR] Waiting for update signal from WDS...
VM70:2 Uncaught TypeError: Cannot read property 'state' of undefined
at unliftState (<anonymous>:2:31200)
at Object.getState (<anonymous>:2:31267)
at Provider.js:19
at mountMemo (react-dom.development.js:16832)
at Object.useMemo (react-dom.development.js:17151)
at useMemo (react.development.js:1643)
at wrappedHook (react-hot-loader.development.js:2758)
Python 3.6.9 (default, Oct 17 2019, 06:49:31)
[GCC 6.3.0 20170516] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pandas as pd
>>> import numpy as np
>>> df1 = pd.DataFrame({'A': pd.Series([1, 3, np.nan], dtype='Int64'), 'B': list('abc')})
>>> df1
A B
0 1 a
1 3 b
@jimklo
jimklo / config.fish
Created July 29, 2019 17:02
conda initialized fish shell config
set -x PATH ~/bin /usr/local/bin $PATH
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
eval (eval /usr/local/anaconda3/bin/conda "shell.fish" "hook" $argv)
# <<< conda initialize <<<
@jimklo
jimklo / GitTool.groovy
Created May 14, 2018 19:22
Issue with running this Pipeline Shared Library
class GitTool extends StepsBase {
def GitTool(steps) {
super(steps)
}
def runSh(script, returnStdout = false) {
def output = steps.sh(script: script, returnStdout: returnStdout)
return output.toString()
}
Started with command:
WILDFLY_MGMT_PORT=9980 SFWEB_HTTP_PORT=9080 HTTP_PORT=9080 MGMT_PORT=9980 docker-compose -f rhel-test/docker-compose.yaml start
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
fcae22fa4144 sunflower-docker.cse.sri.com/rhel-sfweb:latest "/opt/bin/entrypoint-" 2 hours ago Up 2 minutes 0.0.0.0:9080->9090/tcp, 0.0.0.0:9980->9990/tcp rheltest_sfweb_1
155206af2f03 sunflower-docker.cse.sri.com/rhel-floradb:latest "/entrypoint.sh mysql" 2 hours ago Up 2 minutes 3306/tcp, 33060/tcp rheltest_db_1
@jimklo
jimklo / xcode-nuke-uninstall.rb
Created April 21, 2017 20:33 — forked from matti/xcode-nuke-uninstall.rb
completely remove all xcode files
#!/usr/bin/env ruby
cancer_in_home = [
"Library/Developer",
"Library/Preferences/com.apple.dt.*",
"Library/Caches/com.apple.dt.*",
'Library/Application\ Support/Xcode'
]
cancer_in_root = [
<div ng-show="!!vm.code">
<label for="{{id}}"><ng-transclude></ng-transclude></label>
<table id="{{id}}" class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th rowspan="3">Item</th>
<th rowspan="3">Sub-Item</th>
<th>Text</th>
</tr>
<tr>
@jimklo
jimklo / Dockerfile
Last active August 26, 2016 00:42
Dockerized Jenkins
FROM jenkins
MAINTAINER jim.klo@xxx.com
ENV REFRESHED_AT Thu Aug 25 15:48:21 PDT 2016
ENV JENKINS_OPTS --prefix=/jenkins
USER root
RUN echo "${JENKINS_VERSION}" > /usr/share/jenkins/ref/jenkins.install.UpgradeWizard.state && \