- Install
wpasupplicant - Turn on wifi radios:
sudo nmcli radio wifi on - Check your devices are recognised even if they're not "managed":
sudo iwconfig - Check your wifi (here called "wlp3s0") is capable of detecting nearby routers:
sudo iwlist wlp3s0 scan - Configure
netplanby dropping a file called01-netcfg.yamlinto/etc/netplan/or edit existing file there. See example below. netplan try,netplan generate,netplan apply.
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 | |
| set -euo pipefail | |
| read -p "Github repo to clone: " gh | |
| read -p "Bitbucket destination: " bb | |
| read -p "Github username: " ghu | |
| read -p "Bitbucket username: " bbu | |
| git clone https://github.com/$ghu/$gh |
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
| # A roundabout way to get Ubuntu Artful alpha (17.10) on EDGAR (Acer Chromebook 14 4GB version - CB3-431-C5FM) | |
| # Install missing 'legacy' BIOS piece to enable Ctrl-L on boot: | |
| cd; curl -LOk https://mrchromebox.tech/firmware-util.sh && sudo bash firmware-util.sh | |
| # Install Galliumos (nightly - as of 09/09/2017) | |
| # https://wiki.galliumos.org/Installing | |
| cd; curl -LOk https://chrx.org/go && sh go -d galliumos -e desktop -r nightly -v |
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 perl | |
| # Pandoc filter which converts paragraps containing only the LaTeX | |
| # `\newpage` or `\pagebreak` command into appropriate pagebreak markup | |
| # for other formats. | |
| # | |
| # You will need perl version 5.10.1 or higher <https://www.perl.org/get.html> | |
| # (Strawberry Perl recommended on Windows!) | |
| # and a module installer <http://www.cpan.org/modules/INSTALL.html> | |
| # and the Pandoc::Elements module version 0.33 or higher |
How to use this:
# Make a suitable directory
mkdir whatever && cd whatever
# Set up virtual env
virtualenv --python=python3 venv
source venv/bin/activate
pip install flask flask_restplus
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
| BEGIN MESSAGE. | |
| pNDvwhystUSfREk 6CZlgP5pDbEthDx kgJ3uLpwjCHE6L5 ZkhZXiR3iEMwvdk | |
| Knc3lRi7AIRtdkn f7U6NZcbzpbTCKq 6Xr2MZHgg6ZqWjy Abevu3bUnOUBioP | |
| IiYKZkK9uN6KORI H0iHRG4SavIZXan 1C7Sab8tHSIjkDI X8YTHeED989atrc | |
| SxK4zyOwyNZfQdJ 8PF4ggKvsPkonSH XC4Ht0Qz5Z. | |
| END MESSAGE. |
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
| <html> | |
| <head> | |
| <script type="text/javascript"> | |
| function sign(input, password) { | |
| // salt should be Uint8Array or ArrayBuffer | |
| var saltBuffer = str2ab('e85c53e7f119d41fd7895cdc9d7bb9dd'); | |
| // don't use naive approaches for converting text, otherwise international | |
| // characters won't have the correct byte sequences. Use TextEncoder when | |
| // available or otherwise use relevant polyfills |
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 pandas as pd | |
| from sqlalchemy import create_engine | |
| from sqlalchemy.sql import text as sql_text | |
| from collections import defaultdict | |
| with open('/Users/jklinger/Nesta-AWS/AWS-RDS-config/open-academic-graph.config') as f: | |
| host, port, database, user, password = f.read().split(':') | |
| database_uri = 'postgresql://{}:{}@{}/{}'.format(user, password, host, "microsoft_academic_graph") | |
| con = create_engine(database_uri) |