ls /usr/bin/python*
sudo apt-get remove python3.5
sudo apt-get remove --auto-remove python3.5
sudo apt-get purge python3.5
/* | |
Unfollow (stop following) those people who are not following you back on Twitter (or unfollow everyone if desired). | |
This will work for new Twitter web site code structure (it was changed from July 2019, causing other unfollow-scripts to stop working). | |
Instructions: | |
1) The code may need to be modified depending on the language of your Twitter web site: | |
* For English language web site, no modification needed. | |
* For Spanish language web site, remember to set the 'LANGUAGE' variable to "ES". | |
* For another language, remember to set the 'LANGUAGE' variable to that language and modify the 'WORDS' object to add the words in that language. |
function whatsAppText(message) { | |
window.InputEvent = window.Event || window.InputEvent; | |
var event = new InputEvent('input', { | |
bubbles: true | |
}); | |
var textbox = document.getElementsByClassName('_3u328')[0]; | |
textbox.textContent = message; | |
textbox.dispatchEvent(event); | |
document.querySelector('[data-icon="send"]').click(); | |
} |
[twenty20 img1="7708" img2="7709" offset="0.5" before="Before" after="After" hover="true"] |
#!/bin/bash | |
# A bash script for installing Python 3.10.2 on your Raspberry Pi. | |
# (c) 2022 Valentin B. / Midian T. E. | |
# | |
# Open your terminal and type the following command: | |
# sudo wget https://gist.githubusercontent.com/realSnosh/cfe29370d2205bd1ad296e7bc7c9b9ea/raw/raspberry_python.sh && chmod +x raspberry_python.sh && ./raspberry_python.sh | |
sudo apt-get update -y | |
sudo apt-get upgrade |
Here's the code (in JavaScript and Python) to make the cKey for downloading stuff from WeTV. This works for encryption version 8.1
. Both versions accept the same arguments, first 5 (vid
, tm
, appVer
, guid
and platform
) are the same as in the call to https://play.wetv.vip/getvinfo. url
is optional for JavaScript but required for Python - that's the URL of the page you're on. userAgent
, referer
, navCodeName
, navName
and navPlatform
are optional, check the code for default values.
makeCKey(/* arguments here */);
# To extract the sound from a video and save it as MP3: | |
ffmpeg -i <video.mp4> -vn <sound>.mp3 | |
# To convert frames from a video or GIF into individual numbered images: | |
ffmpeg -i <video.mpg|video.gif> <frame_%d.png> | |
# To combine numbered images (frame_1.jpg, frame_2.jpg, etc) into a video or GIF: | |
ffmpeg -i <frame_%d.jpg> -f image2 <video.mpg|video.gif> | |
# To quickly extract a single frame from a video at time mm:ss and save it as a 128x128 resolution image: |
import requests | |
import re | |
import sys | |
import json | |
def obtain_ids(user): | |
response = requests.get('https://www.instagram.com/' + user) | |
appid = re.search('appId":"(\d*)', response.text)[1] | |
serverid = re.search('server_revision":(\d*)', response.text)[1] |