- Install SmartOS
- Login as root (over SSH)
- Create zone (https://wiki.smartos.org/how-to-create-a-zone/):
imgadm import cfa9c88e-03f8-11eb-9980-879ff7980a9f # 20.3.0 64-bit vmadm create <<EOL
{
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e # Enable errexit option | |
### Adding arbitrarily large directory structures to IPFS, without running into OOM kills, failure at 99% etc. | |
### Results in directory with same name in MFS, use `ipfs files ls` to see it. | |
### Uses Blake2B for faster hashing and maximum block size, assuming large fiels with lower needs for searching. | |
### Uses filestore as not to duplicate data (make sure to enable it in the ipfs config!). | |
# Create directory structure in MFS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
./configure \ | |
--with-gdal=/Library/Frameworks/GDAL.framework/Versions/2.4/unix/bin/gdal-config \ | |
--disable-odbc \ | |
CXXFLAGS="-std=gnu++11" \ | |
CPPFLAGS="-I/Library/Frameworks/PROJ.framework/Headers" \ | |
LDFLAGS="-L/Library/Frameworks/PROJ.framework/unix/lib" | |
make -j8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ pip install psycopg2 --no-binary :all: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ pip install psycopg2 --no-binary :all: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// To be executed from Chrome console when selecting excluded devices, excludes all options by default | |
var checkboxes = document.getElementsByTagName('checkbox'); | |
for (var i=0; i< checkboxes.length; i++) { | |
var checked = checkboxes[i].getAttribute('aria-checked'); | |
if (checked != "true") { | |
checkboxes[i].click(); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import passwords from Dashlane's CSV-export into pass | |
# Note: you might need to manually clean up the typically malformatted Dashlane CSV export | |
import sys | |
import csv | |
import argparse | |
import subprocess | |
def main(argv=None): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import csv | |
sniff_range = 4096 | |
delimiters = ';\t,' | |
infile_name = 'blabla.csv' | |
sniffer = csv.Sniffer() | |
print 'Reading file: %s' % infile_name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
import argparse | |
import tempfile | |
import webbrowser | |
import time | |
from docutils.core import publish_string | |
import locale |
Install XCode from the App Store.
Install the XCode command line tools from the 'Downloads' pane in the XCode settings.
Install SublimeText.
Add the following SublimeText configuration options (to User settings):
// Set to true to insert spaces when tab is pressed "translate_tabs_to_spaces": true,
NewerOlder