Skip to content

Instantly share code, notes, and snippets.

View PaulSt's full-sized avatar
🎯
Focusing

Paul Stocker PaulSt

🎯
Focusing
View GitHub Profile
from urllib.request import urlopen
from bs4 import BeautifulSoup
import re
import pandas as pd
import time
import matplotlib.pyplot as plt,mpld3
import json
try:
df = pd.read_csv("/home/pi/boulder/can-i-boulder.csv",index_col='time')
#!/bin/bash
read dbuserpw
# update
sudo apt update
sudo apt upgrade
sudo apt install -y apache2
sudo apt install -y php7.3 php7.3-gd php7.3-sqlite3 php7.3-curl php7.3-zip php7.3-xml php7.3-mbstring php7.3-mysql php7.3-bz2 php7.3-intl php7.3-smbclient php7.3-imap php7.3-gmp php7.3-bcmath php-imagick
@PaulSt
PaulSt / ngsolve_server.sh
Last active April 10, 2019 09:54
set up ngsolve on a server without anything and no sudo
#!/bin/bash
mkdir gcctemp && cd gcctemp
wget ftp://ftp.fu-berlin.de/unix/languages/gcc/releases/gcc-8.2.0/gcc-8.2.0.tar.gz
tar xzf gcc-8.2.0.tar.gz
cd gcc-8.2.0
./contrib/download_prerequisites
cd ..
mkdir objdir
cd objdir
@PaulSt
PaulSt / vim_cheatsheet.md
Created August 1, 2018 12:48 — forked from awidegreen/vim_cheatsheet.md
Vim shortcuts

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close