- Batch files for zipping multiple folders (putting the contents into a folder or just straight up zipping the contents )
- Shell commands for Android animation scales (window, transition, animator)
- How to change VLC's absolute playlist paths to relative ones
- How to convert videos using FFMPEG
- How to install rclone.exe as a Windows Service (either System or User service)
- Batch file to convert multiple images using Inkscape (primarily .svg to .png)
Click on the links below!
Add metadata to MP4s (Windows) - Use AtomicParsley to add metadata (Title, Artist, etc.) to MP4s.
VLC Compilation - A list of various settings/parameters related to VLC
CMD Compilation - A current list of all the commands I've used in the past
Convert Images - A batch file to convert multiple images from one format to another
FFMPEG Compilation - A list of various commands for FFMPEG
Powershell Compilation - A collection of all the useful PowerShell commands and one-liners I've found over the years.
Rclone Sync - Manga - A Windows batch file for syncing comics using Rclone
Rclone Sync - Music - A Windows batch file for syncing music using Rclone
Rclone Sync - Videos - A Windows batch file for syncing videos using Rclone
// for = for loop
// /R = recursive search (search within all sub-directories)
// %%i = for loop variable
// %%~ni = keep only the filename
for /R "C:/FlutterDart" %%i in (*.mp4) do (AtomicParsley "%%i" --title "%%~ni" --overWrite)
cd /d "your directory here without quotes"
- changes the working directory with elevated permissionsdir /s
- shows files in all subdirectories
robocopy "source" "destination" "flags"
e.g:robocopy "c:/my folder" "d:/new folder" /E
<- this copies everything in "my folder"robocopy "c:/mysourcefolder" "c:/mydestinationfolder" /E /MOVE
to move all folders to the new directory
rd "folder name" /s /q
/s
- Removes all files/folders in the selected folder and deletes the folder itself/q
- Does the operation silently
@Echo off
set "inkscapePath=C:\Program Files\Inkscape\inkscape.exe"
set /a count=0
set validInput1=svg
set validInput2=pdf
set validInput3=eps
set validOutput1=eps
set validOutput2=pdf
set validOutput3=png
echo This script allows you to convert all files in this folder from one file type to another.
set valid=0
echo Allowed file types for source: %validInput1%, %validInput2%, %validInput3%
:whileInNotCorrect
set /p sourceType=What file type do you want to use as a source?
if "%sourceType%" EQU "%validInput1%" set valid=1
if "%sourceType%" EQU "%validInput2%" set valid=1
if "%sourceType%" EQU "%validInput3%" set valid=1
if %valid% EQU 0 (
echo Invalid input! Please use one of the following: %validInput1%, %validInput2%, %validInput3%
goto :whileInNotCorrect
)
set valid=0
echo Allowed file types for output: %validOutput1%, %validOutput2%, %validOutput3%
:whileOutNotCorrect
set /p outputType=What file type do you want to convert to?
if "%outputType%" EQU "%validOutput1%" set valid=1
if "%outputType%" EQU "%validOutput2%" set valid=1
if "%outputType%" EQU "%validOutput3%" set valid=1
if %valid% EQU 0 (
echo Invalid input! Please use one of the following: %validOutput1%, %validOutput2%, %validOutput3%
goto :whileOutNotCorrect
)
:: Set DPI for exported file
set /p dpi=With what dpi should it be exported (e.g. 300)?
:: Running through all files found with the defined ending
for %%i in (.\*.%sourceType%) do (
set /a count=count+1
echo %%i to %%~ni.%outputType%
"%inkscapePath%" --without-gui --file="%%i" --export-%outputType%="%%~ni.%outputType%" --export-dpi=%dpi%
)
echo %count% file(s) converted from %sourceType% to %outputType%!
pause
- Open up a terminal.
- Type
which python
for python2.x andwhich python3
for python3.x to see which version of Python you're running. - Create a symbolic link between the installation path of Python and the local python directory by typing
sudo ln -s /usr/bin/python3 /usr/local/bin/python
. - Type
youtube-dl
to test it out. - Enjoy!
-
The following steps enable the system to check
.bashrc
's modification time and compare it to the modtime of the last sourced version of.bashrc
. -
Open a text editor or simply type
gedit ~/.bashrc
in a terminal. Note that the preceding tilde~
and forward slash/
denote thehome
directory, and can be omitted if your terminal is already in thehome
directory. -
Append this to the end of the
.bashrc
file:bashrc_sourced=$(stat -c %Y ~/.bashrc) PROMPT_COMMAND=' test $(stat -c %Y ~/.bashrc) -ne $bashrc_sourced && source ~/.bashrc '
-
Finally, type in
. ~/.bashrc
to source the file. -
Cheers!
- PowerShell commands to rename multiple filenames
- PowerShell commands to add pre/suffixes to file/folder names
- PowerShell commands to create multiple folders
- Open Firefox.
- In the URL (address) bar, type
about:config
and press theEnter
key. - A warning message would turn up, Proceed with Caution. Press the
Accept the Risk and Continue
button. - In the search bar that turns up in the new page, type
ui.textSelectBackgroundAttention
. - Change the default value type by clicking on the radio box labelled
String
. - Then click on the
+
button on the right hand side to input a HEX colour code (include the#
symbol prefix). - That's it! Close the
about:config
page, and try outCtrl+F
. Your chosen colour should be displayed now :D
Since there is no real help or documentation how to style the new Firefox Beta 57 I found a way how to live-debug the userChrome.css file.
- Enable userChrome.css support in Fx v69+
- Open about:support
- Click on "Profile Folder" -> "Open Folder"
- Create a sub-folder named "chrome"
- Change into the new folder
- Create a file named "userChrome.css"
- Add some rules
- Restart Firefox
Before being able to try styles, you need to enable two developer options (only do this once). To do that:
- Press Ctrl + Shift + I on Win/Linux or Cmd + Opt + I on Mac
- Click on the cog that appears in a right or left top corner, next to other buttons.
- Scroll down to Advanced Settings and check the settings "Enable browser chrome and add-on debugging toolboxes" and "Enable remote debugging".
- Close the developer tools panel and proceed with next tutorial
Testing a style
- Press Ctrl + Alt + Shift + I on Win/Linux or Cmd + Opt + Shift + I on Mac
- A permission dialog will prompt you to allow remote debug, accept
- Click on the tab Style Editor, choose file userChrome.css on the sidebar
- Choose the style you want to preview from this repository, copy the code
- Scroll down on the development tools window textbox, paste the code
- You should see the style being applied. If you like what you see, you can click Save, otherwise it will disappear after restarting the browser.
from /u/DanTheMan74 The Firefox dev tools, when they're opened for remote debugging of the browser content, have an extra option that's hidden behind the dropdown at the top right, a thing which many people have no clue about.
The toggle is called Disable Popup Auto-Hide and it does exactly what it says. By default Firefox (popup) menus disappear when you use the element picker, but you can make them stay around by activating this setting. This makes finding elements and their ids or classes much simpler.
Reference: https://developer.mozilla.org/en-US/docs/Tools/Browser_Toolbox https://developer.mozilla.org/en-US/docs/Tools/Style_Editor