Skip to content

Instantly share code, notes, and snippets.

View pmandreoli's full-sized avatar

pmandreoli pmandreoli

View GitHub Profile

Create a pod to hold containers

podman pod create \
  --name YOUR_POD_NAME \
  -p 8080:8080

Create database initialization scripts

unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
set -g mouse on
# switch panes using Alt-arrow without prefix
pipeline {
agent any
options { disableConcurrentBuilds() }
stages {
stage('hello-world') {
steps {
sh '''
echo "hello world"
'''
}
@pmandreoli
pmandreoli / p_ftp.py
Created June 16, 2022 12:07
ftp test
#! /usr/bin/env python3
from ftplib import FTP
import argparse
################################################################################
# COMMAND LINE OPTIONS
def cli_options():
parser = argparse.ArgumentParser(description='Galaxy URL upload and FastQC test')
<tool id="wait_tool" name="wait_tool" version="1">
<description>wait_tool_to_test_zerg_mode </description>
<macros>
</macros>
<requirements>
</requirements>
<command>
<![CDATA[
sleep $seconds && echo "I slept" >$output
version: "3"
# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
ports:
- "53:53/tcp"
- "53:53/udp"
---
- name: install and configure nvim
hosts: localhost
become: yes
become_user: root
vars:
user: ubuntu
tasks:
- name: nvim install dependencies
package:
#!/bin/bash
set -x -e
ls $SRC_DIR
$CXX $SRC_DIR/MocoLoco.cpp -o Mocoloco -lgsl -lgslcblas
{% set name = "mocoloco" %}
{% set version = "1" %}
{% set sha256 = "5c2de6ea843b98e8f384b96ec5274a7bfeb7a199dd19e3f607e207316b4e7cc0" %}
package:
name: {{ name|lower }}
version: {{ version }}
source:
git_url: https://github.com/EMoreschi/MocoLoco.git
---
- image: quay.io/bgruening/docker-jupyter-notebook:latest
description: |
The Jupyter notebook is the next iteration of IPython, allowing
analysis in many different languages. This image features the Python,
R, Julia, Haskell, Bash kernels and many scientific analysis stacks for
each.
- image: quay.io/bgruening/docker-jupyter-notebook:17.09
description: |
The Jupyter notebook is the next iteration of IPython, allowing