Git Product home page Git Product logo

randoscripts's Introduction

This is a collection of scripts that I have built and maintained using a variety of different sources for Linux. All of my scripts have been built and tested using the Ubuntu distribution.

If you have any questions please contact me: [email protected]

Backlight

In default operation Ubuntu sets the backlight of your laptop to maximum brightness on every boot. Although this is an extreme issue of any sort it can be avoided with the raw power of Linux. All that is required for this fix is to edit /etc/rc.local

Info

Writeup

IMPORTANT: If you have already edited your rc.local do NOT replace it with my copy. (You know if you did this) ;)

  • Location: "/etc/rc.local"
  • If the location "/sys/class/backlight/acpi_video0/brightness" is ineffective use "/sys/class/backlight/intel_backlight/brightness"

Install

  1. Find a value you want by adjusting brightness in the system
  2. $cat /sys/class/backlight/acpi_video0/brightness
  3. Open rc.local and replace value "VALUE_HERE"
  4. $sudo mv rc.local /etc
  5. $sudo chmod +x /etc/rc.local

fstrim

This bash script enables Linux to auto-remove pages of data within an SSD. This is required because the smallest write to a SSD is a page and the smallest delete is a page: (page << block).

Info

Read for very useful information

  • Location: "/etc/cron.weekly/"
  • Logs are located in "/var/log/fstrim.log"

LVM Partition Important! We have to make sure issue_discards is enabled.

Run $ cat /etc/lvm/lvm.conf | grep issue_discards

The value should be = 1

syncGrive

Due to the lack of a dedicated Linux client for Google drive, the fantastic team **The Fan Club" created a 3rd party answer known as grive

Info

IMPORTANT: By default grive does NOT delete files that have been removed in drive. The application instead moves files to the .trash/ directory. This script auto deltes these files once drive is synchronized. If you want to take care of this your self comment out:

line 10:: (cd $account && rm -r .trash >> $LOG)

The script assumes the grive main directory is under ~/grive. if this is incorrect change line 3 to match accordingly.

Install

$sudo apt-add-repository http://www.thefanclub.co.za/how-to/ubuntu-google-drive-client-grive-and-grive-tools

$sudo apt-get update && sudo apt-get install grive

xbindkeys

This is my edited copy of xbindkeys for a Logitech MX pro mouse, but this can be edited for any keyboard of mouse combination. Please read the writeup for more information

Info

Writeup

  • Required packages
    • xbindkeys && xautomation
  • Location: "~/"

randoscripts's People

Contributors

kd8bny avatar

Watchers

 avatar  avatar  avatar

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.