Skip to content

Instantly share code, notes, and snippets.

View EricSeastrand's full-sized avatar

Eric Seastrand EricSeastrand

View GitHub Profile
{% capture iframe_content %}
<body onload="resizeIframe()">
{{ bit_widget_html }}
</body>
{% endcapture %}
<script>
/*
@EricSeastrand
EricSeastrand / pushFileToStorage.ts
Last active January 2, 2023 18:52 — forked from mrgarymartin/pushFileToStorage.ts
Angular Fire Upload tasks
pushFileToStorage(fileUpload: FileUpload) { // Pass in a callback as argument
const filePath = `${this.basePath}/${fileUpload.file.name}`;
const storageRef = ref(this.storage, filePath);
const uploadTask = uploadBytesResumable(storageRef, fileUpload.file);
uploadTask.on('state_changed',
(snapshot) => {
// Observe state change events such as progress, pause, and resume
// Get task progress, including the number of bytes uploaded and the total number of bytes to be uploaded
@EricSeastrand
EricSeastrand / gist:b21b2e045756f719a31b951256234dec
Last active December 11, 2023 23:48
Making a Debian router

Set WAN DHCP client Set LAN static IP and subnet

cat /etc/network/interfaces 
source /etc/network/interfaces.d/*

# The loopback network interface
auto lo