| title | How to Create a Private “Fork” of a Public GitHub Repo | ||||
|---|---|---|---|---|---|
| description | Step-by-step guide to clone a public repo into a private repository in your organization while still pulling in upstream changes. | ||||
| tags |
|
Detailed Technical Algorithm for a TikTok-like Recommendation System
The objective is to develop a recommendation system that maximizes user engagement by analyzing a multitude of user interaction signals to present the most appealing content. The system optimizes for two key metrics:
- User Retention: Encouraging users to return to the platform.
- Time Spent: Increasing the duration users spend on the platform per session.
The timezone of a container can be set using an environment variable in the docker container when it is created. For example:
$ docker run ubuntu:latest date
Sat Feb 27 15:58:32 UTC 2021
$ docker run -e TZ=America/Bogota ubuntu:latest date
Sat Feb 27 15:58:40 Asia 2021
Note: Verizon enabled LTE Home Internet in our area a while back and we switched immediately. The below setup was fun and instructive however we wasted no time dumping DSL. The whole-home VPN this provided - which you could still easily set up without all the multiplexing - was great but there were constant issues with streaming services trying to prevent revenue leakage.
I live in a semi-rural area and we have crap internet options. The ONLY wired service to my house is ATT DSL. In 2020 some of the neighbors convinced ATT to sell us business accounts, which allows us to have more than 1 DSL line to the house (we got 3). Rather than run multiple WiFi networks - one for each DSL modem - at my house I wanted to bond the lines and aggregate the bandwidth. ATT won't do this for you, even though the DSL modems support it.
docker kill $(docker ps -q) to kill all running containers
docker rm $(docker ps -a -q) to delete all stopped containers.
docker volume rm $(docker volume ls -q) to delete all volumes.
docker rmi $(docker images -q) to delete all images.
Run all commands:
docker kill $(docker ps -q) && docker rm $(docker ps -a -q) && docker volume rm $(docker volume ls -q) && docker rmi $(docker images -q)
For fish shell, remove the $:
| #!/bin/bash | |
| check_internet_connection() { | |
| return $(ping -c 1 www.baidu.com > /dev/null) | |
| } | |
| SSID=$1 | |
| PW=$2 | |
| while [ 1 ]; do | |
| check_internet_connection |
Brought to you by Headjack
FFmpeg is one of the most powerful tools for video transcoding and manipulation, but it's fairly complex and confusing to use. That's why I decided to create this cheat sheet which shows some of the most often used commands.
Let's start with some basics:
ffmpegcalls the FFmpeg application in the command line window, could also be the full path to the FFmpeg binary or .exe file
| # Stop all containers | |
| docker stop `docker ps -qa` | |
| # Remove all containers | |
| docker rm `docker ps -qa` | |
| # Remove all images | |
| docker rmi -f `docker images -qa ` | |
| # Remove all volumes |