Install required packages:
$ sudo apt-get install -y python3 python-pip
$ sudo pip install virtualenv
Setup and activate a Python 3 virtual environment named "venv":
$ virtualenv -p python3 venv
$ source venv/bin/activate
| /*woocommerce pagination*/ | |
| .woocommerce nav.woocommerce-pagination{} | |
| .woocommerce nav.woocommerce-pagination ul.page-numbers{} | |
| .woocommerce nav.woocommerce-pagination ul li{} | |
| .woocommerce nav.woocommerce-pagination ul li a{} | |
| .woocommerce nav.woocommerce-pagination ul li span.current, | |
| .woocommerce nav.woocommerce-pagination ul li a:hover{} | |
| .woocommerce nav.woocommerce-pagination ul li a.prev, | |
| .woocommerce nav.woocommerce-pagination ul li a.next{} |
| /** | |
| * My Account | |
| */ | |
| .woocommerce-account .woocommerce-MyAccount-navigation { | |
| width: 20%; | |
| } | |
| .woocommerce-account .woocommerce-MyAccount-content { | |
| display: inline-block; |
| /** | |
| * Divi theme breakpoints - thanks to https://divibooster.com/css-media-queries-for-the-divi-theme/ | |
| */ | |
| /* Large screens (1405px upwards) */ | |
| @media only screen and ( min-width: 1405px ) { | |
| /* your css goes here */ | |
| } | |
| /* Laptops and desktops (1100-1405px) */ |
| #!/bin/bash | |
| JAILS=`fail2ban-client status | grep "Jail list" | sed -E 's/^[^:]+:[ \t]+//' | sed 's/,//g'` | |
| for JAIL in $JAILS | |
| do | |
| fail2ban-client status $JAIL | |
| done |
Install required packages:
$ sudo apt-get install -y python3 python-pip
$ sudo pip install virtualenv
Setup and activate a Python 3 virtual environment named "venv":
$ virtualenv -p python3 venv
$ source venv/bin/activate
Ubuntu, Fedora, openSUSE, CentOS, SUSE Linux Enterprise, Debian,... users can finally use Autodesk Fusion 360 in the Linux Browser now.
On Chromium 55.0.2843.0 I get NET::ERR_CERTIFICATE_TRANSPARENCY_REQUIRED.
| When programming apps for Android, you usually want to test them on real Android devices. | |
| This little gist describes how to do so using Ubuntu 14. | |
| First, you need to download and install the Android development IDE (http://developer.android.com/sdk/index.html) and create an Android project which you want to debug. | |
| Next, you need to setup the debugging mode on your Android device. Starting in Android 4.2 you need to enable the developer options first: 1) Go to settings 2) Go to About Phone 3) Tap the build number 10 times (or more, not sure ;)) and you will get the notification that you enabled it. | |
| Then go to the developer settings and enable the debug mode for your phone. | |
| Now you think you can just plug it into your USB mode? - Nope. |
| <!-- What is Functions File in WordPress? --> | |
| <!-- Functions file commonly known as functions.php file is a WordPress theme file. | |
| It comes with all free and premium WordPress themes. | |
| The purpose of this file is to allow theme developers to define theme features and functions. This file acts just like a WordPress plugin and can be used to add your own custom code snippets in WordPress. | |
| You would find many of these code snippets on websites like https://deardorffassociatesweb.wordpress.com/ with instructions telling you to add this code in your theme’s functions.php file or a site-specific WordPress plugin. | |
| Now you may be thinking what’s the difference between a site-specific WordPress plugin and functions.php file? Which one is better? |
| #!/bin/bash | |
| # | |
| # This script configures WordPress file permissions based on recommendations | |
| # from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
| # | |
| # Author: Michael Conigliaro | |
| # | |
| WP_OWNER=changeme # <-- wordpress owner | |
| WP_GROUP=changeme # <-- wordpress group | |
| WP_ROOT=/home/changeme # <-- wordpress root directory |