Skip to content

Instantly share code, notes, and snippets.

View hmollercl's full-sized avatar

Hans P. Möller hmollercl

  • Santiago, Chile
View GitHub Profile
function getYahooPrice(symbol, datetime) {
symbol = symbol || "NSE:PANACEABIO";
// symbol = symbol.replace("NSE:", "") + ".NS";
Utilities.sleep(Math.floor(Math.random() * 5000))
var url = 'https://query1.finance.yahoo.com/v7/finance/download/'+ symbol + '?interval=1d&events=history'; // last one day history
Logger.log(url);
var response = UrlFetchApp.fetch(url, {muteHttpExceptions: true});
if (response.getResponseCode()) {
var textFile = response.getContentText();
if (textFile.indexOf("Date") != -1) {
@vectorsigma
vectorsigma / upgrading-mbox2-firmware.md
Last active December 3, 2025 21:59
How to upgrade the firmware of an old MBox 2 so it will work in Linux

Upgrading Avid (Nee digidesign) MBox2 Firmware

READ THIS FIRST

do this method instead. Thanks @halogeeni!

The back story

Found a free mbox 2 on craigslist. Picked it up, thinking it would unlock protools LE at least right? And maybe work on linux? Right??

@DerEros
DerEros / office_365_on_wine.md
Last active July 10, 2025 07:40
Installing and Running Office 365 on Wine

NOTE: THIS IS NOT A WORKING TUTORIAL I never got this to work and gave up. If you find any useful bit, go ahead an use them though.

Installing and Running Office 365 on Wine

My personal notes while trying to get Office 365 to install and run on my workstation.

Feel free to extract any useful information. Keep in mind that this is information is provided without any guarantees ... blah blah ... might kill

@jglick
jglick / slack.sh
Last active October 1, 2020 19:56
Script to launch Slack on Xubuntu with an icon
#!/bin/bash -xe
# adapted from https://launchpadlibrarian.net/422519169/slack via https://bugs.launchpad.net/ubuntu/+source/xfwm4/+bug/1827302/comments/12
ICON=/snap/slack/current/usr/share/pixmaps/slack.png
nohup /snap/bin/slack
WINDOWS=
while [ -z "$WINDOWS" ]
do