Tutorials

  • Python: Pandas.to_sql INSERT IGNORE the correct way (sqlalchemy)

    Python: Pandas.to_sql INSERT IGNORE the correct way (sqlalchemy)

    Until pandas include the option of INSERT IGNORE in the default pd.DataFrame.to_sql class, here is the best solution: from sqlalchemy.ext.compiler import compiles from sqlalchemy.sql.expression import Insert # adds the word IGNORE after INSERT in sqlalchemy @compiles(Insert) def _prefix_insert_with_ignore(insert, compiler, **kw): return compiler.visit_insert(insert.prefix_with('IGNORE'), **kw) Now you can run your normal df.to_sql commands! from sqlalchemy import create_engine […]Read More »
  • How to Install Arch Linux ARM on Raspberry Pi 4 (and 3b+)

    How to Install Arch Linux ARM on Raspberry Pi 4 (and 3b+)

    This guide will show you how to install and run Arch Linux ARM on your Rasbperry Pi 4 and Raspberry Pi 3b+ Install Arch Linux ARM from a Windows machine For Windows users, you will need to format the card using external software. However, I recommend downloading Etcher and then running GParted-live off a live […]Read More »
  • How to Move Linux OS from old NVMe to new NVMe drive.

    How to Move Linux OS from old NVMe to new NVMe drive.

    How to move Arch, Ubuntu, Debian, Fedora from one m.2 drive to another m.2 drive There are three (or more) ways this: Move SSD when you have 1x m.2 ssd slot If you have 1 m.2 slot, then you need to boot off a live gparted disk, create a partition image of the one you […]Read More »
  • How To Run Teamviewer 15 PERFECTLY on Arch/Manjaro/Debian/Ubutnu

    How To Run Teamviewer 15 PERFECTLY on Arch/Manjaro/Debian/Ubutnu

    One word: Docker (+ X11)! Recently released Dockerfile by Tukiyo runs flawlessly using Docker, on any OS. https://github.com/tukiyo/docker-teamviewer15 docker run -it -v /tmp/.X11-unix:/tmp/.X11-unix tukiyo3/teamviewer15 Just in case his work doesn’t stay on Github forever, here is a copy of Tukiyo’s Dockerfile FROM ubuntu:20.04 MAINTAINER tukiyo3 # install Teamviewer 15 RUN apt update \ && apt […]Read More »
  • ULTIMATE stdin, stdout Guide: How To Duplicate stdin, stdout in BASH/Redirect Output to 2 files, Send Output to Multiple Variables and more!

    ULTIMATE stdin, stdout Guide: How To Duplicate stdin, stdout in BASH/Redirect Output to 2 files, Send Output to Multiple Variables and more!

    Quick heads up: everything in Linux is a file. You can write, read, delete and wait for a file. Everything you type in the terminal is symlinked to /dev/pts/1. stdin goes to /dev/fd/0 and then /dev/pts/1 stdout goes to /dev/fd/1 and then /dev/pts/1 stderr goes to /dev/fd/2 and then /dev/pts/1 Funnily enough, all 3 of […]Read More »
  • Puppeteer & NodeJS Timeout Killswitch (SIMPLE!)

    Puppeteer & NodeJS Timeout Killswitch (SIMPLE!)

    The following will always kill a node script after a timeout duration is reached. There are two ways to kill a nodejs/npm script: inside the node script, or inside the shell. Consider the following script running direct from the command line: node { const page = await browser.newPage() await page.goto("https://google.com/${username}", { waitUntil : ['load', 'domcontentloaded'] […]Read More »
  • Docker: Install NodeJS and Yarn in Ubuntu 18.04

    Docker: Install NodeJS and Yarn in Ubuntu 18.04

    You will need BOTH yarn and nodejs from external resources because the Ubuntu repo versions are very old. RUN apt install curl gnupg2 -y RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - RUN apt update -y RUN apt install […]Read More »
  • How To Install QEMU on CentOS 8

    How To Install QEMU on CentOS 8

    Easy installation, QEMU is under libvirt. dnf update -y dnf install epel-release -y dnf-config-manager --enable epel-testing --enable PowerTools dnf install libvirt -y You can also check if virtualization is available on this host: [[ $(egrep -c '(svm|vmx)' /proc/cpuinfo) -gt 0 ]] || echo KVM not possible on this hostRead More »
  • How To Install Kubernetes on CentOS 8 (Easy Way) + Docker.

    How To Install Kubernetes on CentOS 8 (Easy Way) + Docker.

    This is the simplest way of installing Kubernetes on CentOS 8. Rancher is an awesome company that makes auto-installers among other software. They have something called k3s which sets you up, ready for containers. yum update -y yum install -y container-selinux selinux-policy-base rpm -i https://rpm.rancher.io/k3s-selinux-0.1.1-rc1.el7.noarch.rpm curl -sfL https://get.k3s.io | sh - # takes maybe 30 […]Read More »
  • TUN/TAP Deleted/Broken Linux: qemu-system-x86_64: could not open /dev/net/tun: Permission denied

    TUN/TAP Deleted/Broken Linux: qemu-system-x86_64: could not open /dev/net/tun: Permission denied

    Recently, playing around with my network settings, I encountered a few issues, that I have documented below for you, and how I fixed them. qemu-system-x86_64: could not open /dev/net/tun: Permission denied This means that your /dev/net/tun file has the incorrect permissions The correct permissions are crw-rw-rw- The following snippet removes the regular file, if any, […]Read More »
  • Linux Lenovo WiFi Card Linux Not Working, rtl8821ce, Slow Boot Process, A Job is running 1 minute 30 seconds.

    Linux Lenovo WiFi Card Linux Not Working, rtl8821ce, Slow Boot Process, A Job is running 1 minute 30 seconds.

    A start job is running for sys subsystem/net/devices/wlp2s0… 1 minute 30 seconds… I started seeing these boot errors after updating recently, around 5.6.x Kernel version. It seems that during update, the DKMS module for my unsupported Lenovo WiFi card (still not in kernel) wasn’t being rebuilt. If you already have rtl8821ce installed via the Git, […]Read More »
  • How To Install NFS on CentOS 8 & Ubuntu 20.04+: Network Shared Folder Between VPS/Server

    How To Install NFS on CentOS 8 & Ubuntu 20.04+: Network Shared Folder Between VPS/Server

    NFS allows you to share a directory with another server/client. It’s awesome. This works great for VPC, or virtually connected servers, like Vultr Private Networking NFS. In this tutorial we are connecting a CentOS 8 to an Ubuntu 18.04 I will show you how to do it both directions! Note we are ALSO installing the […]Read More »
  • How To UPGRADE GlusterFS (ALL VERSIONS) On Ubuntu (16.04, 18.04, 20.04)

    How To UPGRADE GlusterFS (ALL VERSIONS) On Ubuntu (16.04, 18.04, 20.04)

    The default glusterfs package in the Ubuntu repo is 3.5. This is a very old version of GlusterFS. If you want a newer version you need to do the following: GLUSTER_VERSON=7 apt update -y apt-get install software-properties-common add-apt-repository ppa:gluster/glusterfs-${GLUSTER_VERSON} -y apt install glusterfs-client glusterfs-common glusterfs-server -y systemctl enable glusterd systemctl start glusterd gluster --version To […]Read More »
  • How to Install GlusterFS On CentOS 8

    How to Install GlusterFS On CentOS 8

    On CentOS 8, glusterf, glusterfs-fuse, glusterfs-server all are part of the epel-testing repo. # centos 8 yum install centos-release-gluster -y yum install yum-utils -y yum install epel-release -y yum-config-manager --enable epel-testing --enable PowerTools yum install glusterfs-server -yRead More »
  • How to Add Private Networking in CentOS 8/Ubuntu on Vultr (One-liners/AUTO)

    How to Add Private Networking in CentOS 8/Ubuntu on Vultr (One-liners/AUTO)

    Vultr uses ens7 as the private network interface name. Your instances must be in the same location. How to add private networking to Ubuntu in Vultr (netplan): # centos 8 PRIVATE_IP='10.39.100.4' echo 'TYPE="Ethernet" DEVICE="ens7" ONBOOT="yes" BOOTPROTO="none" IPADDR='"${PRIVATE_IP}"' PREFIX=16 MTU=1450' > /etc/sysconfig/network-scripts/ifcfg-ens7 nmcli con load /etc/sysconfig/network-scripts/ifcfg-ens7 nmcli con up 'System ens7' How to add private networking […]Read More »
  • Advanced Django Tricks: Dynamically & Automatically Generate Form Fields Using Python Local Variables

    Advanced Django Tricks: Dynamically & Automatically Generate Form Fields Using Python Local Variables

    The following is a trick I use to dynamically generate form fields before you know the form column names. This allows you to: – dynamically populate form fields based on database columns – editing database columns will automatically & dynamically add or remove the columns from your form Brief overview: OLD CODE: class UserExtras(models.Model): user […]Read More »
  • PIPENV Crontab & Docker: How to Run PIPENV Python Automatically Properly in Cron Jobs with Pipenv – Running Django On a Server

    PIPENV Crontab & Docker: How to Run PIPENV Python Automatically Properly in Cron Jobs with Pipenv – Running Django On a Server

    How to run Pipenv in a Docker Container, or using Crontab When you run pipenv shell, you will notice a link in you console terminal output with a dot (.) symbol. This symbol is the shell command for “source”. If you haven’t installed pipenv here is the setup: # Install Pipenv on Ubuntu / Debian […]Read More »
  • How to Convert SQLite to MySQL & Connect DJANGO to WEB + MySQL Server: Converting a Django sqlite3 to MySQL

    How to Convert SQLite to MySQL & Connect DJANGO to WEB + MySQL Server: Converting a Django sqlite3 to MySQL

    If you’ve been using Django, you know that the migrate function creates a locally stored sqlite database. But what if you want to upload your website to the internet and use a MySQL database? In this example I will use an AppSeed template. # skip this if you already have your django website clone https://github.com/app-generator/django-dashboard-dattaable.git […]Read More »
  • One Liner: ULTIMATE Kubernetes Install! K3s! Ubuntu, CentOS, Debian, RHEL. Best k8s, minikube, okd, Openshift Alternative.

    One Liner: ULTIMATE Kubernetes Install! K3s! Ubuntu, CentOS, Debian, RHEL. Best k8s, minikube, okd, Openshift Alternative.

    Forget minikube, k8s, docker swarm, okd, Openshift or any other bloated mess of amateur shell scripts. This is the one. Install Docker on ANY of the above Operating Systems and then run: # run this and you're done! curl -sfL https://get.k3s.io | sh - kubectl get node kubectl get get all --all-namespaces TIP: instead of […]Read More »
  • Add Swap Memory On Debian (Any version, one liner!)

    Add Swap Memory On Debian (Any version, one liner!)

    # SWAP DEBIAN # change 2G to how many GB of swap you want dd if=/dev/zero of=/swapfile bs=2G count=2 chmod 600 /swapfile mkswap /swapfile swapon /swapfile echo "/swapfile swap swap defaults 0 0" >> /etc/fstabRead More »
  • Install Fail2Ban on CentOS 8, 9. Works on RHEL 8 and RHEL 9 too.

    Install Fail2Ban on CentOS 8, 9. Works on RHEL 8 and RHEL 9 too.

    yum update -y yum install epel-release -y yum install fail2ban # or using dnf lol dnf update -y dnf install epel-release -y dnf install fail2banRead More »
  • Linux/Mac: Ffmpeg render/convert or export video using AMD GPU Graphics Card in Arch Linux, Mint, Debian, Manjaro

    Linux/Mac: Ffmpeg render/convert or export video using AMD GPU Graphics Card in Arch Linux, Mint, Debian, Manjaro

    To use your GPU rather than your CPU to convert videos under AMD architecture, you need to use va-api, video acceleration API. Results: 51 seconds using CPU 100fps 21mb file-size 34 seconds using GPU 130fps 42mb file-size Requirements: # VA-API for Radeon HD 2000 and newer require libva-mesa-driver # VDPAU for Radeon R300 and newer […]Read More »
  • Add Swap RAM on CentOS 8 (one line, automatically)

    Add Swap RAM on CentOS 8 (one line, automatically)

    Paste the following code into a terminal on CentOS 8. It also works on CentOS 7 and will work on Red Hat 8, RHEL8, as well. Where the first line has 4G, you can increase or decrease this number which refers to the size of the Swap RAM partition. fallocate -l 4G /swapfile chmod 600 […]Read More »
  • Navigate go up one directory in Python using paths.

    Navigate go up one directory in Python using paths.

    import os from os.path import basename path = "." path = os.path.realpath(path) path = path[:-len(basename(path))] If you want to know what this does: path starts as . then os.path.realpath(arg) turns it into /abd/def/ghik which is the current working directory. Now path is a string: “/abd/def/ghik” basename(path) will give us “ghik” which is a 4 letter […]Read More »
  • Install MITM Proxy on ANY Linux (the EASY & PROPER way!) Man in the Middle Proxy Server for Arch Linux

    Install MITM Proxy on ANY Linux (the EASY & PROPER way!) Man in the Middle Proxy Server for Arch Linux

    The best way to install Man in the Middle proxy for Arch Linux is using pipenv. This is because Arch is a rolling reserve and when you update Python-related packages, you will experience errors. sudo pacman -Sy python-pipenv git libffi Then clone MITM git clone https://github.com/mitmproxy/mitmproxy.git cd mitmproxy pipenv install pipenv run pip install pip […]Read More »
  • Change git username and email on your machine (Global and Locally)

    Change git username and email on your machine (Global and Locally)

    You can view your current username and email address using git config git config --list You can change your git username using git config –set git config --global user.name Matthew You can change your name just for one repository you are in by omitting the –global tag git config user.name Mark You can edit the […]Read More »
  • Update MariaDB to ANY Version on VestaCP CentOS 7/8. 10.2, 10.4, 10.5, 10.x

    Update MariaDB to ANY Version on VestaCP CentOS 7/8. 10.2, 10.4, 10.5, 10.x

    Replacing the stock MariaDB/MySQL version in VestaCP with a newer version. I updated mine because I wanted to use the JSON data type. You can choose any version on this page: https://yum.mariadb.org/ For this example we are using 10.4, if you want a different version, just replace the VERSION_NUM=’10.x’ near the top of the script. […]Read More »
  • Pandas to SQL: Flatten JSON from Requests using Pandas (Multiple methods!)

    Pandas to SQL: Flatten JSON from Requests using Pandas (Multiple methods!)

    Converting JSON to MySQL can be achieved in multiple ways, in this article we will look at three important ways to achieve this. You can directly copy and paste these examples into your Python terminal. The reqres URL returns dummy JSON data. # generate fake json array for this example import pandas as pd import […]Read More »
  • How to Check if SELinux is Enabled or Disabled Ubuntu, CentOS

    How to Check if SELinux is Enabled or Disabled Ubuntu, CentOS

    Literally one command: getenforceRead More »
  • Take Terminal Screenshots Inside Docker Container! Scrot + imcat

    Take Terminal Screenshots Inside Docker Container! Scrot + imcat

    Find yourself taking screenshots inside a selenium container? You can view those files in the terminal too (like ASCII art, but in color!) You will need a fake display server first, how to install a fake display server inside Docker. [code] apt install make gcc automake -y git clone https://github.com/stolk/imcat.git cd imcat make scrot image.png […]Read More »
  • RUN Wine/Windows Inside Docker! Autoclick, winetricks, Save-As, DotNet45, .NET46!

    RUN Wine/Windows Inside Docker! Autoclick, winetricks, Save-As, DotNet45, .NET46!

    To install wine and winetricks inside a docker, you need a fake X display server for winetricks to finish installing. The following code is the bare minimum, you need every line! ENV TZ prevents a dialog from happening during the xfce installation. ARG DEBIAN_FRONTEND=noninteractive prevents another dialog. xfce4 is the desktop, it has just enough […]Read More »
  • Xfce inside Docker! Virtual Display Screen Inside Your Headless Container!

    Xfce inside Docker! Virtual Display Screen Inside Your Headless Container!

    Want to have a virtual display running inside docker? You will need xvfb which is an ‘X virtual frame-buffer’ display server. The following Dockerfile code installs xfce4 in a virtual screen. [code]ARG DEBIAN_FRONTEND=noninteractive ENV TZ=UTC RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone RUN apt-get install keyboard-configuration -y RUN apt install xfce4 xfce4-goodies […]Read More »
  • Install Nginx on CentOS 8 & RHEL 8

    Install Nginx on CentOS 8 & RHEL 8

    You first need to install the epel-release package and then install nginx package: yum install epel-release -y yum install nginx -y Then you need to add nginx service to the firewall at both https and http ports, publicly. sudo firewall-cmd --permanent --zone=public --add-service=https --add-service=http sudo firewall-cmd --reloadRead More »
  • Install Cockpit on CentOS 7/8

    Install Cockpit on CentOS 7/8

    First, you need the might EPEL Release repo: yum install epel-release yum install cockpit Then, you need to enable Cockpit with the systemctl systemctl start cockpit ​systemctl enable cockpit.socket Then add Cockpit to the firewall exceptions sudo firewall-cmd --add-service=cockpit ​sudo firewall-cmd --add-service=cockpit --permanent ​sudo firewall-cmd --reload Cockpit is located at port 9090  Read More »
  • How To Install macOS Virtual Machine on Linux/Arch/Manjaro –  Catalina, Mojave, or High Sierra! XCode working! Tutorial for Ubuntu/RHEL/CentOS/Fedora

    How To Install macOS Virtual Machine on Linux/Arch/Manjaro – Catalina, Mojave, or High Sierra! XCode working! Tutorial for Ubuntu/RHEL/CentOS/Fedora

    Linux users on Arch or Manjaro attempting to install macOS/OSX in VMWARE, or QEMU/KVM, will greatly benefit from this tutorial. UPDATED 25 May 2020. Currently there is an OpenCore boot solution, which is far superior for Arch users. I have added it to the tutorial. UPCOMING: Dockerfile full auto macOS installer. Will be released May […]Read More »
  • How To Setup VNC, XRDP, XDoTool on Ubuntu (Azure, Gcloud)

    How To Setup VNC, XRDP, XDoTool on Ubuntu (Azure, Gcloud)

    How To Setup VNC, XRDP, XDoTool on Ubuntu (Azure, Gcloud) # updatesudo apt update -y# install xdotoolsudo apt install xdotool -y# prepare xfce desktop envsudo apt install xfce4 xfce4-goodies -y# vnc4server causes segmentation fault with xdotool so we will be using xrdp + vncsudo apt install vnc4server xrdp -y# enable xrdpsudo systemctl enable xrdp# add […]Read More »
  • Install XFCE CentOS 8

    Install XFCE CentOS 8

    As CentOS is new, we need to add additional repos, namely epel-testing. First, install yum utils to get yum-config-manager yum install yum-utils -y dnf install yum-utils -y Then, enable EPEL testing which has all the missing packages from CentOS 7 in CentOS 8. yum install epel-release -y yum-config-manager --enable epel-testing Bare minimum desktop: yum install […]Read More »
  • Install Python 3.8 on CentOS 7 or 8

    Install Python 3.8 on CentOS 7 or 8

    Here is a one block automated install for Python3.8 on CentOS:Read More »
  • Selenium Stopped Working 2019 Python Selenium Geckodriver Sock Error: Cannot Connect/Create Connection to Browser

    Selenium Stopped Working 2019 Python Selenium Geckodriver Sock Error: Cannot Connect/Create Connection to Browser

    I recently upgraded Firefox to the latest build. Then, my geckodriver binary stopped working in Python. The main problem, I had an outdated Geckodriver version (from the distro repo) Find the latest version https://github.com/mozilla/geckodriver/releases/ Geckordriver should be updated to the latest version: geckodriver --versiongeckodriver 0.26.0Read More »
  • OneLiner: Upgrade All PIP and PIP3 Python Packages to Latest Version

    OneLiner: Upgrade All PIP and PIP3 Python Packages to Latest Version

    “pip3 list –outdated” shows us all installed packages that are currently out of date. Sample Output xargs –update, excluding the “Packages” and “——…” header lines And as a one-liner:Read More »
  • Install Docker on CentOS 8 – Automatically!

    Install Docker on CentOS 8 – Automatically!

    Docker doesn’t come with “stock” repos on CentOS, some variations of alias programs are installations like podman. These lack many of the core commands of the “real” Docker. Here is a guide to install Docker Latest Version on CentOS. sudo yum clean all -y sudo yum update -y sudo yum upgrade -y sudo dnf config-manager […]Read More »
  • Generate Random Numbers on Bash or Shell Using Builtins $random

    Generate Random Numbers on Bash or Shell Using Builtins $random

    As we all know, the shell builtin variable $RANDOM is a pseudo random number generator. Today, we will be looking at some creative ways to generate psuedo random numbers, trying to use shell builtins as much as possible. The Best Solution is shuf (not exactly builtin though) Ways to generate various strings of numbers in […]Read More »
  • Fibonacci Counter In Pure Bash

    Fibonacci Counter In Pure Bash

    The Fibonacci sequence is a mathematical sequence of numbers such that the result is the sum of the previous two numbers in the sequence starting at x=0 and y=1. Hence, z = x + y We can write a script to calculate this function in bash or shell commands. First, I needed to visualize the […]Read More »
  • bulk Delete Comment Spam From Existing Blacklist

    bulk Delete Comment Spam From Existing Blacklist

    To bulk delete comments, we are going to use phpmyadmin. Most hosting panels have /phpmyadmin active on your account. Log into phpmyadmin and click on your database on the LEFT, then wp_comments or whatever database prefix you are using. Then head to Search Scroll down to comment_content and set the Operator column to %LIKE%, which […]Read More »
  • Screen Blurry After Updating Arch Linux – AMD Pixelated Artifacts and Graphics Issue

    Screen Blurry After Updating Arch Linux – AMD Pixelated Artifacts and Graphics Issue

    After updating to the rolling release of Arch from a few days before, my desktop began to pixelate. The new AMD Ryzen with Radeon graphics laptops, particularly the Ideapad & Thinkpads, have a problem with the Xfce window manager compositor. Does your screen look like this? I tried to record the blur but it didn’t […]Read More »
  • How To Install DigiDoc4 on Arch Linux – E-Estonia

    How To Install DigiDoc4 on Arch Linux – E-Estonia

    Here are instructions to install the DigiDoc4 software for Estonian E-residents on Arch Linux. ccid is required to use your card reader. If you have an ACS card reader, you need acsccid too Install opensc from git because opensc in the main Arch repo does not yet contain drivers for EstEID 2018+. After installing opensc-git […]Read More »
  • Remmina CLI – Shortcut For Open Remmina Profile on Linux Arch, Debian, Ubuntu, Mint, SNAP

    Remmina CLI – Shortcut For Open Remmina Profile on Linux Arch, Debian, Ubuntu, Mint, SNAP

    Do you often have to open Remmina? Create a shorcut to your Remmina profile and add it as a desktop launcher, or even a keyboard shortcut. If you installed Remmina without Snap, simply go to your Remmina config folder and choose which profile you want to open. Your profiles are in /home/$user/.remmina/ Right click, and […]Read More »
  • Remote Desktop Copy Paste Remmina Clipboard Not Syncing Properly – Parcellite Arch Linux

    Remote Desktop Copy Paste Remmina Clipboard Not Syncing Properly – Parcellite Arch Linux

    This post fixes problems with Remmina Clipboard not syncing correctly between host and remote desktops and fixes copy and paste on remote desktop not working on linux. When you highlight text and hit Ctrl+C, and then press Ctrl+P elsewhere, this is called a Clipboard Copy & Paste. When you highlight text, and then middle click […]Read More »
  • VPS Benchmarks – CPU & I/Ops + RAM Virtual Private Server & Dedicated Server Hosting Head-to-Head

    VPS Benchmarks – CPU & I/Ops + RAM Virtual Private Server & Dedicated Server Hosting Head-to-Head

    The best VPS is a VPS with no downtime, solid uplink, no overcrowding and no disruption to your services. Other general factors can play into VPS and offshore hosting when it comes to the law. Does your web server hosting company respond to abuse reports or DMCA requests? Do they notify you of new malware […]Read More »
  • 7z Extract All Archives In Folder Arch Debian Ubuntu OpenSUSE Manjaro

    7z Extract All Archives In Folder Arch Debian Ubuntu OpenSUSE Manjaro

    Install 7z sudo apt-get install p7zip sudo pacman -S p7zip This doesn’t work 7z e * This will work for archive in *do7z e $archivedoneRead More »
  • Arch WiFi-Menu Auto Connect: Cool ncurses WiFi-Menu Xfce4 Application Bar Launcher

    Arch WiFi-Menu Auto Connect: Cool ncurses WiFi-Menu Xfce4 Application Bar Launcher

    This is a cool little widget to go alongside your xfce4 application toolbars. This creates a single click WiFi-menu popup on your toolbar or can be used to run WiFi-menu on Arch startup or Xfce4 startup. Works on Debian, Mint, Ubuntu, OpenSUSE, Manjaro If you have a single WiFi card, and will never plug in […]Read More »
  • How to Record Calls on Twilio with TwiML Automatically

    How to Record Calls on Twilio with TwiML Automatically

    TwiML is Twilio’s amazing markup language for quickly & efficiently deploying new complex voice & SMS services. Twilio are cloud based software providers of phone systems both landline and mobiles. They even have MMS services that I will cover in later tutorial. Do you want to record incoming phone calls automatically on Twilio? Read ahead. […]Read More »
  • How To Install rEFInd Using Gparted, Arch Linux and Super Grub2 Disk

    How To Install rEFInd Using Gparted, Arch Linux and Super Grub2 Disk

    This tutorial outlines how to install the rEFInd Boot Manager on a GPT partition. When using UEFI boot, you should understand you will require a bootable esp partition that houses either the Windows Boot Manager, GRUB2, or rEFInd. I don’t know much about MacOS so do not follow these instructions exactly if you are using […]Read More »
  • Arch Linux Photoshop CC 2018-2019 WORKING

    Arch Linux Photoshop CC 2018-2019 WORKING

    Having been using Photoshop on Linux since 2014, I have tried many approaches to running Photoshop CS 6 or the new Photoshop CC series on Wine and PlayOnLinux, but nothing came close to using Crossover. Crossover is free to trial, but you can keep extending the trial, and use it for as long as you […]Read More »
  • XFCE4 Brightness Button on Launcher Bar – Increase & Decrease Backlight Manually

    XFCE4 Brightness Button on Launcher Bar – Increase & Decrease Backlight Manually

    First, find out your hardware backlight files ls /sys/class/backlight/ this should list the device name that controls your backlight In our case, it is amdgpu_bl0 so we cd into that folder and see the brightness file. Brightness is stored in the file ./amdgpu_bl0/brightess cat /sys/class/backlight/amdgpu_bl0/brightness In Arch: sudo pacman -S acpilight This gives us xbacklight […]Read More »
  • Lenovo Ideapad ARCH WiFi Setup 2019 rtl8821ce Not Working?

    Lenovo Ideapad ARCH WiFi Setup 2019 rtl8821ce Not Working?

    How to enable Realtek Lenovo Wifi Card drivers in a 2019 Lenovo Ideapad built in 2019. Lenovo Ideapad needs a specific new WiFi driver called rtl8821ce. This package is only available on the Arch User Repository AUR at the time of writing from a guy named tomaspinho. If you are doing a fresh Arch install […]Read More »
  • FrameBuffer Error in Ryzen 5 & VEGA AMD Graphics and CPU

    FrameBuffer Error in Ryzen 5 & VEGA AMD Graphics and CPU

    This error is reproducible in Debian 10 Buster as of time of writing on new L340 Ideapad and Thinkpad laptops by Lenovo. With a 2019 Ryzen 3, Ryzen 5, or Ryzen 7 AMD CPU Laptop with inbuilt Radeon Vega AMD Graphics card, you will encounter a FrameBuffer error on upgrading Debian 9 to Debian 10. […]Read More »
  • How to Turn Off Loud Beep PC Speaker Arch Debian Ubuntu

    How to Turn Off Loud Beep PC Speaker Arch Debian Ubuntu

    Just installed a new distro and hearing really loud beeps when pressing backspace? Your PC speakers are making this loud beeping noise. To disable the speaker immediately, as root rmmod pcspkr sudo rmmod pcspkr To permanently disable the speaker, either put that on a startup script or install some other audio & system sounds. After […]Read More »
  • Fix Debian 9 Upgrade apt-get update freezes and stops [0% Working]

    Fix Debian 9 Upgrade apt-get update freezes and stops [0% Working]

    Since our last dist-upgrade from Debian 8 Wheezy to Debian 9 Stretch, we’ve encountered quite a few new issues. By issues, I am referring to incompatibilities with any manual changes that I have made to my PC. Most of the repositories that I have manually added have to be manually adjusted from wheezy to stretch. […]Read More »
  • Using Rufus on Linux to make Bootable Windows USB. WoeUSB: WinUSB for Linux Debian, Ubuntu

    Using Rufus on Linux to make Bootable Windows USB. WoeUSB: WinUSB for Linux Debian, Ubuntu

    Only recently I found out Etcher.io didn’t make bootable Windows USB’s properly, or rather, did not support it at all. There are 3 ways to make Windows Bootable USBs on Debian Ubuntu of any Linux distro, but first you’ll need a Windows ISO which Windows themselves now provide. Just search “Windows ISO” and make sure […]Read More »
  • Fix or Repair Debian GRUB when it’ not working. Blank screen with blinking underscore cursor.

    Fix or Repair Debian GRUB when it’ not working. Blank screen with blinking underscore cursor.

    Playing around with GRUB is a nightmare for the first few times, and often GRUB reinstallations will actually be mandatory when installing multiple operating systems on the same drive, or multiple drives, or after reinstalling windows or vice versa. If you can’t boot into your OS, you’ll need a linux live CD of any kind […]Read More »
  • John the Ripper VPS/Dedicated Server Cracking – Multiple Core & Thread Research Tutorial

    John the Ripper VPS/Dedicated Server Cracking – Multiple Core & Thread Research Tutorial

    John the Ripper, also know as john in yum & apt package managers, is an open source password cracker and hash decipher program. Here is a “How To” tutorial for using John the Ripper on VPS or Dedicated instances so that you can leave it running overnight, for example. John the Ripper CentOS & Fedora […]Read More »
  • Paste Clipboard on Linux with xdotool (Ctrl + V into terminal or type)

    Paste Clipboard on Linux with xdotool (Ctrl + V into terminal or type)

    Ctrl + V (paste shortcut) doesn’t work everywhere that you expect it to work. For example, using noVNC, I really need to paste certain strings that I’ve already copied to clipboard with Ctrl + C. The program for the job is xdotool. sudo apt-get install xdotool Open your keyboard shortcuts tool, on Xfce it’s in […]Read More »
  • Android VNC Viewer Portait APK

    Android VNC Viewer Portait APK

    Download the Android VNC Viewer APK file below: Download android.androidVNC-1.apk Credit: business…@gmail.com on 1 Nov 2011 at 5:44Read More »
  • Fix Copy/Paste Issue with Facebook Messenger & Posts on Linux (Ubuntu/Debian/Mint)

    Fix Copy/Paste Issue with Facebook Messenger & Posts on Linux (Ubuntu/Debian/Mint)

    If you can’t copy and paste properly on Facebook without the comment or message becoming jumbled up, you may have to allow a certain Firefox setting in the about:config that allows clipboard events to function properly on Linux distros. Open a new tab and type: about:config Search for: dom.event.clipboardevents.enabled Double click on this entry to […]Read More »
  • Protected: Bulk check IP list (CSV, txt) data with MaxMind mmdb (mmdblookup)

    Protected: Bulk check IP list (CSV, txt) data with MaxMind mmdb (mmdblookup)

    There is no excerpt because this is a protected post.Read More »
  • VestaCP: Error Establishing a database connection (Digital Ocean/VPS Fix)

    VestaCP: Error Establishing a database connection (Digital Ocean/VPS Fix)

    If you have WordPress sites on a VPS with less than 700mb-1gb of RAM, you may experience intermittent MySQL downtime as the service turns itself off when it exceeds your server or allocated resource usage. The following commands will append to your crontab. This will check if mariadb/mysqld is running, if it’s not running, it […]Read More »
  • Download a WeVideo video with cURL

    Download a WeVideo video with cURL

    Click play on the video. Then right click on the video and inspect element. Find <video class=”fp-engine”…. and copy the Akamai URL. Alternatively click download on the video and once the download starts, cancel it, open your download queue and then right click on the download and copy the download URL. With either of the […]Read More »
  • Create a Hidden Tor Service with VestaCP in 10 MINUTES! ULTIMATE ONION SITE GUIDE! Ubuntu/Debian/CentOS!

    Create a Hidden Tor Service with VestaCP in 10 MINUTES! ULTIMATE ONION SITE GUIDE! Ubuntu/Debian/CentOS!

    Disclaimer: this guide was written for research purposes only because the Author wanted an .onion version of a normal website. The Author does not host any hidden services, only .onion addresses for already existing .com websites so that they can be accesses by .onion addresses too. This guide requires almost NO technical knowledge to start […]Read More »
  • Linux HotKey to Type a Pre-defined String (xdotool)

    Linux HotKey to Type a Pre-defined String (xdotool)

    Depending on your distro, you should have a keyboard shortcut program already installed. I wanted to be able to paste the following very oftenly typed command when pressing a certain key combination: cd /home/admin/web/*/public_html/ First, you’ll need xdotool sudo apt-get install xdotool I was having trouble putting the commands directly into the keyboard shortcut entry, […]Read More »
  • How To Install Megatools on CentOS 7 VPS

    How To Install Megatools on CentOS 7 VPS

    According to the Megatools official documentation page on github, you’ll need the following tools for using Megatools on Fedora (and git of course): yum -y install gcc make glib2-devel libcurl-devel openssl-devel gmp-devel tar automake autoconf libtool wget -y wget https://megatools.megous.com/builds/megatools-1.9.97.tar.gz tar -xzvf megatools*.tar.gz cd megatools* ./configure make make install megadl 'MEGA URL' Note the ‘single […]Read More »
  • Oneliner: Patch Dirty COW Exploit CentOS 5, 6 & 7

    Oneliner: Patch Dirty COW Exploit CentOS 5, 6 & 7

    This script is from RedHat themselves: wget https://access.redhat.com/sites/default/files/rh-cve-2016-5195_1.sh Then run this command to check if your kernel is vulnberable: bash rh-cve-2016-5195_1.sh Send this command out to all of your CentOS servers to patch their kernels: sudo yum update kernel -y && rebootRead More »
  • Etcher: AMAZING Unetbootin Alternative for Ubuntu/Debian/Linux/Windows

    Etcher: AMAZING Unetbootin Alternative for Ubuntu/Debian/Linux/Windows

    Unetbootin is FURIOUSLY difficult to install on Ubuntu, Debian and even Windows. I tried the ~5MB unetbootin-linux-xxx.bin file which FAILED. I tried the ~23MB unetbootin-linux.tar.gz source code which FAILED. I tried WinUSB which failed. I tried to get USB-Image Writer, which also failed. Finally found Etcher, fully open source bootable SD & bootable USB image […]Read More »
  • EASY: Move OS & Files from HDD to SSD – Debian, Ubuntu, Fedora, Arch (SMALL SSD)

    EASY: Move OS & Files from HDD to SSD – Debian, Ubuntu, Fedora, Arch (SMALL SSD)

    This tutorial is people who will ADD an SSD to their system. This NOT for people who will REPLACE their HDD completely with their SSD. This is by far the easiest, most foolproof, and safest way to transfer 1 linux installation (Debian, Ubuntu, Fedora, Arch, Kali etc.) to a brand new SSD. For the transfer […]Read More »
  • SUPER SIMPLE: Migrate/Move VestaCP Installation (10 seconds or less!)

    SUPER SIMPLE: Migrate/Move VestaCP Installation (10 seconds or less!)

    I’ve moved VestaCP installations so fast that by the time a customer started the checkout page in Sydney, they submitted their order to Amsterdam. This is best achieved with Cloudflare as there will be absolutely no downtime, whatsoever. First make sure there is a new VestaCP installation on your new server. If you have a […]Read More »
  • Prevent “Write Failed: broken pipe” Timeout when using SSH

    Prevent “Write Failed: broken pipe” Timeout when using SSH

    Navigate to your .ssh folder and create a file called config. Add this to the file: Host * ServerAliveInterval 15 This will prevent the broken pipe timeout error from reoccurring.Read More »
  • Protected: Install Legacy MaxMind GeoIP on CentOS 7 & VestaCP (ISP & GEO Redirect)

    Protected: Install Legacy MaxMind GeoIP on CentOS 7 & VestaCP (ISP & GEO Redirect)

    There is no excerpt because this is a protected post.Read More »
  • VestaCP: Best CPanel Alternative. World’s #1 Web Server Panel

    VestaCP: Best CPanel Alternative. World’s #1 Web Server Panel

    VestaCP is a free, open source, GPL v3 Licensed hosting control panel that is so innovative that it will change the way websites and hosting works. You can read about it here https://vestacp.com/.Read More »
  • CentOS 7 .onion Tor Website Auto-install (2016)

    CentOS 7 .onion Tor Website Auto-install (2016)

    THIS GUIDE IS INCOMPLETE, PLEASE USE THE TOR VESTACP GUIDE FOUND HERE. The following guide is a simplified version of various “onion site guides” that are currently available. Guides from 2014 and 2015 seem to be quite lacking in substance and some use apache, phpmyadmin This guide was written to make a tor version of […]Read More »
  • “Securely” generate Custom or Vanity .onion on VPS (Debian/Ubuntu/CentOS)

    “Securely” generate Custom or Vanity .onion on VPS (Debian/Ubuntu/CentOS)

    Word of warning: if you’re using a VPS service, such as Vultr, they may allow you to overclock your CPU which may be a terms of service violation as you’re using shared resources. On our first trial run, the CPU hit 1000% which may get you banned. Even on a dedicated instance we still hit […]Read More »
  • Find all files matching pattern recursively linux (Debian/CentOS/Ubuntu)

    Find all files matching pattern recursively linux (Debian/CentOS/Ubuntu)

    I love grep and I love simple code. find find will show all files recursively from what directory you are currently in. This will find all files, and then from that list it will show you files matching file.html find | grep file.html This will find all files again, and then grep files from that […]Read More »
  • How To Find All IPs for VPN Service (Private Internet Access)

    How To Find All IPs for VPN Service (Private Internet Access)

    I wanted to use every Private Internet Access (PIA) IPs to run a script using each of their full list of IP addresses once. For other companies, copy and paste a list of their whole network addresses list. For PIA, they First, save a copy of all their servers names. For PIA I had to […]Read More »
  • Find all IPs for a website or URL.

    Find all IPs for a website or URL.

    On linux you can use the host command to find out all the IP address for a hostname or website. Here is an example: host us-california.privateinternetaccess.com Example output: us-california.privateinternetaccess.com has address 107.152.98.165 us-california.privateinternetaccess.com has address 107.152.98.152 us-california.privateinternetaccess.com has address 198.8.80.182 us-california.privateinternetaccess.com has address 198.8.80.31 us-california.privateinternetaccess.com has address 198.8.80.172 us-california.privateinternetaccess.com has address 198.8.80.149 us-california.privateinternetaccess.com has address […]Read More »
  • Protected: Install MaxMind GeoIP on CentOS 7 & VestaCP (ISP & GEO Redirect)

    Protected: Install MaxMind GeoIP on CentOS 7 & VestaCP (ISP & GEO Redirect)

    There is no excerpt because this is a protected post.Read More »
  • Install LogMeIn Technician Console on iPhone & Android! LogMeIn App!

    Install LogMeIn Technician Console on iPhone & Android! LogMeIn App!

    This guide is to be able to use LogMeIn Rescue Technician Console on your iPhone or Android device. This method uses my other guide (create an Ubuntu desktop on a VPS) but I have made a simplified version right here. iPhone: install VNC Viewer from the AppStore. Android: install VNC Viewer from the Play Store […]Read More »
  • Install LogMeIn Technician Console on Mac & Linux (Ubuntu/Debian/Mint)

    Install LogMeIn Technician Console on Mac & Linux (Ubuntu/Debian/Mint)

    First, download the LogMeInRescueTechConsole.msi from the official logmein website. I successfully installed 7.9.2591. I have uploaded it here. Debian/Ubuntu/Mint/Other will need to get PlayOnLinux (free) sudo apt-get install playonlinux Mac users will need PlayOnMac (free) https://www.playonmac.com/ Install Logmein Rescue on Linux or Mac (very, very simple and fast) Open PlayOnLinux or PlayOnMac and at the […]Read More »
  • Super Easy: VPS Ubuntu Desktop, Windows VPS Desktop (FREE)

    Super Easy: VPS Ubuntu Desktop, Windows VPS Desktop (FREE)

    Epic method to have virtual desktop that you can control a Windows Desktop on iPhone & Android, as well as other desktops. After successfully installing wine to my Debian desktop and running Photoshop CS6 perfectly, as well as Photoshop CC 2014 AND Photoshop CC 2015, I wanted to see how far I could push it. […]Read More »
  • Owncloud Super Easy Install Instant CentOS 7

    Owncloud Super Easy Install Instant CentOS 7

    Make a new VPS at Vultr.com with CentOS 7. I would choose a dedicated storage instance rather than SSD as we want to have a bit of room on this server. Install VestaCP as usual: curl -O http://vestacp.com/pub/vst-install.sh bash vst-install.sh Navigate to public_html (cd /home/admin/web/*/public_html/) cd /home/admin/web/*/public_html/ echo "<?php exec('wget https://download.owncloud.org/community/owncloud-9.1.0.zip && unzip owncloud-9.1.0.zip && […]Read More »
  • Owncloud Rescan File System Cron Job – ALL Versions

    Owncloud Rescan File System Cron Job – ALL Versions

    Owncloud has it’s own special php command console. As the Owncloud file system user (in my case, admin), add this to cron: php /home/admin/web/DOMAIN.COM/public_html/occ files:scan --all Or if you’d prefer to do it as root: sudo -u admin php /home/admin/web/DOMAIN.COM/public_html/occ files:scan --all Replace DOMAIN.COM and the preceding file path with your public www folder. This […]Read More »
  • iPhone/Android: Listen to Asterisk, FreePBX, AsteriskNOW call recordings on mobile phone.

    iPhone/Android: Listen to Asterisk, FreePBX, AsteriskNOW call recordings on mobile phone.

    I have recently started having fun with PBX systems. The UCP on AsteriskNOW/FreePBX was not an ideal way for me to listen to .wav call recordings on my iPhone in my own time. The following tutorial will demonstrate how to sync .wav files to an ownCloud server that you can stream your call recordings on […]Read More »
  • Bash/Cron: Automatically Log Into WordPress via cURL/wget!

    Bash/Cron: Automatically Log Into WordPress via cURL/wget!

    Being able to automate menial tasks inside your WordPress admin area, for example, pressing a button once a day via a cron job, is extremely helpful to say the least. For this example, I will use my example of a plugin made for Shipwire that wasn’t updating inventory and tracking as it was supposed to […]Read More »
  • WebRTC IP Logger for WordPress – VPN IP Grabber for WordPress.

    WebRTC IP Logger for WordPress – VPN IP Grabber for WordPress.

    This guide is based on https://github.com/redpois0n/webrtc-grabber which is based on https://github.com/diafygi/webrtc-ips. UPDATE: I have now published a WordPress plugin of WebRTC IP Logger & Grabber for WordPress. Get it directly at the WordPress plugin repository, search for “WebRTC IP Grabber”. Or find the zip file here: https://wordpress.org/plugins/webrtc-ip-grabber-logger-stun-vpns/ DO NOT READ THIS TUTORIAL ANYMORE, JUST INSTALL THE […]Read More »
  • [FIX] Black Cursor in Gedit, Mousepad, Libreoffice Writer Linux

    [FIX] Black Cursor in Gedit, Mousepad, Libreoffice Writer Linux

    The black cursor is Insert mode on linux. To escape from insert mode, press Function + delete. My delete key has the word insert written in lowercase, your keyboard might be different.Read More »
  • [GUIDE] Global WooCommerce: WPML, hreflang, SEO, CloudFlare, Cache

    [GUIDE] Global WooCommerce: WPML, hreflang, SEO, CloudFlare, Cache

    Oh how easy making woocommerce fully multilingual, fully multicurrency and sharing a same order & user base would be… Key decisions must be made before transforming your store from a single en-us to a massive global subdomained or subdirectoried or ccTLD’ed enterprise. WooCommerce powers 30% of online stores and I’m surprised at the lack of […]Read More »
  • How To Install 100% Working Photoshop CS6 or CC on Ubuntu, Debian, Mint! CC 2019 CC 2020

    How To Install 100% Working Photoshop CS6 or CC on Ubuntu, Debian, Mint! CC 2019 CC 2020

    UPDATE 2020: I have been using Photoshop on Linux since 2012. I’ve ran Photoshop CS6, CC 2015, 2017, 2018, 2019. This article alone was published in 2016 and 4 years have passed since I first wrote this so I would like to mention the most important things I’ve realized during that time. many things have […]Read More »
  • How To Download & Install Launchpad & PPA Programs/Files Super Easy

    How To Download & Install Launchpad & PPA Programs/Files Super Easy

    One morning my Ubuntu installation stopped . I’m now feel a lot more comfortable with linux distributions but at the time I was freaking out. For this example, I will be installing the .deb file of Conky Manager by Tony George which is an awesome system load manager that displays real-time system load, CPU & […]Read More »
  • How To Update Flash on Firefox & Iceweasel Debian or Ubuntu

    How To Update Flash on Firefox & Iceweasel Debian or Ubuntu

    “This plugin is vulnerable and needs to be updated” Yes, flash is notoriously vulnerable and is updated almost weekly because it’s in almost everyone’s browser and is an easy target for hackers. To update flash on Debian, open a terminal and execute: sudo /usr/sbin/update-flashplugin-nonfree --install This will download the latest flash plugin for firefox/iceweasel and […]Read More »
  • How To Delete The First Column In A CSV File Inside a Bash Script

    How To Delete The First Column In A CSV File Inside a Bash Script

    You’re writing a script that maybe works with a CSV that you’ve downloaded as a cron job and want to delete the first column so that it uploads nicely somewhere else, maybe to a MySQL database. Delete the first column: sed -i 's/[^,]*,//' thespreadsheet.csv Delete the first two columns: sed -i 's/[^,]*,//' thespreadsheet.csv sed -i […]Read More »
  • How To Increase PHP File Upload Limit on CentOS 7

    How To Increase PHP File Upload Limit on CentOS 7

    How To Increase PHP File Upload Limit on CentOS 7 with one line of bash. SSH into your server as root and execute the following command: [cce_bash]replace “upload_max_filesize = 2M” “upload_max_filesize = 20M” — /etc/php.ini && service httpd restart[/cce_bash] That will replace your 2mb upload limit with a 20mb upload limit and it will restart […]Read More »
  • Brightness Keys Not Working Debian: Xfce Function F5 & F6 Fix

    Brightness Keys Not Working Debian: Xfce Function F5 & F6 Fix

    All the other Fn + F1 thru F12 keys were working except for Fn + F5 & Fn + F6. Open keyboard settings and find Application Shortcuts. Add a new shortcut with the following command: Reduce brightness by 10%: xbacklight -10 I used the keyboard shortcode Alt + (-), meaning the minus key on my […]Read More »

Welcome Back!

Login to your account below

Create New Account!

Fill the forms bellow to register

Retrieve your password

Please enter your username or email address to reset your password.