Skip to content

Instantly share code, notes, and snippets.


Jim Klo jimklo

View GitHub Profile
View CA_Swatch.html
<!DOCTYPE html>
<meta charset='UTF-8'>
<title>Cura Settings Export</title>
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 / console.log
Created Mar 21, 2020
Initial electron-react-boilerplate `yarn dev` startup error
View console.log
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)
View gist:6c8e5e024151140ea4110d34f1492c5b
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
0 1 a
1 3 b
jimklo /
Created Jul 29, 2019
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 "" "hook" $argv)
# <<< conda initialize <<<
jimklo / GitTool.groovy
Created May 14, 2018
Issue with running this Pipeline Shared Library
View GitTool.groovy
class GitTool extends StepsBase {
def GitTool(steps) {
def runSh(script, returnStdout = false) {
def output = script, returnStdout: returnStdout)
return output.toString()
View docker ps output
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
fcae22fa4144 "/opt/bin/entrypoint-" 2 hours ago Up 2 minutes>9090/tcp,>9990/tcp rheltest_sfweb_1
155206af2f03 "/ mysql" 2 hours ago Up 2 minutes 3306/tcp, 33060/tcp rheltest_db_1
jimklo / xcode-nuke-uninstall.rb
Created Apr 21, 2017 — forked from matti/xcode-nuke-uninstall.rb
completely remove all xcode files
View xcode-nuke-uninstall.rb
#!/usr/bin/env ruby
cancer_in_home = [
'Library/Application\ Support/Xcode'
cancer_in_root = [
View directive.html
<div ng-show="!!vm.code">
<label for="{{id}}"><ng-transclude></ng-transclude></label>
<table id="{{id}}" class="table table-bordered table-striped table-condensed">
<th rowspan="3">Item</th>
<th rowspan="3">Sub-Item</th>
jimklo / Dockerfile
Last active Aug 26, 2016
Dockerized Jenkins
View Dockerfile
FROM jenkins
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 && \
View Vagrantfile
windows.vm.synced_folder synced_folder, "/cygdrive/c/vagrant_sync", type: "rsync",
rsync__exclude: [ ".git/", "sunflower-*/", "delta-packs/", "*.box" ],
rsync__args: ["--verbose", "--archive", "--delete", "-z", "--copy-links", "--progress"]