Skip to content

Instantly share code, notes, and snippets.

View SteVwonder's full-sized avatar

Stephen Herbein SteVwonder

View GitHub Profile
@SteVwonder
SteVwonder / prep_tex_for_grammarly.sh
Created May 22, 2021 21:52
Quick script to take a multi-file tex document and make it more human-readable for software like Grammarly or other grammar checkers
#!/bin/bash
USAGE="Usage: $0 mainfile.tex outputfile.tex"
function usage {
echo $USAGE
exit 1
}
if [[ -z "$1" || -z "$2" ]]; then
#!/usr/bin/env python3
import os
import sys
import subprocess
def find_split_point(argv):
for idx, val in enumerate(argv):
if val == "relay":
return idx - 1
2021-01-08T05:00:54.1908928Z ##[section]Starting: Request a runner to run this job
2021-01-08T05:00:54.5329247Z Can't find any online and idle self-hosted runner in current repository that matches the required labels: 'ubuntu-latest'
2021-01-08T05:00:54.5329357Z Can't find any online and idle self-hosted runner in current repository's account/organization that matches the required labels: 'ubuntu-latest'
2021-01-08T05:00:54.5329727Z Found online and idle hosted runner in current repository's account/organization that matches the required labels: 'ubuntu-latest'
2021-01-08T05:00:54.6200390Z ##[section]Finishing: Request a runner to run this job
2021-01-08T05:01:00.4086844Z Current runner version: '2.275.1'
2021-01-08T05:01:00.4116290Z ##[group]Operating System
2021-01-08T05:01:00.4117202Z Ubuntu
2021-01-08T05:01:00.4117633Z 18.04.5
2021-01-08T05:01:00.4118097Z LTS
travis_fold:start:worker_info
Worker information
hostname: 9e91e073-7e6d-420e-8560-b9c0e9167ebb@1.worker-com-oss-b45fb887b-wlc8q.gce-production-3
version: v6.2.17 https://github.com/travis-ci/worker/tree/bc420764f334fe0d096a417c80426f672f1b7d18
instance: travis-job-c9a85971-7048-48c2-9b6e-a9235a90c640 travis-ci-ubuntu-1804-1593521679-ca42795e (via amqp)
startup: 6.272281742s
travis_fold:end:worker_info
travis_time:start:02eb96da
travis_time:end:02eb96da:start=1600473120002936916,finish=1600473120220053060,duration=217116144,event=no_world_writable_dirs
travis_time:start:16600d43
travis_fold:start:worker_info
Worker information
hostname: fa9a27be-f847-413a-869b-91ee4d005fda@1.worker-com-57674569cc-bqfrr.gce-production-1
version: v6.2.8 https://github.com/travis-ci/worker/tree/6d3048d96b26562be21fa1a8b8144f4c4cecd083
instance: travis-job-4937e630-c45b-47c3-a862-7cf5cdc150ee travis-ci-garnet-trusty-1512502259-986baf0 (via amqp)
startup: 6.36250982s
travis_fold:end:worker_info
travis_time:start:0167f576
travis_time:end:0167f576:start=1584166534315711202,finish=1584166534465689070,duration=149977868,event=no_world_writable_dirs
travis_time:start:1c1867f0
==7612== Memcheck, a memory error detector
==7612== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==7612== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info
==7612== Command: /home/sherbein/Repositories/flux-framework/flux-core/src/broker/.libs/flux-broker --setattr=rundir=/tmp/flux-316-FepHh4 --setattr=tbon.endpoint=ipc://%B/req -Sbroker.rc1_path=/home/sherbein/Repositories/flux-framework/flux-core/t/rc/rc1-job -Sbroker.rc3_path=/home/sherbein/Repositories/flux-framework/flux-core/t/rc/rc3-job -Slog-filename=t2400-job-exec-test.broker.log -Slog-forward-level=7 -Sinit.rc2_timeout=300 sh\ ./t2400-job-exec-test.t\
==7612==
==7612== Thread 13:
==7612== Invalid read of size 8
==7612== at 0xC65A6B8: kill_timer_cb (job-exec.c:338)
==7612== by 0x4898142: ev_invoke_pending (ev.c:3322)
==7612== by 0x489B2F2: ev_run (ev.c:3726)
→ jq '.graph.nodes[] | .id' ./test.jgf
"146337"
"146338"
"146339"
"146340"
"146341"
"146342"
"146343"
"146344"
"215384"
#!/bin/bash
# checkout LGPL branch
if [[ "$(git rev-parse --abbrev-ref HEAD)" != "lgpl2_libflux" ]]; then
git checkout lgpl2_libflux
fi
# get all the files changing to LGPL
git diff --name-only upstream/master | grep 'src/common' > full_path_changed_to_lgpl.txt
# get all the headers included by the files changing to LGPL
@SteVwonder
SteVwonder / R-notes.org
Created October 2, 2018 20:59
Notes from discussion on R

Identify the requirements on R

Consumers/Produces

  • Definition: express a resource set
  • R_local: subset of R per broker rank
    • IMP consumes this
  • Producers + Consumers
    • Scheduler produces
    • Scheduler consumes
      • Resources incrementally handed back from the exec
    • Exec consumes
→ pgrep -af Wavebox
27094 /opt/wavebox/Wavebox --mailto > /dev/null
27096 /opt/wavebox/Wavebox --type=zygote --no-sandbox
27128 /opt/wavebox/Wavebox --type=renderer --service-pipe-token=DC3DAE745D3E9434C0739F346A1565A0 --lang=en-US --app-path=/opt/wavebox/resources/app.asar --enable-plugins --node-integration=true --webview-tag=true --no-sandbox --background-color=#f2f2f2 --context-id=2 --enable-pinch --num-raster-threads=4 --enable-main-frame-before-activation --content-image-texture-target=0,0,3553;0,1,3553;0,2,3553;0,3,3553;0,4,3553;0,5,3553;0,6,3553;0,7,3553;0,8,3553;0,9,3553;0,10,3553;0,11,3553;0,12,3553;0,13,3553;0,14,3553;0,15,3553;0,16,3553;0,17,3553;1,0,3553;1,1,3553;1,2,3553;1,3,3553;1,4,3553;1,5,3553;1,6,3553;1,7,3553;1,8,3553;1,9,3553;1,10,3553;1,11,3553;1,12,3553;1,13,3553;1,14,3553;1,15,3553;1,16,3553;1,17,3553;2,0,3553;2,1,3553;2,2,3553;2,3,3553;2,4,3553;2,5,3553;2,6,3553;2,7,3553;2,8,3553;2,9,3553;2,10,3553;2,11,3553;2,12,3553;2,13,3553;2,14,3553;2,15,3553;2,16,3553;2,17,3553;3,0,3553;3,1,355