Skip to content

Instantly share code, notes, and snippets.

💭
rawr

Vanessasaurus vsoch

💭
rawr
Block or report user

Report or block vsoch

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@vsoch
vsoch / cargo-debstatus-nu-0.3.0.txt
Created Oct 17, 2019
nu 0.3.0 dependency output from running cargo-debstatus in the root of the repository, and commenting out #default-run = "nu" in Cargo.toml. Do a find for (outdated) to highlight all the packages that were highlighted in yellow on the terminal (that I cannot show here)
View cargo-debstatus-nu-0.3.0.txt
nu v0.3.0 (/home/vanessa/Documents/Dropbox/Code/rust/nushell-debian/nushell-0.3.0)
├── ansi_term v0.12.1 (in debian)
├── app_dirs v1.2.1
│ ├── ole32-sys v0.2.0
│ │ ├── winapi v0.2.8 (outdated)
│ │ └── winapi-build v0.1.1 (in debian)
│ ├── shell32-sys v0.1.2
│ │ ├── winapi v0.2.8 (outdated)
│ │ └── winapi-build v0.1.1 (in debian)
│ ├── winapi v0.2.8 (outdated)
@vsoch
vsoch / Dockerfile
Created Jul 19, 2019
An example Dockerfile using MicroSecurity scanner from AquaSec. You need to first get a token, and replace variables in the file.
View Dockerfile
FROM YOURCONTAINERHERE
# docker run --rm -it aquasec/microscanner --register <email address>
# docker build -t dirty-container .
RUN apk add --no-cache ca-certificates && update-ca-certificates
ADD https://get.aquasec.com/microscanner .
RUN chmod +x microscanner
RUN ./microscanner YOURTOKENHERE
@vsoch
vsoch / README.md
Created Jul 11, 2019
Apache with Singularity and without sudo
View README.md

Apache with Singularity

Start with this recipe

Bootstrap: docker
From:httpd:2.4.37
%startscript
httpd-foreground
@vsoch
vsoch / result.json
Last active Jul 11, 2019
Example of using the monitor_gpu decorator
View result.json
{
"commits": [
"7ea1152603baef5f0012905f321586399f816958"
],
"dates": [
"2019-07-11 09:51:36 -0700"
],
"content": [
{
"nvml_driver_version": "418.67",
View data.json
---
layout: null
excluded_in_search: true
permalink: /data.json
---
{
{% for post in site.pages %}{% unless post.excluded_in_search %}{% if added %},{% endif %}{% assign added = false %}
"{{ site.title | slugify }}-{{ post.url | slugify }}": {
"id": "{{ site.title | slugify }}-{{ post.url | slugify }}",
"title": "{{ site.title }}: {{ post.title | xml_escape }}",
@vsoch
vsoch / bumblings.md
Last active Jun 3, 2019
AskCI Brain Bumblings: Ideas for what I'd like to see more of, or inspiration for posts and tag themes
View bumblings.md

Brain Bumblings

Ideas for what I'd like to see more of, or inspiration for posts and tag themes

@vsoch
vsoch / Dockerfile
Last active May 15, 2019
An example multistage Dockerfile to install gvim and then throw the extra stuff away!
View Dockerfile
FROM ubuntu:18.04 as base
# docker build -t vanessa/vim .
RUN apt-get update && apt-get install -y git \
gcc \
libncurses5-dev \
libncursesw5-dev \
build-essential
@vsoch
vsoch / result.json
Last active May 11, 2019
An example of using the watchme psutils decorator to monitor resource usage of a function
View result.json
[
{
"num_ctx_switches": {
"voluntary": 1,
"involuntary": 0
},
"ionice": {
"ioclass": "IOPRIO_CLASS_NONE",
"value": 4
},
@vsoch
vsoch / Singularity
Last active May 8, 2019
An example of setting a custom environment variable already defined in the container
View Singularity
Bootstrap: docker
From: centos:7
# sudo singularity build lamps.simg Singularity
%environment
now=`date '+%Y_%m_%d'`
hostname=`hostname`
APPNAME="lammps"
@vsoch
vsoch / output_file.md
Created May 4, 2019
Saving output to a file and printing to terminal
View output_file.md

This is executing a command to the container to list at the root (/) and then redirect stdout and stderr to "out.txt"

$ singularity exec salad_latest.sif ls / 2>&1 | tee out.txt
bin
code
dev
environment
etc
home
You can’t perform that action at this time.