sudo apt-get update
sudo apt-get install -y git binutils make
git clone https://github.com/aws/efs-utils
cd efs-utils
make deb
sudo apt-get install -y ./build/amazon-efs-utils*deb
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
| const API_URL = 'https://api.evacenter.com/graphql/'; | |
| function getCookieValue(name) { | |
| let matches = document.cookie.match( | |
| new RegExp('(?:^|; )' + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + '=([^;]*)'), | |
| ); | |
| return matches ? decodeURIComponent(matches[1]) : undefined; | |
| } | |
| async function fetchAPI(url, headers, body) { |
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
| const API_URL = "https://api.evacenter.com/graphql/"; | |
| function getCookieValue(name) { | |
| let matches = document.cookie.match(new RegExp( | |
| "(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)" | |
| )); | |
| return matches ? decodeURIComponent(matches[1]) : undefined; | |
| } | |
| async function fetchAPI(url, headers, body) { |
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 python | |
| # Inspired by https://gist.github.com/jtangelder/e445e9a7f5e31c220be6 | |
| # Python3 http.server for Single Page Application | |
| import urllib.parse | |
| import http.server | |
| import socketserver | |
| import re | |
| from pathlib import Path |
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
| https://linuxsuperuser.com/reinstall-grub2-efi-bootloader-ubuntu/ | |
| https://linuxsuperuser.com/how-to-restore-or-create-efi-partition-in-ubuntu/ | |
| https://linuxsuperuser.com/reinstall-grub2-efi-bootloader-ubuntu/ |
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
| # Visit: https://askubuntu.com/questions/990218/camera-not-working-on-macbook-pro | |
| # As at 8/3/2020 follow the instructions Here. They come in two parts, make sure you also follow the ones for your platform. They are a bit jumbled on the site so I have included them below. | |
| # I'm running 18.04 LTS (Bionic) on a 2013 Macbook Pro. The instructions that worked for me were as follows: | |
| sudo apt-get install git | |
| sudo apt-get install curl xzcat cpio | |
| git clone https://github.com/patjak/facetimehd-firmware.git | |
| cd facetimehd-firmware | |
| make | |
| sudo 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
| usermod -s /bin/bash user |
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
| CREATE EXTENSION dblink; | |
| SELECT dblink_connect('dbname=SYS_BK user=openerp password=1234 host=192.168.50.100'); | |
| select | |
| -- count(*), date | |
| * | |
| from dblink('select id, date, company_id from account_move_line') | |
| as t1(id integer, date date, company_id integer) |
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
| sudo ufw allow from any to any port 10000 proto tcp |
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
| # WSGI Handler sample configuration file. | |
| # | |
| # Change the appropriate settings below, in order to provide the parameters | |
| # that would normally be passed in the command-line. | |
| # (at least conf['addons_path']) | |
| # | |
| # For generic wsgi handlers a global application is defined. | |
| # For uwsgi this should work: | |
| # $ uwsgi_python --http :9090 --pythonpath . --wsgi-file openerp-wsgi.py | |
| # |
NewerOlder