This workflow uses the GitHub CLI to keep a forked repo in sync with the upstream repo. Add it to your repo as .github/workflows/sync-fork.yaml
.
It runs daily to sync the default branch and can be triggered manually for any branch.
// Paste the code below into your webbrowser console and press "enter" | |
// To open the console you can press "F12" or "Ctrl + Shift + J" for most browsers. | |
// Read more here: https://appuals.com/open-browser-console/ | |
// Instructions video on my twitter: https://twitter.com/_carlhannes/status/1590441813445599232 | |
// The code re-tries fetching data if it gets status 429, which is the error that the SJ page has | |
// It does this together with an exponential back-off delay which is common to use with microservices of this type | |
// Because of these re-tries and the delay, the overall load of the website and the servers will be lower, | |
// since it does not need to re-fetch requests that actually succeed. Read more on my twitter if you're interested: | |
// https://twitter.com/_carlhannes/status/1590605735314206721 |
This tutorial is dated Oct 2021, if it's much further on than that this information might be out of date.
This is a guide on setting up a static HTTPS website on your raspberry pi using docker and nginx. The aim is to have this running on the raspberry pi and to be able to access it from a host computer on the same local network. You should already be able to ssh into your pi from your host computer and have raspberry pi OS set up.
Here is a list of resources that I have read either fully, or at least to an extent with which I am comfortable with endorsing them.
I've used these resources in different ways:
1- Go to: https://www.facebook.com/{your_id_or_username}/allactivity/?category_key=LIKEDPOSTS&filter_hidden=ALL&filter_privacy=NONE
You can use Filter to choose year or month.
2- Open the console and run the following JavaScript code and wait:
setInterval(() => { for (const Button of document.querySelectorAll('div[aria-label="Action options"]')) { Button.click() document.querySelector('div[role="menuitem"]').click() } }, 1000)
<!DOCTYPE NETSCAPE-Bookmark-file-1> | |
<!-- This is an automatically generated file. | |
It will be read and overwritten. | |
DO NOT EDIT! --> | |
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"> | |
<TITLE>Bookmarks</TITLE> | |
<H1>Bookmarks</H1> | |
<DL><p> | |
<DT><H3 ADD_DATE="1626629115" LAST_MODIFIED="1626629462" PERSONAL_TOOLBAR_FOLDER="true">Bookmarks bar</H3> | |
<DL><p> |
Note: This gist may be outdated, thanks to all contributors in comments.
adb
is the Android CLI tool with which you can interact with your android device, from your PC
You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.
Don't hesitate to read comments, there is useful tips, thanks guys for this !
import { Controller } from "stimulus" | |
import { DirectUpload } from "@rails/activestorage" | |
import Dropzone from "dropzone" | |
import { getMetaValue, findElement, removeElement, insertAfter } from "helpers" | |
Dropzone.autoDiscover = false | |
export default class extends Controller { | |
static targets = [ "input" ] |
The initial goal of this project is to use the raspberry pi in place of my Wireless Range Extender and then going from 3 wireless networks (2.4ghz, 2.4ghz extended, 5ghz) at home to only one (5ghz). This way I'm reducing the exposition to radio waves for the whole familly at home.
Ok, enough drama for now, let's go technical. 😁
Example on how to run locally an AWS Lambda via API Gateway using localstack.
Based on...