Homebrew is a great little package manager for OS X. If you haven't already, installing it is pretty easy:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
# pip install pandas pyarrow | |
import pandas as pd | |
# Read the feather file into a DataFrame | |
df = pd.read_feather("FILE_PATH.feather") | |
# Convert the DataFrame to a CSV file, without writing row indices | |
df.to_csv("FILE_PATH.csv", index=False) |
#!/bin/bash | |
sudo apt update -y \ | |
sudo apt install mesa-opencl-icd ocl-icd-opencl-dev gcc git bzr jq pkg-config curl clang build-essential hwloc libhwloc-dev wget curl make htop -y \ | |
sudo apt upgrade -y \ | |
sh -c "$(curl -fsSL https://raw.github.com/ohmybash/oh-my-bash/master/tools/install.sh)" \ | |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && source "$HOME/.cargo/env" \ | |
wget -c https://golang.org/dl/go1.16.5.linux-amd64.tar.gz -O - | sudo tar -xz -C /usr/local \ | |
export PATH="$PATH:/usr/local/go/bin" >> "$HOME/.profile" && source "$HOME/.profile" \ | |
git clone https://github.com/filecoin-project/lotus.git \ | |
cd lotus/ \ |
This is a bash script that will automatically turn your wifi off if you connect your computer to an ethernet connection and turn wifi back on when you unplug your ethernet cable/adapter. If you decide to turn wifi on for whatever reason, it will remember that choice. This was improvised from this mac hint to work with Yosemite, and without hard-coding the adapter names. It's supposed to support growl, but I didn't check that part. I did, however, add OSX notification center support. Feel free to fork and fix any issues you encounter.
Most the credit for these changes go to Dave Holland.
provider "google" { | |
credentials = "${file("credentials.json")}" | |
project = "ENTER_YOUR_PROJECT_ID_HERE" | |
} | |
resource "google_compute_instance" "name" { | |
name = "ENTER_YOUR_INSTANCE_NAME_HERE", | |
zone = "us-east1-b", | |
machine_type = "n1-standard-1", | |
min_cpu_platform = "Intel Skylake" |
<%# Put this code snippet between the <head></head>-tags in your application layout and %> | |
<%# replace 'UA-XXXXXXXX-X' with your own unique Google Analytics Tracking ID %> | |
<%# ... %> | |
<head> | |
<%# ... %> | |
<% if Rails.env.production? %> | |
<script type="text/javascript"> | |
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | |
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), |