Skip to content

Instantly share code, notes, and snippets.

/*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;
@gorobey
gorobey / divi-breakpoints.css
Created April 13, 2021 11:06 — forked from d8m18n/divi-breakpoints.css
Divi theme breakpoints
/**
* 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) */
@gorobey
gorobey / fail2ban-allstatus.sh
Created April 12, 2021 21:35 — forked from kamermans/fail2ban-allstatus.sh
Show status of all fail2ban jails at once
#!/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
@gorobey
gorobey / Python-on-Raspberry.md
Created February 14, 2021 22:38 — forked from lowvoltage/Python-on-Raspberry.md
Setting up a Python3 dev environment on the Raspberry Pi

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
@gorobey
gorobey / linux_fusion360.md
Created December 22, 2020 15:15 — forked from probonopd/linux_fusion360.md
Autodesk Fusion 360 on Linux

Autodesk Fusion 360 on Linux

In the Web Browser

Ubuntu, Fedora, openSUSE, CentOS, SUSE Linux Enterprise, Debian,... users can finally use Autodesk Fusion 360 in the Linux Browser now.

https://myhub.autodesk360.com

On Chromium 55.0.2843.0 I get NET::ERR_CERTIFICATE_TRANSPARENCY_REQUIRED.

@gorobey
gorobey / android-ubuntu
Created August 13, 2020 07:47 — forked from mpaepper/android-ubuntu
How to debug your Android device under Ubuntu
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.
@gorobey
gorobey / wordpress-functions.php
Created June 24, 2020 16:33 — forked from deardorffdev/wordpress-functions.php
Useful Wordpress Functions 1
<!-- 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?
@gorobey
gorobey / wp-permissions-script
Created May 27, 2020 11:26 — forked from macbleser/wp-permissions-script
WordPress Permissions Configuration Script
#!/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 # &lt;-- wordpress owner
WP_GROUP=changeme # &lt;-- wordpress group
WP_ROOT=/home/changeme # &lt;-- wordpress root directory
@gorobey
gorobey / 500-internal-error.markdown
Created October 17, 2019 20:39
500 Internal Error