Skip to content

Instantly share code, notes, and snippets.

Avatar
👋
Hello, world!

ochen1

👋
Hello, world!
View GitHub Profile
@ochen1
ochen1 / example.py
Last active Apr 26, 2021
Google Login
View example.py
from signal import pause
from rich.console import Console
from google_login import *
console = Console()
console.log("Initializing ChromeOptions...")
options = webdriver.ChromeOptions()
options.headless = False
@ochen1
ochen1 / novnc_show_local_cursor.patch
Created Mar 26, 2021
NoVNC patch to show local cursor
View novnc_show_local_cursor.patch
--- core/display.js.bak 2021-03-26 16:10:05.826957824 +0000
+++ core/display.js 2021-03-26 16:10:41.667264310 +0000
@@ -507,7 +507,7 @@
},
disableLocalCursor: function () {
- this._target.style.cursor = "none";
+ // this._target.style.cursor = "none";
},
@ochen1
ochen1 / answerfile
Last active Feb 21, 2021 — forked from oofnikj/answerfile
Install Docker on Termux
View answerfile
KEYMAPOPTS="us us"
HOSTNAMEOPTS="-n alpine"
INTERFACESOPTS="auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
hostname alpine
"
TIMEZONEOPTS="-z UTC"
@ochen1
ochen1 / pip3-update.sh
Created Jan 1, 2021
Update Python PIP Packages
View pip3-update.sh
#!/bin/bash
pip3 list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip3 install -U
@ochen1
ochen1 / PasswordlessSudo.sh
Created Sep 19, 2020
A script to disable asking for password when using sudo.
View PasswordlessSudo.sh
#!/bin/bash
echo "$USER ALL=(ALL:ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/$USER