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 | |
| ################################## | |
| # Clone every GitHub Gist | |
| # Requirement: The GitHub CLI | |
| # sudo apt install gh | |
| ################################## | |
| mkdir gists | |
| cd gists |
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 | |
| # change working dir | |
| cd "$(dirname "$0")" | |
| # get ajax_nonce from webpage | |
| wget --output-document domain.html "https://domain.hu" | |
| AJAX_NONCE=$(cat domain.html | grep nonce | cut -d"=" -f2 | tr -d " ;" | jq --raw-output ".ajax_nonce") | |
| echo "ajax_nonce = $AJAX_NONCE" | |
| # prepare website |
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
| # bejelentkezik az nCore-ba és automatikusan letölti a keresés első találatának torrent file-ját | |
| from webdriver_manager.chrome import ChromeDriverManager | |
| from selenium.webdriver.chrome.service import Service | |
| from selenium.webdriver import Chrome | |
| from selenium.webdriver.common.keys import Keys | |
| from selenium.webdriver.common.by import By | |
| from selenium.webdriver.chrome.options import Options | |
| search = "harry potter felver" |
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 | |
| # Read more: | |
| # http://ffmpeg.org/ffmpeg-filters.html#v360 | |
| ffmpeg.exe -i input.mp4 -vf "v360=input=equirect:output=flat:ih_fov=180:h_fov=70:v_fov=70:pitch=-10:in_stereo=sbs:out_stereo=sbs,scale=1600:-1" output.mp4 |
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
| <script src="https://unpkg.com/alpinejs" defer></script> | |
| <style> | |
| body{ | |
| background-color: #444; | |
| color: #ddd; | |
| } | |
| </style> | |
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/sh | |
| sudo xattr -lr /Applications/Google\ Chrome.app | |
| sudo xattr -cr /Applications/Google\ Chrome.app | |
| sudo codesign -f -s - /Applications/Google\ Chrome.app |
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 | |
| ####################### | |
| # Usage: | |
| # ./upload.sh <foldername> <filename> | |
| # | |
| # Foldername must be globally unique. | |
| # Fill in the USER and PASS variable below. | |
| # | |
| # Known issues: filename with spaces or filename with full or relative path |
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
| # 3D rotating cube in Python - only 15 lines of code https://imgur.com/87vnopo.gif | |
| import tkinter, math, time | |
| c = tkinter.Canvas(tkinter.Tk(), width=600, height=600) | |
| c.pack() | |
| while t := int(time.time()*60) : | |
| c.update() | |
| c.delete("all"); n = [] | |
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
| javascript:(function(){document.querySelector("video").style.filter = "brightness(0.5)";})() |