Skip to content

Instantly share code, notes, and snippets.

@sjimenez44
sjimenez44 / TimeZone.md
Created September 8, 2021 19:19
Change time zone Docker container

Change TimeZone in Docker containers

With Docker Engine

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
@ttyler01
ttyler01 / Speedify-Setup.md
Last active May 7, 2024 22:40
These are the things I did to configure Speedify on my Raspberry Pi to bond 3 DSL modems for my house

Intro

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.

@nickcernis
nickcernis / docker-cleanup.md
Last active August 5, 2024 12:34
Docker commands to remove all containers and images

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 $:

@lovemyliwu
lovemyliwu / wifi_watch_dog.sh
Last active January 28, 2023 07:51
auto reconnect wifi after kick out by router on ubuntu
#!/bin/bash
check_internet_connection() {
return $(ping -c 1 www.baidu.com > /dev/null)
}
SSID=$1
PW=$2
while [ 1 ]; do
check_internet_connection
@justdoit0823
justdoit0823 / netcat_examples.md
Last active April 15, 2023 20:23
A collection of examples about using netcat.

Netcat Examples

Establish TCP Connection

  • Connect to network host over TCP connection
@nickkraakman
nickkraakman / ffmpeg-cheatsheet.md
Last active September 5, 2024 22:24
FFmpeg cheat sheet for 360 video

FFmpeg Cheat Sheet for 360º video

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:

  • ffmpeg calls the FFmpeg application in the command line window, could also be the full path to the FFmpeg binary or .exe file
@beeman
beeman / remove-all-from-docker.sh
Created November 15, 2016 03:04
Remove all from Docker
# 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