Skip to content

Instantly share code, notes, and snippets.

@raddup
raddup / readme.md
Last active December 18, 2020 07:54 — forked from troyfontaine/readme.md
Resize root partition (or how to remove the default /home partition) on CentOS 7 online

Resize root partition (or how to remove the default /home partition) on CentOS 7 online

This requires you to be able to ssh into the instance using the root user account and that no services be running as users out of /home on the target machine.

The examples are from a default installation with no customation-you NEED to know what you're working with for volumes/partitions to not horribly break things.

By default, CentOS 7 uses XFS for the file system and Logical Volume Manager (LVM), creating 3 partitions: /,/home and

Step 1 - Copy /home Contents

To backup the contents of /home, do the following:

@raddup
raddup / gitupuc.md
Last active September 1, 2021 22:06
linux comenzi foarte utile
run root inside docker
docker exec -u 0 -it mycontainer bash
@raddup
raddup / multiprocess_selenium.py
Created August 28, 2021 17:32 — forked from wooddar/multiprocess_selenium.py
Easy Python script to run selenium web workers/browsers in parallel
"""
This is an adaptable example script for using selenium across multiple webbrowsers simultaneously. This makes use of
two queues - one to store idle webworkers and another to store data to pass to any idle webworkers in a selenium function
"""
from multiprocessing import Queue, cpu_count
from threading import Thread
from selenium import webdriver
from time import sleep
from numpy.random import randint
@raddup
raddup / network-proxying-and-examples.png
Created September 1, 2021 22:17 — forked from rpivo/network-proxying-and-examples.png
Network Proxying & Proxy Examples
network-proxying-and-examples.png
@raddup
raddup / README.md
Created September 3, 2021 16:02 — forked from balupton/README.md
Android Emulator

Android Emulator

  1. Download Android Studio
  2. Create a virtual device: /Applications/Android\ Studio.app/sdk/tools/android create avd -n <name> -t 1
  3. List your virtual devices: /Applications/Android\ Studio.app/sdk/tools/android list avd
  4. Run your virtual device: /Applications/Android\ Studio.app/sdk/tools/emulator -avd basic