Skip to content

Instantly share code, notes, and snippets.

View jimklo's full-sized avatar

Jim Klo jimklo

View GitHub Profile
@jimklo
jimklo / Vagrantfile_partial
Created May 21, 2015 21:04
vagrant windows guest provisioning shell script. unicode issues?
windows.vm.provision "artifactory-dns", type: "shell", inline: <<-SHELL
echo 128.18.9.167 artifactory.sri.com >> C:\\Windows\\System32\\drivers\\etc\\hosts
SHELL
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"]
@jimklo
jimklo / Dockerfile
Last active August 26, 2016 00:42
Dockerized Jenkins
FROM jenkins
MAINTAINER [email protected]
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 && \
<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 / 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 = [
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 / 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()
}
@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 <<<
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 / 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)