###Sketch trial non stop
Open hosts files:
$ open /private/etc/hosts
Edit the file adding:
127.0.0.1 backend.bohemiancoding.com
127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com
| def binomial(n, k): | |
| """ | |
| A fast way to calculate binomial coefficients by Andrew Dalke. | |
| See http://stackoverflow.com/questions/3025162/statistics-combinations-in-python | |
| """ | |
| if 0 <= k <= n: | |
| ntok = 1 | |
| ktok = 1 | |
| for t in xrange(1, min(k, n - k) + 1): | |
| ntok *= n |
###Sketch trial non stop
Open hosts files:
$ open /private/etc/hosts
Edit the file adding:
127.0.0.1 backend.bohemiancoding.com
127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com
| #!/bin/bash | |
| echo "\n\n--- Killing Stupid Adobe Auto Load Crap ---\n\n" | |
| launchctl unload -w /Library/LaunchAgents/com.adobe.AdobeCreativeCloud.plist | |
| launchctl unload -w /Library/LaunchAgents/com.adobe.AAM.Updater-1.0.plist | |
| echo "\n\n--- Done! ---\n\n" |
| // Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible). | |
| // Tweak the makePrettyJSON_ function to customize what kind of JSON to export. | |
| var FORMAT_ONELINE = 'One-line'; | |
| var FORMAT_MULTILINE = 'Multi-line'; | |
| var FORMAT_PRETTY = 'Pretty'; | |
| var LANGUAGE_JS = 'JavaScript'; | |
| var LANGUAGE_PYTHON = 'Python'; |
| /** | |
| * Append data to a Google Spreadsheet | |
| * | |
| * You will need a file called '.env' with the following values: | |
| * | |
| * - GOOGLE_ID (Google oAuth Client ID) | |
| * - GOOGLE_SECRET (Google oAuth Client Secret) | |
| * - GOOGLE_REFRESH_TOKEN (Google oAuth Refresh Token) | |
| * - GOOGLE_SPREADSHEET_ID (Google Spreadsheet ID) | |
| * |
Microsoft partnered with Canonical to create Bash on Ubuntu on Windows, running through a technology called the Windows Subsystem for Linux. Below are instructions on how to set up the ssh server to run automatically at boot.
/etc/ssh/sshd_config file by running the command sudo vi /etc/ssh/sshd_config and do the following
Port to 2222 (or any other port above 1000)PasswordAuthentication to yes. This can be changed back to no if ssh keys are setup.sudo service ssh --full-restart| #!/bin/bash | |
| # Compute the Giacenza Media Annua (GMA) of a Revolut account, required by the Italian INPS. | |
| # Dependencies: awk, GNU date, getopts, xargs | |
| # Computation method: https://bit.ly/3avDLu3 | |
| # Thread on Revolut forum: https://bit.ly/3511e5h | |
| # Assumptions: |