GithubHelp home page GithubHelp logo

nitish6174 / utilities Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 1.0 17 KB

Automation, setup and other useful scripts along with system tweaks

Shell 21.50% Python 51.52% Vim Script 26.97%
scripts tweaks gnome-extension sublime-text-plugin bash-alias bashrc-configs vim-plugins file-rename git-configuration vim-configs

utilities's Introduction

Utilities

Automation, setup and other useful scripts along with system tweaks. Some tweaks might only be applicable to Ubuntu.

Contents

  • Bash configuration : bashrc file having some aliases and functions
  • Filename modifier : Scripts to rename video playlist/series files in a consistent format
  • Git configuration : Configuration to get an improved git log
  • Setup scripts : Common installations on a new machine/server
  • Sublime Text Tweaks : Packages and themes for Sublime Text editor
  • Ubuntu Tweaks : Extensions and themes for Ubuntu
  • Vim configuration : Some plugins, color scheme and keyboard mappings to improve vim

Extra

Changing extension name of files

Run command in below format in terminal :

rename "s/<old extension>/<new extension>/" *.<old extension>

Example : rename "s/css/scss/" *.css will rename all .css files to .scss

Settings to control mouse cursor using keyboard

  1. Open 'Settings' -> 'Universal Access' -> 'Pointing and clicking' -> 'Mouse keys'
  2. Turn that option ON (Try Alt-m to toggle if spacebar doesn't work)
  3. Now you will be able to move cursor with numpad but the speed will be extremely slow.
  4. Run the following commands in terminal to set a good to do speed :
    sudo apt-get install xkbset
    xkbset ma 60 10 10 5 2

Merge and compress PDF

  1. Install ghostscript using sudo apt-get install ghostscript
  2. Use the command:
    gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf
    This command will compress input.pdf to output.pdf
  3. Give multiple files at end of command to merge files in same order like: gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input1.pdf input2.pdf
  4. PDFSETTINGS parameter can be given these values:
  • screen (low-size)
  • ebook (medium-size)
  • default (large-size)
  • printer (print optimized)
  • prepress (prepress optimized)

Compress images

  • JPG/JPEG :
    sudo apt-get install jpegoptim
    sudo find . -type f -name "*.jpg" -exec jpegoptim {} \;
  • PNG :
    sudo apt-get install optipng
    sudo find . -type f -name "*.png" -exec optipng {} \;

utilities's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

mithlesh4257

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.