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.
javascript: Promise.all([import('https://unpkg.com/[email protected]?module'), import('https://unpkg.com/@tehshrike/[email protected]'), ]).then(async ([{ | |
default: Turndown | |
}, { | |
default: Readability | |
}]) => { | |
/* Optional vault name */ | |
const vault = ""; | |
/* Optional folder name such as "Clippings/" */ |
Teams_GetMainWindow(){ | |
; See implementation explanations here: https://tdalon.blogspot.com/get-teams-window-ahk | |
; Syntax: hWnd := Teams_GetMainWindow() | |
WinGet, WinCount, Count, ahk_exe Teams.exe | |
If (WinCount = 0) | |
GoTo, StartTeams | |
If (WinCount = 1) { |
This is a companion piece to my instructions on building TensorFlow from source. In particular, the aim is to install the following pieces of software
on an Ubuntu Linux system, in particular Ubuntu 20.04.
# /root/.unison/10Documents.prf | |
# Create one config file for each folder, or add one per | |
# root folder and add subfolders via | |
# path = 10Documents | |
# path = 20Media | |
# To make this unison job load at machine startup use an init-script | |
# or systemd service such as | |
# https://gist.github.com/thunfischbrot/0b6a21a84f166c4fa74fc5df4a470b17 | |
# local root to sync |
root
user (sudo su
).nginx
in /opt/redash
.certs
and certs-data
./opt/redash/nginx/nginx.conf
and place the following in it: (replace example.redashapp.com
with your domain name)
upstream redash {
server redash:5000;
}
# Split a repository into batches to avoid `pack exceeds maximum allowed size` on git push | |
REMOTE=origin | |
BRANCH=$(git rev-parse --abbrev-ref HEAD) | |
BATCH_SIZE=500 | |
# check if the branch exists on the remote | |
if git show-ref --quiet --verify refs/remotes/$REMOTE/$BRANCH; then | |
# if so, only push the commits that are not on the remote already | |
range=$REMOTE/$BRANCH..HEAD |
https://github.com/PacktPublishing free to download books code by Packet
https://github.com/EbookFoundation/free-programming-books Very immense