- Open Firefox and press Alt to show the top menu, then click on
Help→Troubleshooting Information - Click the
Open Folderbutton beside theProfile Folderentry - Create a folder named
chromein opened directory (must be lowercase) - In the
chromefolder, create a CSS file with the nameuserContent.css - Copy the following code to
userContent.csswith changes according to your needs@-moz-document domain(website.com) { div.premium-button { display: none !important; } }
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 | |
| # Give numeric value, which is in bytes | |
| # will show all possible conversions | |
| call_bc() { | |
| n1=$1 | |
| n2=$2 | |
| echo "scale=4; $n1/($n2)" |bc | |
| } |
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
| #!/usr/bin/env python3 | |
| ''' | |
| Description: split a music track into specified sub-tracks using ffmpeg | |
| target files are saved as variable bit-rate mp3 (lossless) | |
| Usage: split <original_track> <track_list> | |
| ''' | |
| import shlex |
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
| const phantom = require('phantom'); | |
| async function wait(timeInMills) { | |
| return new Promise((resolve) => { | |
| setTimeout(() => { | |
| resolve(); | |
| }, timeInMills); | |
| }); | |
| } |
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
| import selenium | |
| import time | |
| from selenium import webdriver | |
| browser = webdriver.PhantomJS("phantomjs") | |
| browser.get("https://twitter.com/StackStatus") | |
| print browser.title | |
| pause = 3 |
Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma
You can get the list of supported formats with:
ffmpeg -formats
Convert WAV to MP3, mix down to mono (use 1 audio channel), set bit rate to 64 kbps and sample rate to 22050 Hz:
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
| @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); | |
| @namespace html url("http://www.w3.org/1999/xhtml"); | |
| /* | |
| ** In order for userChrome.css to work, you need to open `about:config` and change | |
| ** `toolkit.legacyUserProfileCustomizations.stylesheets` to `true`. | |
| */ | |
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
| from time import sleep | |
| from selenium import webdriver | |
| from bs4 import BeautifulSoup | |
| # Headless/incognito Chrome driver | |
| chrome_options = webdriver.ChromeOptions() | |
| chrome_options.add_argument("--incognito") | |
| chrome_options.add_argument('headless') | |
| driver = webdriver.Chrome(executable_path='CHROMEDRIVER_PATH',chrome_options=chrome_options) |
OlderNewer
