Skip to content

Instantly share code, notes, and snippets.

View JQL's full-sized avatar

John Lavelle JQL

View GitHub Profile
@JQL
JQL / LinuxTipsTweaks
Last active August 25, 2018 11:01
Linux Tips, Tricks and Tweaks
Linux Tips, Tricks and Tweaks
How to make your version of Linux even better.
1. Decrease Swap File use
a) Check "Swappiness":
cat /proc/sys/vm/swappiness
b) If Swappiness is 60, alter "Swappiness":
gksudo xed /etc/sysctl.conf
find vm.swappiness
@JQL
JQL / BrowserExtensions
Created August 25, 2018 11:06
Suggested Browser Extensions
These are the minimum Browser Extensions that are an excellent idea to install in all your browsers.
Although nothing is "foolproof" (as fools are so ingenious) they will help to secure your browser.
1. Privacy Badger
2. HTTPS Everywhere
3. Ad Block Plus (ABP) - Be careful as there are packages with similar names that aren't as good.
4. Firefox only: NOSCRIPT
@JQL
JQL / InstallingGit
Created August 25, 2018 11:10
How to install Git in Linux
Installing Git
Installing Git, the free, open source, distributed, version control system.
Note: Read the installation notes on: https://git-scm.com
When copying and pasting the code from the git-scm site, please make the following changes: add "sudo" to the beginning change the # to "&& sudo" as shown below:
sudo add-apt-repository ppa:git-core/ppa && sudo apt update; apt install git
@JQL
JQL / InstallXAMPP
Last active March 2, 2019 13:44
How to correctly install XAMPP and check that it is properly installed
Installing XAMPP
How to correctly install XAMPP and check that it installed correctly. Also, how to add the XAMPP control panel to the Menu and Quick Launch Bar on Linux.
The commands needed and instructions are shown below:
COMMANDS & LINKS:
XAMPP : https://www.apachefriends.org/
@JQL
JQL / XAMPPService
Created August 25, 2018 11:18
How to enable and disable XAMPP as a Service on Linux.
XAMPP as a Service
How to enable and disable XAMPP as a Service on Linux.
Create the Service:
Create a SymLink: sudo ln -s /opt/lampp/lampp /etc/init.d/lampp
Enable the Service: sudo systemctl enable lampp
Check which Services are running: systemctl | grep running
@JQL
JQL / InstallComposer
Last active November 27, 2023 07:28
How to install Composer Globally
# How to install Composer Globally - Programming for the Web
Are you using Composer and have a separate executable for each project? Do you want to know how to install Composer globally? Yes? Then watch this video.
### WINDOWS:
Download and run Composer-Setup.exe then reboot. - Simples!
### Linux and OSX:
This is a bit more complex so see the video: https://youtu.be/MhSLlnJQQyU
@JQL
JQL / NetBeans9Linux
Last active September 10, 2018 08:25
How to Install Apache NetBeans (incubating) 9.0 on Linux (Ubuntu and Linux Mint 19)
NetBeans is, at the time of writing, in the process of being transfered from Oracle to Apache. Therefore, things ARE GOING TO change and change rapidly. So please check back regularly.
See the video : https://youtu.be/1uU9Toj9zXk
1. Update your repositories:
sudo apt-get update && sudo apt-get upgrade
2. Check if you have java installed:
which java
If java is installed then check the version:
java -version
@JQL
JQL / NetBeans9Plugins
Last active May 11, 2021 05:08
How to add HTML, PHP and C++ plus other Plugins to Apache NetBeans 9.0 on Windows, MacOS and Linux.
__How to add HTML, PHP and C++ plus other Plugins to Apache NetBeans 9.0 on Windows, MacOS and Linux.__
### COMMANDS & LINKS: ###
NetBeans IDE 8.2 Plugin Centre : http://updates.netbeans.org/netbeans/updates/8.2/uc/final/distribution/catalog.xml.gz
NetBeans Transition from Oracle: https://cwiki.apache.org/confluence/display/NETBEANS/Apache+Transition
Apache Transition Documentation: https://cwiki.apache.org/confluence/display/NETBEANS/Apache+Transition
@JQL
JQL / NetBeans8.2Plugins
Created August 30, 2018 19:11
Which NetBeans Plugins should you install for PHP and HTML?
So, which NetBeans Plugins should you install for PHP and HTML? We look at the ones I've installed. We also look at changing the netbeans.conf file (in the netbeans-8.2/etc directory). We also look at updating the Plugins and how to download a Plugin from the NetBeans Plugin Repository.
If you've downloaded and installed just the HTML and PHP version of NetBeans 8.2, which NetBeans Plugins should you install?
Here are my recommendations:
C/C++
Color Codes Preview
ESLint
Emmet
@JQL
JQL / NetBeansTemplates
Created September 3, 2018 19:04
Creating and Updating NetBeans Templates
Do you need to Create and Update the NetBeans Templates? Creating and Updating NetBeans Templates is very easy and in this video we show you how.
NetBeans Template Variables: http://wiki.netbeans.org/FaqTemplateVariables
Here are some suggested templates
1. Default Licence Template:
<#setting locale="en_GB">
<#if licenseFirst??>