# stop active raid
mdadm --stop /dev/md[01]
# destroy partition table on hdds
dd if=/dev/zero of=/dev/sda bs=1M count=512
dd if=/dev/zero of=/dev/sdb bs=1M count=512
# create new partition table
sgdisk -og /dev/sda
# -*- coding: utf-8 -*- | |
""" | |
Zendesk timezones are represented by friendly names that map to tz database names. | |
For example, an API request returns "Eastern Time (US & Canada)" instead of "America/New_York". | |
You can map the friendly names to the tz database names by referencing the Constants > Mapping | |
section of the Ruby on Rails TimeZone object doc. | |
https://developer.zendesk.com/rest_api/docs/core/users#time-zone |
/** | |
* This bookmarklet makes it possible to transfer words from Leo Trainer to Anki. | |
* It is configured for fr-de (French to German) translations, but can easily be | |
* adapted to other languages. | |
* | |
* Prerequisites: | |
* - a Leo account (http://www.leo.org/) with a few words saved in the trainer | |
* - an Anki account (https://ankiweb.net/account/register) | |
* | |
* 1. Crunch the following code and add it to your bookmarks |
<? | |
// <readme> | |
/* | |
This is a lite version of Olark's and Intercom's functionality (without the chat part). | |
It lets you get feedback from users on your site to your email. | |
And you won't have to rely on another company anymore! | |
#killyourdependencies |
require 'sidekiq/api' | |
# 1. Clear retry set | |
Sidekiq::RetrySet.new.clear | |
# 2. Clear scheduled jobs | |
Sidekiq::ScheduledSet.new.clear |
output = `cat #{ENV["CIRCLE_ARTIFACTS"] || "."}/coverage/index.html | grep Changed -A 2 | grep "[0-9\.]*%"` | |
percentage_match = output.match(/([0-9\.]+)%/) | |
raise "Unable to determine test coverage change" unless percentage_match | |
RED = "\033[0;31m" | |
BOLD = "\033[1m" | |
NO_COLOR = "\033[0m" | |
percentage = percentage_match[0].to_f |
From time to time, Musk will send out an e-mail to the entire company to enforce a new policy or let them know about something that's bothering him. One of the more famous e-mails arrived in May 2010 with the subject line: Acronyms Seriously Suck:
There is a creeping tendency to use made up acronyms at SpaceX. Excessive use of made up acronyms is a significant impediment to communication and keeping communication good as we grow is incredibly important. Individually, a few acronyms here and there may not seem so bad, but if a thousand people are making these up, over time the result will be a huge glossary that we have to issue to new employees. No one can actually remember all these acronyms and people don't want to seem dumb in a meeting, so they just sit there in ignorance. This is particularly tough on new employees.
That needs to stop immediately or I will take drastic action - I have given enough warning over the years. Unless an acronym is approved by me, it should not enter the SpaceX glossary.
#!/usr/bin/env bash | |
shopt -s expand_aliases | |
export EDITOR=vim | |
export VISUAL=vim | |
mkdir -p $HOME/log # TODO: GCP logging shit | |
STARTTIME=`date --iso-8601=minutes --utc` |
Guide: Run FreeBSD 13.1-RELEASE for ARM64 in QEMU on Apple Silicon Mac (MacBook Pro M1, etc) with HVF acceleration (Hypervisor.framework)
This guide was adapted from https://gist.github.com/niw/e4313b9c14e968764a52375da41b4278#running-ubuntu-server-for-arm64
- Install Xcode from App Store or install Command Line Tools on your Mac running on Apple Silicon.