Skip to content

Instantly share code, notes, and snippets.

Avatar

Jim Klo jimklo

View GitHub Profile
View CA_Swatch.html
<!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 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
A B
0 1 a
1 3 b
@jimklo
jimklo / config.fish
Created Jul 29, 2019
conda initialized fish shell config
View config.fish
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
Issue with running this Pipeline Shared Library
View GitTool.groovy
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()
}
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
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 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/Developer",
"Library/Preferences/com.apple.dt.*",
"Library/Caches/com.apple.dt.*",
'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">
<thead>
<tr>
<th rowspan="3">Item</th>
<th rowspan="3">Sub-Item</th>
<th>Text</th>
</tr>
<tr>
@jimklo
jimklo / Dockerfile
Last active Aug 26, 2016
Dockerized Jenkins
View Dockerfile
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 && \
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"]