Skip to main content

Posts

Showing posts from 2018

Latest Post

Fix Arch [Manjaro] GRUB Bootloader

 Boot to any [Manjaro] live GUI disk. Use manjaro-chroot 1. Start by identifying the partition where your Manjaro installation controlling the active Grub menu resides and needs repairing. If you are in Graphical mode you can use an application called GPartEd , which should be in Menu > System > GPartEd. This will provide a simple visual illustration of the partitions on your hard drive(s). To do the same thing from terminal or TTY you can use this command lsblk -f 2. manjaro-chroot is a tool to easily setup a functional chroot into an installed Linux installation from a live boot of a Manjaro Installation Media. To setup the chroot use the command sudo manjaro-chroot -a You will be presented with a terminal. Wait until it shows a list with the available system partitions on your computer and choose the one you want to repair.    1.) First of all check the partition for the ESP (EFI System Partition). An ESP is a fat32 partition and contains .efi ...

AWS Instace Details With awscli

you need 4 things. 1. awscli 2. awsaccesskey 3. awssecretkey 4. Region Install awscli by pip install awscli Configure awscli by keys and regions by aws configure You can get region by going to: https://whoer.net/checkwhois and check for the host. ec2-XX-XX-XX-XXX.ap-north-1.compute.amazonaws.com ap-north-1 is the region. Check Instances aws ec2 describe-instances

Edit Hosts File Hassle Free

This can be useful to block certain urls from accessing Internet which check for activation Status. 1. Create a new file with '.bat' extension 2. Add Contents: (echo. & echo 0.0.0.0 url_to_block) >> C:\Windows\System32\drivers\etc\hosts 3. Save And Run As Administrator

Customize Grub Screen

Download: Grub Customizer 1. Open terminal via Ctrl+Alt+T or by searching for “Terminal” from start menu. When it opens, run command: sudo add-apt-repository ppa:danielrichter2007/grub-customizer Type in your password (no visual feedback) and hit Enter. 2. Then install grub-customizer package via either Synaptic Package Manager or by running commands: sudo apt update && sudo apt install grub-customizer Uninstall To remove the PPA, go to System Settings -> Software & Updates -> Other Software. To remove the software, either use Synaptic Package Manager or run command: sudo apt remove grub-customizer && sudo apt autoremove

Change file and Folder Modified and accessed date [Ubuntu]

Easiest way - accessed and modified will be the same: file or folder touch -a -m -t 201512180130.09 fileName.ext Where: -a = accessed -m = modified -t = timestamp - use [[CC]YY]MMDDhhmm[.ss] time format touch -a -m -t 201708220931.09 subject.php.bak create new file with date touch -d 201708221431.09 fileName.ext Copy oldFile.php attributes to newFile.php touch -r oldFile.php newFile.php

Youtube-dl download all videos [Udemy] [Youtube]

Udemy: youtube-dl --username [username] --password [password] -o "%(autonumber)s-%(title)s.%(ext)s" --all-subs [url] where: --username : email of udemy --password : password of udemy --all-subs : download all subtitiles available "%(autonumber)s-%(title)s.%(ext)s" : download sequentially [url] : https://www.udemy.com/lesson/learn/v4/content XZ_OPT=-9e tar cvJf folder.tar.xz folder