sudo docker stop $(sudo docker ps -a -q)
sudo docker rm $(sudo docker ps -a -q)
sudo docker image rm $(sudo docker image ls -q) --force
sudo docker volume rm $(sudo docker volume ls -q) --force
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python3 | |
| from time import sleep | |
| from datetime import timedelta | |
| from selenium import webdriver | |
| from selenium.webdriver.chrome.options import Options as chrome_Options | |
| from datetime import datetime | |
| import os | |
| def ping(ip): | |
| response = os.system("timeout 0.1 ping -c 1 " + ip + " > /dev/null 2>&1") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pkg install -y vim | |
| mkdir $HOME/bin | |
| FILE="$HOME/bin/termux-file-editor" | |
| echo "!#/bin/bash" > $FILE | |
| echo "vim $1" >> $FILE | |
| chmod +x $FILE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pkg install -y vim | |
| mkdir $HOME/bin | |
| FILE="$HOME/bin/termux-file-editor" | |
| echo "!#/bin/bash" > $FILE | |
| echo 'vim $1' >> $FILE | |
| chmod +x $FILE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| Convert camelCase file into snake_case file using python. | |
| """ | |
| import re | |
| import argparse | |
| import sys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @ECHO OFF | |
| SET NORMAL_SEC=300 | |
| SET SLEEP_SEC=1 | |
| :: Get current power-scheme token | |
| FOR /F "tokens=4 delims= " %%A IN ('POWERCFG /GETACTIVESCHEME') DO ( | |
| SET SCHEMETOKEN=%%A | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import re | |
| def strip_vowels(text): | |
| return re.sub('[\u0591-\u05C7]', '', text) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <link href="https://vjs.zencdn.net/7.10.2/video-js.css" rel="stylesheet" /> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Document</title> | |
| </head> | |
| <body> | |
| <video id="dotsub_example" class="video-js vjs-default-skin" width="640" height="264" poster="http://video-js.zencoder.com/oceans-clip.png" controls preload="auto" data-setup='[]'> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Algorithmia # pip3 install algorithmia | |
| import argparse | |
| # Grab from https://teams.algorithmia.com/signup | |
| API_KEY = "<YOUR API KEY>" | |
| parser = argparse.ArgumentParser(description="Colorize image") | |
| parser.add_argument('-i', required=True, help="input image") | |
| parser.add_argument('-o', required=True, help="output image") |
move gnome-boxes image to another host Leave a reply
Let’s answer a few questions before we move:
Q: where does gnome-boxes store images? ~/.local/share/gnome-boxes/images
Q: Are there other directories I need to backup?