4
results
for scripts
- Dear Linux user, does your touchpad annoys you? Maybe your laptop keyboard shortcuts dont work and you cant disable it. Anyway, take this bash script with you. We will be using xinput to get device information from the touchpad, which in my case is a Synaptics Touchpad Bash Script #!/bin/bash # script to toggle state of synaptics touchpad tpid=`xinput list | grep SynPS | sed 's/.*id\=\([0-9]\+\).*/\1/g'` declare -i status status=`xinput list-props ${tpid} | grep Device\ Enabled | sed -e 's/.scripts Created
Mon, 20 Sep 2021 00:00:00 +0000 - Scripts that I hope will help you, you can add them as an alias or copypaste directly when you need them. Doge git commands I will start with some funny aliases to convert git into “doge language”. # add to your .bashrc or .zshrc alias such=git alias very=git alias wow='git status' # reload your terminal and be doge $ wow $ very add some_files $ such commit -m 'Commit Message' $ very push How to create website backups (Apache Web Server) It also downloads the backup directly to your workstation thanks to SSH (be sure to configure it before trying to connect) and compress the result file using GZIP.scripts Created
Sun, 05 Sep 2021 00:00:00 +0000 - Install required ubuntu dependencies #!/bin/bash # Script to install packages to avoid problems on an ubuntu machine # Update to get latest releases apt update # Problem: curl: command not found apt install curl -y # Problem: apt-get-repository command not found / is missing apt install software-properties-common python-software-properties -y # Problem: # E: The method driver /usr/lib/apt/methods/https could not be found. # N: Is the package apt-transport-https installed? # E: Failed to fetch https://download.scripts Created
Fri, 09 Apr 2021 00:00:00 +0000 - Leverage gulp and the flexibility of JavaScript to automate slow, repetitive workflows and compose them into efficient build pipelines. What is gulp? Command Line Interface(CLI) Tool JavaScript Task Runner Code-over-configuration Data Streams Open Source Basically a tool for automating tasks like minification. Benefits Automate painful or time-consuming tasks Complex tasks management Easy to learn and simple to use Consistent and high quality ecosystem (strict guidelines for plugins) Everything can be processed in memory (streams) Use npm modules to do anything you want Over 2000 gulp plugins Use Examples Compressing images, css, html, js SASS, LESS, Stylus Jade, Marko, Handlebars, Dust Transpiling JavaScript ES6, CoffeeScript, TypeScript Unit testing with Mocha or Jasmine CSS Autoprefixer (-webkit-transform) Generating documentation with JSDoc Code linting Requirements You must have NodeJS installed: click here to download nodeJS