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 os | |
import requests | |
FAC_API_BASE = os.getenv("FAC_API_URL") | |
FAC_API_KEY = os.getenv("API_GOV_KEY") | |
# get_n_report_ids : number -> list-of strings | |
# Returns `n` report IDs. | |
def get_n_report_ids(n): | |
url = f"{FAC_API_BASE}/general?select=report_id&limit={n}" |
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
from openpyxl import Workbook | |
from openpyxl.workbook.defined_name import DefinedName | |
from openpyxl.worksheet.datavalidation import DataValidation | |
from openpyxl.utils import quote_sheetname, absolute_coordinate | |
import json | |
from json import JSONEncoder | |
wb = Workbook() | |
ws = wb.active |
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
<!DOCTYPE html> | |
<html lang = "en"> | |
<head> | |
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/chart.min.js"></script> | |
</head> | |
<body> | |
<canvas id="chart01" width="400" height="400"></canvas> | |
<script> |
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/python | |
# | |
# A very simple python-pcapy example for monitor mode WiFi sniffing. | |
# | |
# Usage example: | |
# $ python pcapySniffer.py mon0 | |
import pcapy | |
import sys | |
import os |
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 os | |
import re | |
root = "." | |
list_of_files = [] | |
file_count = 0 | |
ignore_extensions = ["sh", "md", "png", "otf", "woff2", "ttf", "woff", "eot", "ico", "jpg", "sample"] |
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> | |
<title>Replacing JQuery?</title> | |
</head> | |
<body> | |
<script> | |
let MiniQuery = class { | |
constructor (queryString) { | |
this.queryString = queryString; | |
// In JQuery... |
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
#lang racket | |
(require db sql) | |
(provide conn) | |
(when (file-exists? "/tmp/dbase.sqlite") | |
(delete-file "/tmp/dbase.sqlite")) | |
(define conn (sqlite3-connect #:database | |
"/tmp/dbase.sqlite" |
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
from tbl import * | |
pets_url = "https://docs.google.com/spreadsheets/d/e/2PACX-1vSK2rd47ogfI2CpQi2L6HDo9AOEhnhqBN4zR4kLPUO28vBzmlc8XQWrvTfBYCU0ePf478yxcNKdOy5m/pub?gid=0&single=true&output=csv" | |
pets_tbl = tbl_from_sheet(pets_url) |
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
So you were able to install Kodi via "sudo apt-get install kodi" but have no idea how to force it to autostart on boot? | |
You have tried all those googled solutions such as adding kodi-standalone to .bashrc, creating init.d script but nothing worked? | |
This is the right place to get the answer. | |
For some reason, the current version of Kodi doesnt provide 2 important files: | |
/etc/init.d/kodi | |
/etc/default/kodi |
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
### Elecrow HDMI 5inch 800x480 LCD display | |
# https://www.amazon.com/Elecrow-Display-Monitor-800x480-Raspberry/dp/B013JECYF2/ | |
# Adopted from the following URL. Modified for clarity and corrections. | |
# https://www.amazon.com/gp/aw/review/B013JECYF2/R3ZXW0VTV8AEB/ref=cm_cr_dp_mb_rvw_1?ie=UTF8&cursor=1 | |
# DOCUMENTATION > CONFIGURATION > CONFIG-TXT | |
# https://www.raspberrypi.org/documentation/configuration/config-txt.md | |
### Display configuration | |
# hdmi_group: 0 auto-detect from EDID; 1 CEA; 2 DMT | |
hdmi_group=2 |
NewerOlder