- "Check that the version of Elixir on the client matches the server" (Source)
- In livebook container, publish ports. For example:
8080:8080
8081:8081 - Add network of the elixir container to the livebook container. To list networks, run
docker network ls. - Bind your own folder to
/datafrom the Livebook container.
This file contains hidden or 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 argparse | |
| import math | |
| from binascii import unhexlify | |
| def egcd(a, b): | |
| if a == 0: | |
| return b, 0, 1 | |
| else: |
This file contains hidden or 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
| ;;Trigger a refresh of vc-modeline on some magit functions | |
| (require 'magit) | |
| (defun refresh-vc-state (&rest r) (message "%S" (current-buffer))(vc-refresh-state)) | |
| (advice-add 'magit-checkout-revision :after 'refresh-vc-state '((name . "magit-refresh-on-checkout-revision"))) | |
| (advice-add 'magit-branch-create :after 'refresh-vc-state '((name . "magit-refresh-on-branch-create"))) | |
| (advice-add 'magit-branch-and-checkout :after 'refresh-vc-state '((name . "magit-refresh-on-checkout-and-branch"))) | |
| (advice-add 'magit-branch-or-checkout :after 'refresh-vc-state '((name . "magit-refresh-on-branch-or-checkout"))) |
This file contains hidden or 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
| cd ~/Applications | |
| wget https://downloads.sourceforge.net/project/dirb/dirb/2.22/dirb222.tar.gz | |
| tar -xvf dirb222.tar.gz | |
| rm dirb222.tar.gz | |
| brew install autoconf | |
| chmod -R 755 dirb222 | |
| cd dirb222 | |
| ./configure | |
| make | |
| make install |
This file contains hidden or 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 python3 | |
| # | |
| # Query AWS Athena using SQL | |
| # Copyright (c) Alexey Baikov <sysboss[at]mail.ru> | |
| # | |
| # This snippet is a basic example to query Athen and load the results | |
| # to a variable. | |
| # | |
| # Requirements: | |
| # > pip3 install boto3 botocore retrying |
This file contains hidden or 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
| /* | |
| * Migration | |
| */ | |
| 'use strict'; | |
| module.exports = { | |
| up: function(queryInterface, Sequelize) { | |
| return queryInterface.createTable('Users', { | |
| firstName: { | |
| type: Sequelize.STRING | |
| }, |
This file contains hidden or 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
| --- | |
| - name: Install MacOS Packages | |
| hosts: localhost | |
| become: false | |
| vars: | |
| brew_cask_packages: | |
| - atom | |
| - docker | |
| - dropbox | |
| - firefox |
This file contains hidden or 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/bash | |
| #Make sure we’re running with root permissions. | |
| if [ `whoami` != root ]; then | |
| echo Please run this script using sudo | |
| echo Just type “sudo !!” | |
| exit | |
| fi | |
| #Check for 64-bit arch | |
| if [uname -m != x86_64]; then |
NewerOlder