Skip to content

Instantly share code, notes, and snippets.

View georghildebrand's full-sized avatar

ghildebrand georghildebrand

  • EU
View GitHub Profile
@mikecroucher
mikecroucher / toree_on_ubuntu_16.04.md
Last active December 30, 2018 13:59
Installing Toree+Spark 2.1 on Ubuntu 16.04

Installing Toree+Spark 2.1 on Ubuntu 16.04

## 23rd January 2017

At the time of writing, the pip install of toree is not compatible with spark 2.x. We need to use the master branch from git.

Requirements

sudo apt install openjdk-8-jdk-headless
from threading import Thread
from time import sleep
import uuid
from dask.distributed import LocalCluster, Client
import dask.dataframe as dd
import pandas as pd
import pyspark
@robert8138
robert8138 / zipline_example.conf
Last active April 10, 2018 14:14
Zipline example
source: {
type: hive
query:"""
SELECT
id_listing as listing
, dim_city as city
, dim_country as country
, dim_is_active as is_active
, CONCAT(ds, ' 23:59:59.999') as ts
FROM
@zhanwenchen
zhanwenchen / Install NVIDIA Driver and CUDA.md
Last active March 13, 2024 23:42 — forked from wangruohui/Install NVIDIA Driver and CUDA.md
Install NVIDIA CUDA 9.0 on Ubuntu 16.04.4 LTS
@abelcallejo
abelcallejo / README.md
Last active June 19, 2025 15:56
Creating bootable Linux USB using Mac

Creating bootable Linux USB using Mac

mac

CentOS, Ubuntu, Slackware, etc. Whatever Linux-based OS it is, you can create a bootable USB for it by using a Mac.

1. Prepare the .iso file

Download it, copy it, whatever it takes to prepare that Linux-based OS .iso file

2. Convert the .iso file into a .img.dmg

@georghildebrand
georghildebrand / gist:5caf70a2ad59d3a783e325aa30d781c0
Last active September 24, 2019 08:31
Using up some memory with python in a controlled way
# Eat up some memory until 30% of system total
import psutil, os
nb_process_id = os.getpid()
p = psutil.Process(nb_process_id)
from multiprocessing import Pool
import string
import random
@jeffthink
jeffthink / is-working-azure-pipelines.yaml
Created December 6, 2019 01:19
Azure Pipelines Debugging
# Python Function App to Linux on Azure
# Build a Python function app and deploy it to Azure as a Linux function app.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/python
trigger:
- trunk
variables:
# Azure Resource Manager connection created during pipeline creation