- Settings -> Keyboard -> Input Sources:
hope you find this useful, feel free to comment asking for shit
| # How to consume Github Package private registry with yarn? | |
| Create an .npmrc file in the same location as the package.json with this content. | |
| ``` | |
| registry=https://registry.yarnpkg.com/ | |
| @<username>:registry=https://npm.pkg.github.com | |
| //npm.pkg.github.com/:_authToken=<your auth token> | |
| always-auth=true |
| # Put this function to your .bashrc file. | |
| # Usage: mv oldfilename | |
| # If you call mv without the second parameter it will prompt you to edit the filename on command line. | |
| # Original mv is called when it's called with more than one argument. | |
| # It's useful when you want to change just a few letters in a long name. | |
| # | |
| # Also see: | |
| # - imv from renameutils | |
| # - Ctrl-W Ctrl-Y Ctrl-Y (cut last word, paste, paste) |
This repository has a dataset of 184.879 crimes committed in Buenos Aires: https://github.com/ramadis/delitos-caba
Download the raw data like this:
wget 'https://github.com/ramadis/delitos-caba/releases/download/3.0/delitos.json'
Now use Pandas to load that into a dataframe:
I thought I'd share some simple steps you can follow if you wan't to build, run and debug an F# program on OSX using dotnet core 2.0. I guess these steps would also work if you're running Linux, with some minor modifications.
Install dotnet sdk for OSX: https://www.microsoft.com/net/learn/get-started/macos
Install Visual Studio Code for OSX: https://code.visualstudio.com/
Install C# (yes, C#) extension for OSX: https://code.visualstudio.com/docs/languages/csharp
Create a new console application project using dotnet cli: dotnet new console -lang F# -n HelloWorld
| ############################################## | |
| # DEPENDENCIES # | |
| ############################################## | |
| export PYTHON_VERSION=3.10.12 | |
| export NODE_VERSION=18.17 | |
| # Install XCode developer tools | |
| if test -z $(xcode-select -p) | |
| then |
#Step 1: Update /etc/postfix/main.cf
$ sudo vim /etc/postfix/main.cf
Add the following lines, anywhere really, but preferably under the relayhost section:
relayhost = smtp.gmail.com:587
smtp_sasl_auth_enable = yes
| # Close all notifications | |
| my closeNotifications() | |
| on closeNotifications() | |
| tell application "System Events" to tell process "Notification Center" | |
| set theWindows to every window | |
| repeat with i from 1 to number of items in theWindows | |
| set this_item to item i of theWindows | |
| try | |
| click button 1 of this_item |
| // post about this: https://medium.com/@xwildeyes/download-and-split-a-youtube-playlist-into-playable-files-e208e2a2e51b | |
| // A script to split a youtube "playlist" file | |
| // into it's mp3 parts, with corresponding filenames and | |
| // everything | |
| // By wildeyes. | |
| // give it the name produced by youtube-dl -x https://www.youtube.com/watch?v=5nhp6ULk7mE | |
| youtubeAudioFilename = process.argv[2] | |
| // basically, a list of pairs of (time, name) in the format 00:00[:00] artist - song | |
| // see http://www.regexr.com/3bp42 for specs file example | |
| specsFilename = process.argv[3] |
| { | |
| "version": "0.1.0", | |
| // List of configurations. Add new configurations or edit existing ones. | |
| // ONLY "node" and "mono" are supported, change "type" to switch. | |
| "configurations": [ | |
| { | |
| // Name of configuration; appears in the launch configuration drop down menu. | |
| "name": "Run app.js", | |
| // Type of configuration. Possible values: "node", "mono". | |
| "type": "node", |