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.
| <%= form_with model: citizen, class: "card flex flex-col gap", data: { controller: "form" } do |form| %> | |
| <div class="flex flex-col gap mb-2"> | |
| <div class="flex flex-col gap-half"> | |
| <% countries = Country.order(:name) %> | |
| <%= label_tag :country_id, "Country", class: "text-sm font-medium leading-none" %> | |
| <%= select_tag :country_id, options_from_collection_for_select(countries, :id, :name, citizen.country_id), include_blank: "Select one", class: "input", data: { action: "form#submit", form_submitter_param: "on_country_change" } %> | |
| </div> | |
| <div class="flex flex-col gap-half"> | |
| <% states = State.where(country_id: citizen.country_id).order(:name) %> |
| // 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 document is an attempt to pin down all the things you don't think about when quoting for a project, and hopefully provide a starting point for some kind of framework to make quoting, working and delivering small-medium jobs more predictable and less stressful.
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> |