Skip to content

Instantly share code, notes, and snippets.

View punixcorn's full-sized avatar
🥔
cooking

potato punixcorn

🥔
cooking
View GitHub Profile
@joseluisq
joseluisq / resize_disk_image.md
Last active April 16, 2025 13:33
How to resize a qcow2 disk image on Linux

How to resize a qcow2 disk image on Linux

This example takes olddisk.qcow2 and resizes it into newdisk.qcow2, extending one of the guest's partitions to fill the extra space.

1. qcow2 format

1.1. Verify the filesystems of olddisk.qcow2

Setup tor proxy on Arch Linux

Copied from this article.

Installation

  1. Install tor

         $ sudo pacman -S tor
         $ ## nyx provides a terminal status monitor for bandwidth usage, connection details and more.

$ sudo pacman -S nyx

@Try-Parser
Try-Parser / AndroidEmulator.md
Last active April 27, 2025 15:00
Running emulator without Android Studio in Windows With Flutter

Android Emulator Setup without Android Studio in Windows with Flutter

First Download the Android SDK Commandline Tool only.

https://developer.android.com/studio/

Goto Download Options

Find Commandline tools only Section

@mrk-han
mrk-han / emulator-install-using-avdmanager.md
Last active March 13, 2025 16:33
Installing and creating Emulators with AVDMANAGER (For Continuous Integration Server or Local Use)

Install and Create Emulators using AVDMANAGER and SDKMANAGER

TL;DR

For an emulator that mimics a Pixel 5 Device with Google APIs and ARM architecture (for an M1/M2 Macbook):

  1. List All System Images Available for Download: sdkmanager --list | grep system-images

  2. Download Image: sdkmanager --install "system-images;android-30;google_atd;arm64-v8a"

@mattia72
mattia72 / Vim_Build.txt
Last active July 25, 2024 03:39
Build Vim with lua support in MSYS2
https://github.com/Alexpux/MSYS2-packages/issues/16
Download via pacman ncurses-devel ruby python2 python3 and lua source from web
Download and compile lua5.2 (cd src && make mingw && cd .. && make install )
For python3 support : download libint and make it visible by renaming msys-intl-8.dll to libintl.dll and putting it in /usr/lib
Run the following in vim/src:
./configure --prefix=/usr --with-tlib=ncursesw --enable-luainterp --with-lua-prefix=/usr/local --disable-gui --disable-tclinterp --enable-cscope --without-x CPPFLAGS="${CPPFLAGS} -I/usr/include/ncursesw" --enable-python3interp=dynamic --enable-rubyinterp=dynamic --enable-pythoninterp=dynamic --enable-multibyte && make
cd .. && make install
run vim and do :version
@joswr1ght
joswr1ght / disabledep.txt
Created October 25, 2015 11:35
Disable DEP/NX on Linux in Grub
Boot and interrupt the GRUB menu
Edit the boot configuration, changing the "linux" line by adding these two parameters to the end of the line:
noexec=off noexec32=off
Then boot by pressing Ctrl+x.
After booting, you can check to see if DEP/NX is turned off by running:
dmesg | grep NX
When DEP/NX is turned off you should see something similar to this output: