Minimal CDP tools for collaborative site exploration.
./browser-tools-start.js # Fresh profile
./browser-tools-start.js --profile # Copy your profile (cookies, logins)Many times I stuck in situation when Docker consumes whole 70Gb, then I remove all Containers and Images in Docker, and only Volumes remaining which should consume ~7Gb. But storage is not free anymore. Hard to say what is using it. It can probably be just reserved by and not released. Found the way to backup volumes, drop virtual machine, create new and restore volumes.
chmod +x backup_volumes.sh
./backup_volumes.sh| #!/bin/bash | |
| # Before running make file executable: | |
| # chmod +x decompile.sh | |
| # And check Android SDK version (in this case it is - 33.0.1) | |
| # Create directory | |
| mkdir "decompiled" |
| import rospy | |
| from std_srvs.srv import Empty | |
| def reset_world(): | |
| """ | |
| Reset Gazebo world to restore initial position | |
| """ | |
| rospy.wait_for_service('/gazebo/reset_world') |
| $('.right').each(function(a, b){ | |
| var value = $(this).html(); | |
| if (value !== undefined) { | |
| var red = 255 - parseInt(value.slice(0, -1)) * 2; | |
| var green = 0 + parseInt(value.slice(0, -1)) * 2; | |
| var color = 'rgb(' + red + ', ' + green + ', 0)'; | |
| $(this).css('background', color); | |
| console.log(value, color); |
| import os | |
| CRLF = b'\r\n' | |
| LF = b'\n' | |
| allowed_extensions = [ | |
| 'gitignore', 'Procfile', 'Docker', | |
| 'txt', 'md', 'ini', 'json', 'yaml', # NOTE: do not add csv, they can be huge | |
| 'js', 'css', 'scss', 'html', 'htm', 'svg', |
| import ssl | |
| import socket | |
| import asyncio | |
| import logging | |
| import collections | |
| import time | |
| from asyncio import sslproto | |
| from email._header_value_parser import get_addr_spec, get_angle_addr | |
| from email.errors import HeaderParseError |
| /** | |
| Following script will parse all photos on imageshack.com | |
| and will prepare list of files with appropriate names (like it they were originally) | |
| to be downloaded on the next step | |
| Scroll till the end of the page, so all images will be lazy-loaded. | |
| Press F12 in browser copy-paste following code and press Enter. | |
| Copy result and add it to the following Python script. | |
| **/ | |
| var data = []; |
| import re | |
| content = ''' | |
| <img src="/images/lol/hallo.png" /> | |
| /images/lol/hallo.png | |
| /images/lol/hallo.png | |
| //example.com/images/lol/hallo.png | |
| http://example.com/images/lol/hallo.png | |
| https://example.com/images/lol/hallo.png | |
| <!-- /images/lol/commented.png --> |
| import hashlib | |
| import requests | |
| import getpass | |
| def test_pw(byte_string): | |
| hasher = hashlib.sha1() | |
| hasher.update(byte_string) | |
| digest = hasher.hexdigest().upper() | |
| print(f'Hash: {digest[:5]}, {digest[5:]}') | |
| print(f'GET https://api.pwnedpasswords.com/range/{digest[:5]}') |