I am possibly bleeding right now.
coreapi
Django
#!/bin/bash | |
# This assumes binding the entire directory with this script and lammps-experiment.yaml | |
hasGpu="${1:-no}" | |
path="${2:-./compatibility-spec.json}" | |
# Note that this is hard coded for amd64, for arm you would wantt o add -arm or ppc64le -ppc | |
wget --quiet https://github.com/supercontainers/compspec-go/releases/download/1-26-2024-2/compspec | |
chmod +x compspec |
#!/usr/bin/env bash | |
for cpunum in $(cat /sys/devices/system/cpu/cpu*/topology/thread_siblings_list | cut -s -d, -f2- | tr ',' '\n' | sort -un) | |
do | |
echo 0 > /sys/devices/system/cpu/cpu$cpunum/online | |
done |
#!/bin/bash | |
echo "Expecting: <pull-from> <push-to>" | |
echo "Full provided set of arguments are $@" | |
# The command is the remainder of the script $@ | |
pushto="${1}" | |
shift | |
# unpack |
package main | |
import ( | |
"fmt" | |
) | |
type Fruit struct { | |
Name string | |
Color string | |
} |
name: generate-site | |
on: | |
pull_request: [] | |
push: | |
branches: | |
- "main" | |
jobs: | |
Update: |
% clingo dinosaur.lp | |
% These are blanket facts, statements that each of these is living | |
% I think these are called atoms | |
living(vanessa). | |
living(fernando). | |
living(maria). | |
% This tells use size of arms for each living thing | |
armsize(vanessa, "small"). | |
armsize(fernando, "large"). |
from django.contrib.auth import REDIRECT_FIELD_NAME | |
from django.shortcuts import render, resolve_url | |
from myapp.settings import cfg | |
from myapp import settings | |
from urllib.parse import urlparse | |
import uuid | |
def login_is_required( |
# This is a small script (that typically I copy paste) on a Google Cloud instance | |
# to set up an environment to mimic a worker. It includes installing snakemake, | |
# retrieving a package with the working directory (which typically has the | |
# version of snakemake I aim to develop or debug, and then interactively debugging | |
# or doing this. | |
sudo apt-get install -y wget bzip2 ca-certificates gnupg2 git | |
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh | |
sudo chown -R $USER /opt | |
bash Miniconda3-latest-Linux-x86_64.sh -b -p /opt/conda |