This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM centos:centos6 | |
MAINTAINER [email protected] | |
# Apache | |
RUN yum install -y httpd httpd-devel | |
RUN chkconfig httpd on | |
RUN apachectl start | |
# Dependencies | |
RUN yum groupinstall -y "Development tools" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Original by Daniel L. Greenwald | |
# http://dlgreenwald.weebly.com/blog/capitalizing-titles-in-bibtex | |
# Modified by Garrett Dash Nelson | |
import re | |
from titlecase import titlecase | |
# Input and output files | |
my_file = 'library.bibtex' | |
new_file = 'library-capitalized.bibtex' # in case you don't want to overwrite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set shell=/bin/sh " fish friendly | |
" | |
" Base configuration from https://github.com/tpope/vim-sensible | |
" | |
if has('autocmd') | |
filetype plugin indent on | |
endif | |
if has('syntax') && !exists('g:syntax_on') | |
syntax enable | |
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This gist I write, because I couldn't find step by step instructions | |
how to install and start postgresql locally (using conda within a conda environment - with the result | |
that you can run it without sudo/admin rights on your machine!) | |
and not globally in the operating system (which requires sudo/admin rights on that machine). | |
I hope, this will help especially people new to postgresql (and those who don't have sudo/admin rights on a specific machine but want | |
to run postgresql there)! | |
#################################### | |
# create conda environment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Convenience script for setting up docker and docker-compose on Ubuntu. | |
# Steps essentially copied and pasted from: | |
# https://docs.docker.com/install/linux/docker-ce/ubuntu/ | |
# https://docs.docker.com/compose/install/ | |
# Uninstall any existing docker installations | |
sudo apt-get remove docker docker-engine docker.io containerd runc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Credit for helping to outline the correct upgrade process goes to @tuxity and @GuidoDr | |
## | |
## Instructions | |
## | |
# 1. Edit the variables below to match your environment. This uses default variables and assumes you're on 5.31.0. | |
# If you're wanting to use another version of Postgres/Mattermost , update the variables as desired. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
from datetime import date, timedelta | |
from typing import TypedDict | |
import requests | |
from tabulate import tabulate | |
class OpenAiUsageTool: | |
''' |