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
#!/bin/bash | |
# My simple bash script to turn on, off, and check state of docker and containerd | |
# by dn0r | |
containerd_state=$(systemctl is-active containerd) | |
docker_state=$(systemctl is-active docker) | |
dockon () { | |
sudo systemctl start containerd && sudo systemctl start docker |
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
# The script is written like this to allow Python2.7-Python3.x to run it. Feel free to make any improvements or changes | |
try: | |
VERSION = raw_input('Enter chromium version: ') | |
EXT_ID = raw_input('Enter extension ID: ') | |
CRX_URL = "https://clients2.google.com/service/update2/crx?response=redirect&acceptformat=crx2,crx3&prodversion=" + VERSION + "&x=id%3D" + EXT_ID + "%26installsource%3Dondemand%26uc" | |
print(CRX_URL) | |
except: |
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
from sys import argv | |
script, string = argv | |
import hashlib | |
sha256 = hashlib.sha256() | |
sha256.update(string.encode('utf-8')) | |
output = sha256.hexdigest() | |
print(output) |