This has been incorporated in a small library.
This file contains 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
# Desktop entry for dillo. | |
# System wide install as /usr/share/applications, or /usr/local/share/applications | |
# Private install as $HOME/.local/share/applications | |
# See http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-1.0.html | |
# See http://standards.freedesktop.org/basedir-spec/basedir-spec-0.6.html | |
[Desktop Entry] | |
Version=3.0.5 | |
Type=Application | |
Name=Dillo web browser | |
GenericName=Web Browser |
This file contains 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 signal import pause | |
from rich.console import Console | |
from google_login import * | |
console = Console() | |
console.log("Initializing ChromeOptions...") | |
options = webdriver.ChromeOptions() | |
options.headless = False |
This file contains 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
def hex_to_rgb(hex): | |
hex = hex.lstrip('#') | |
hlen = len(hex) | |
return tuple(int(hex[i:i+hlen/3], 16) for i in range(0, hlen, hlen/3)) |
This file contains 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
// NOTE: I added the .js extension to this gist so it would have syntax highlighting. This file should have NO file extension | |
{ | |
// Settings | |
"passfail" : false, // Stop on first error. | |
"maxerr" : 100, // Maximum error before stopping. | |
// Predefined globals whom JSHint will ignore. | |
"browser" : true, // Standard browser globals e.g. `window`, `document`. |
This file contains 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/sh | |
for d in */ ; do | |
HOME=$(pwd)/$d; | |
echo $d; | |
# Remove the comment by your need | |
# megasync # first run (configure client by client at once) | |
# megasync 2> /dev/null & # load all clients at non blocking way | |
done |
This file contains 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 | |
# Make sure your Android device is plugged in and accessible over adb. | |
#### Remember to enable virtual displays in xorg by adding the following to your configuration (e.g. /usr/share/X11/xorg.conf.d/20-virtual.conf) | |
# Section "Device" | |
# Identifier "intelgpu0" | |
# Driver "intel" | |
# Option "VirtualHeads" "1" | |
#EndSection |
This file contains 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
ffmpeg -i input.mp4 -s hd480 -c:v libx264 -crf 23 -c:a aac -strict -2 output.mp4 |
OlderNewer