As configured in my dotfiles.
start new:
tmux
start new with session name:
#!/usr/bin/env bash | |
XCRYPT_CHECK_BIN="/<path-to-folder>/repair-lib-xcrypt2.0.sh" | |
UPDATE_LIST_PATH="/tmp/debian-xcrypt_2.0-update-log.list" | |
UPDATE_LOG="/var/log/debian-xcrypt_2.0-update-log.log" | |
function log() { | |
local state=${1} | |
local msg=${2} |
#!/usr/bin/python3 | |
import pandas as pd | |
import urllib | |
# the url of the data resource | |
url = "https://data.seattle.gov/resource/6vkj-f5xf.csv" | |
# the name of the local file to store the data from the url | |
seattle_inventory_filename = "seattle-inventory.csv" |
As configured in my dotfiles.
start new:
tmux
start new with session name:
#!/bin/bash | |
# Needed for debian upgrade | |
# atm from buster to bullseye the linked libs are broken | |
# see: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=951880 | |
LIB="libcrypt.so.1" | |
# Checks if the executer has super user permissions. | |
# |
Meta: bla bla | |
Datastamp: | |
Queries: | |
Id: 1, | |
Comment: foo is so bar, | |
SQL: | |
SELECT bla | |
FROM foobar; | |
ID: 2, | |
Ccomment: xxx |
#!/usr/bin/python3 | |
from string import Template | |
# open the file | |
filein = open('SimpleTemplate.tpl') | |
# read it | |
src = Template(filein.read()) | |
# document data | |
hello_to = "Henry" |
#! pyhton3 | |
def get_file_as_line(filename): | |
"""Returns the whole content of a file as one line""" | |
print('Read file: {0}'.format(filename)) | |
with open(filename) as file_object: | |
lines = file_object.readlines() | |
content_string = '' | |
for line in lines: | |
content_string += line.rstrip() |