Skip to content

Instantly share code, notes, and snippets.

View simulacra10's full-sized avatar

Norman Bauer simulacra10

View GitHub Profile
@simulacra10
simulacra10 / Code.gs
Created February 27, 2024 03:03
Modified Jason Hee's script to return the price formatted in $ and right justified. Otherwise it is the same as his. His original article https://medium.com/codex/how-to-import-yahoo-finance-data-into-google-spreadsheets-834e6a7f82c3
function yahooF(ticker) {
const url = `https://finance.yahoo.com/quote/${ticker}?p=${ticker}`;
const res = UrlFetchApp.fetch(url, {muteHttpExceptions: true});
const contentText = res.getContentText();
const priceMatch = contentText.match(/<fin-streamer(?:.*?)active="">(\d+[,]?[\d\.]+?)<\/fin-streamer>/);
@simulacra10
simulacra10 / README.md
Created February 17, 2023 02:04 — forked from miguelmota/README.md
Multiple accounts with Mutt E-Mail Client (gmail example)

How to set up multiple accounts with Mutt E-mail Client

Thanks to this article by Christoph Berg

Instructions

Directories and files

~/
@simulacra10
simulacra10 / Wine Bottles Install
Created December 19, 2022 22:40
How to install wine bottles on Ubuntu 22.x
Install flatpak - sudo apt install flatpak
Install the bottles repo - sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
Install bottles - flatpak install flathub com.usebottles.bottles
@simulacra10
simulacra10 / riot-matrix-workshop.md
Created January 22, 2021 20:46 — forked from attacus/riot-matrix-workshop.md
Create your own encrypted chat server with Riot and Matrix

This guide is unmaintained and was created for a specific workshop in 2017. It remains as a legacy reference. Use at your own risk.

Running your own encrypted chat service with Matrix and Riot

Workshop Instructor:

This workshop is distributed under a CC BY-SA 4.0 license.

What are we doing here?

Keybase proof

I hereby claim:

  • I am simulacra10 on github.
  • I am wyeoak (https://keybase.io/wyeoak) on keybase.
  • I have a public key whose fingerprint is 5FDC 62AB B671 2518 17AD 0495 BC07 45E2 DAF2 6BEC

To claim this, I am signing this object:

@simulacra10
simulacra10 / .bashrc
Created August 21, 2020 14:03
Easy wasy to call up your fav streams using mplayer. Add these to your bashrc and edit them to suite your taste. In the terminal do "source .bashrc" after you save them to activate them.
#mplayer streaming aliases .bashrc
alias wbjc='mplayer -cache 80 http://wbjc-ice.streamguys1.com:80/live'
alias trance='mplayer -cache 80 http://xxxxxx@premium.philosomatika.fm/PhilosomatikaPremium256'
alias bigband='mplayer -cache 80 http://91.121.134.23:8100/stream'
alias danceuk='mplayer -cache 80 http://51.89.148.171:8022/stream'
@simulacra10
simulacra10 / backupToB2.sh
Created May 16, 2018 01:46 — forked from autoize/backupToB2.sh
NextCloud Backup to BackBlaze B2
#!/bin/sh
# NextCloud to BackBlaze B2 Backup Script
# Author: Autoize (autoize.com)
# This script creates an incremental backup of your NextCloud instance at BackBlaze's off-site location.
# BackBlaze B2 is an object storage service that is much less expensive than using Amazon S3 for the same purpose, with similar versioning and lifecycle management features.
# Uploads are free, and storage costs only $0.005/GB/month compared to S3's $0.022/GB/month.
# Requirements