How to Check if your email address is in a data breach ?
You can check if your data has been leaked and put on the dark web from one of the data breaches happened before.
1. https://cybernews.com/personal-data-leak-check/
2. https://monitor.firefox.com/
3. https://haveibeenpwned.com/
If you found that your emails has been pawned or leaked then do this.
- 1. Immediately change password of your mail account
- 2. Add 2fa layer to protect password
- 3. Use one of the best password manager and save your passwords locally encrypted. eg. KeepassXc.
#notes
You can check if your data has been leaked and put on the dark web from one of the data breaches happened before.
Just type your email to check if its information been leaked.
1. https://cybernews.com/personal-data-leak-check/
2. https://monitor.firefox.com/
3. https://haveibeenpwned.com/
If you found that your emails has been pawned or leaked then do this.
- 1. Immediately change password of your mail account
- 2. Add 2fa layer to protect password
- 3. Use one of the best password manager and save your passwords locally encrypted. eg. KeepassXc.
#notes
Cybernews
Personal Data Leak Checker: Your Email & Data - Breached? | CyberNews
Check whether your online credentials have been comprised with our up to date personal data leak checker tool.
Use apt-file search to check broken libraries belongs to which file?
X11 /extensions /Xcomposite.h No such file or directory
http://askubuntu.com/questions/801252/ddg#900768
Whenever a compile fails with a missing file simply leverage the infrastructure to search for the missing ubuntu package
which returns with
this technique works across any missing file
On a fresh OS if you issue
it will fail with error
The program 'apt-file' is currently not installed. To run 'apt-file' please ask your administrator to install the package 'apt-file'
which just means you need to do a one time setup of the local search cache so just run
--Scott Stensland
#notes #fixes
X11 /extensions /Xcomposite.h No such file or directory
http://askubuntu.com/questions/801252/ddg#900768
Whenever a compile fails with a missing file simply leverage the infrastructure to search for the missing ubuntu package
apt-file search some_missing_file_goes_here
# cmd 1 apt-file search X11/extensions/Xcomposite.h
# cmd 1which returns with
libxcomposite-dev: /usr/include/X11/extensions/Xcomposite.h
so solution is to install that missing packagesudo apt-get install libxcomposite-dev
# cmd 2this technique works across any missing file
On a fresh OS if you issue
apt-file search X11/extensions/Xcomposite.h
it will fail with error
The program 'apt-file' is currently not installed. To run 'apt-file' please ask your administrator to install the package 'apt-file'
which just means you need to do a one time setup of the local search cache so just run
sudo apt-get install apt-file -y
sudo apt-file update
now re-issue the search shown above (cmd 1) then install package (cmd 2)--Scott Stensland
#notes #fixes
Ask Ubuntu
X11/extensions/Xcomposite.h: No such file or directory
I've tried to compile https://unix.stackexchange.com/a/228674 under Ubuntu.
Unfortunately ending up with following error:
/tmp/find-cursor$ make
cc find-cursor.c -o find-cursor -lX11
find-cursor...
Unfortunately ending up with following error:
/tmp/find-cursor$ make
cc find-cursor.c -o find-cursor -lX11
find-cursor...
How to get pretty tty login art at bootup?
-
- but cannot run commands directly
- so redirect the output of any ascii command to
eg.-
-
/etc/issue
shows pretty output in tty- but cannot run commands directly
- so redirect the output of any ascii command to
issue
fileeg.-
neofetch > /etc/issue
but to run that command in each startup put it into /etc/rc.local
i use this fm6000 -r -c random -s zsh -de=dwm -n > /etc/issue
and put it into /etc/rc.local
Enjoy! #notes# My Artix/Arch Linux Installation #Notes
1. Base Install
- keyboard configuration
{Ignore the Above method It just for me heres what i recommend for others}
# creating partition table -
βββ boot (for uefi only) -
βββ root -
βββ swap -
βββ storage [optional] -
# Installing filesystem on newly created partitions
For Uefi users
βββ
βββ
For BIOS users
βββ
βββ
βββ
# Mounting partitions
βββ
βββ
βββ
- Installing base system
or
βββ
- Add users
#after reboot command for network
2. Post Base Install
- Install GUI Desktop Enviroment or Window manager
#notes
1. Base Install
- keyboard configuration
loadkeys us
- partitions making (It differs from persons choice)fdisk /dev/sda
d 2 n enter +51G w
mkfs.ext4 /dev/sda1
mount /dev/sda1 /mnt
mkdir /mnt/home
mkdir /mnt/boot
{Ignore the Above method It just for me heres what i recommend for others}
# creating partition table -
cfdisk /dev/sda
βββ #create partitions according to your need βββ boot (for uefi only) -
/dev/sda1
[at least 350mb]βββ root -
/dev/sda1
[at least 50Gig]βββ swap -
/dev/sda2
[at least 2Gig]βββ storage [optional] -
/dev/sda3
[remaining disk part usually 100Gig]# Installing filesystem on newly created partitions
For Uefi users
βββ
mkfs.fat -F 32 /dev/sda1
<- boot [Only for uefi users]βββ
fatlabel /dev/sda1 BOOT
<- must be labeled as bootFor BIOS users
βββ
mkfs.ext4 -L ROOT /dev/sda1
<- root βββ
mkswap -L SWAP /dev/sda2
<- swapβββ
mkfs.ext4 -L EXTRASTORAGE /dev/sda3
<- extra for storage, optional# Mounting partitions
βββ
swapon /dev/sda2
-> starting swap if createdβββ
mount /dev/sda1 /mnt
-> mounting rootβββ
mkdir /mnt/home /mnt/boot
-> creating needed folders - Installing base system
basestrap /mnt base base-devel runit elogind-runit linux linux-firmware vim
- Generate fstabfstabgen /mnt
fstabgen -U /mnt >> /mnt/etc/fstab
- chrooting into installed systemartools-chroot /mnt
bash
vim /etc/pacman.d/mirrorlist
- configuring timezoneln -sf /usr/share/zoneinfo/country/city/etc/localtime
hwclock --systohc
- localizationvim /etc/locale.gen
locale-gen
vim /etc/locale.conf
LANG = en_us.UTF-8
- Configure Networkpacman -S NetworkManager NetworkManger-runit
ln -S /etc/runit/sv/NetworkManager /etc/runit/runsvdir/current
#before rebootln -S /etc/runit/sv/NetworkManager /run/runit/service
# after rebootvim /etc/hostname
desktop
vim /etc/hosts
127.0.0.1 localhost
::1 localhost
127.0.0.1 desktop.localdomain desktop
- Installing Grubpacman -S grub
grub-install --target=i386-pc /dev/sda
# for biosor
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=grub
# for uefiβββ
grub-mkconfig -o /boot/grub/grub.cfg
β pacman -S artix-grub-theme
β vim /etc/default/grub
β GRUB_THEME="/usr/share/grub/themes/artix/theme.txt
βββ # reconfigure grub after installing grub theme- Add users
passwd
useradd -m username
passwd username
usermod -a -G video,audio,input,power,storage,optical,ip,scanner,dbus,adbusers,uucp,vboxusers username
usermod -a -G log mpd network scanner power users video storage ip optical wheel username
- Installing display serverpacman -S xorg
- Installing Video Driverspacman -S xf86-video-intel
- Network Configuration#after reboot command for network
2. Post Base Install
- Install GUI Desktop Enviroment or Window manager
#notes
# DIY clipboard manager #Notes #MyCreation
This was the part of larbs but i never able to get it working until now.
Using xclip, xdotool and dmenu to fetch clipboard contents
*Dependancies:
- xdotool
- xclip
- dmenu
- sxhkd (optional and depends on how you manage keybinds)
using dmenu later we will get the list of copied texts
but this file need to updated everytime we copied something.
So we can either cron job it or use a trigger recognizing program like entr.
So i choose to create aliases instead
and this sxhkd hotkey will be use to get the list of content.
This was the part of larbs but i never able to get it working until now.
Using xclip, xdotool and dmenu to fetch clipboard contents
*Dependancies:
- xdotool
- xclip
- dmenu
- sxhkd (optional and depends on how you manage keybinds)
xclip -sel c -o
will put selected clipboard content into fileusing dmenu later we will get the list of copied texts
but this file need to updated everytime we copied something.
So we can either cron job it or use a trigger recognizing program like entr.
So i choose to create aliases instead
alias \
cc="{xclip -sel c -o -r; printf '\n'; } >> ~/.local/share/larbs/snippets" \
cr=" : > ~/.local/share/larbs/snippets"
cc
will update the clipboard and cr
will clear all the fileand this sxhkd hotkey will be use to get the list of content.
super + Insert
xdotool type "$(dmenu -i -l 50 < ~/.local/share/clipboard/snippets)"
How to Add ~/.local/bin to PATH?
Adding dirs to PATH gives easy access to your local scripts.
Define PATH variable
Put this in your ~/.profile or ~/.zprofile
# Adds ~/.local/bin to $PATH
and restart your wm
Now you can easily access your scripts from dmenu, terminal or anywhere.
#faqs #notes
Adding dirs to PATH gives easy access to your local scripts.
Define PATH variable
Put this in your ~/.profile or ~/.zprofile
# Adds ~/.local/bin to $PATH
export PATH="$PATH:$(du "$HOME/.local/bin" | cut -f2 | paste -sd ':')"
and restart your wm
Now you can easily access your scripts from dmenu, terminal or anywhere.
#faqs #notes
Text manipulation commands
#Notes #teachingnotes
echo - send text to stdout
cat - read file
less - read in a pager
head - read from top
tail - read from bottom
more - file perusal filter for crt viewing
sort - sort lines
uniq - report or omit repeated lines
fmt - reformat lines
pr - convert text files for printing
tr - translate or delete characters
Advanced Commads
awk - pattern scanning and processing language
grep - print lines matching pattern
sed - stream editor for filtering and transforming text
#Notes #teachingnotes
echo - send text to stdout
cat - read file
less - read in a pager
head - read from top
tail - read from bottom
more - file perusal filter for crt viewing
sort - sort lines
uniq - report or omit repeated lines
fmt - reformat lines
pr - convert text files for printing
tr - translate or delete characters
Advanced Commads
awk - pattern scanning and processing language
grep - print lines matching pattern
sed - stream editor for filtering and transforming text
Advanced diskpartition #quicknotes #notes
partitioning using fdisk
primary {sda1 sda2 sda3}, extended {sda4}
physical volume
pvcreate
pvcreate /dev/sda1 /dev/sda2 /dev/sda3
pvs or pvdisplay - for showing
volume group
vgcreate
vgcreate <newname> <path of volumes>
vgs or vgdisplay
logical volume
lvcreate
lvcreate -L +20G -n <newname> <vg name>
lvrename
lvextend
lvreduce
partitioning using fdisk
primary {sda1 sda2 sda3}, extended {sda4}
physical volume
pvcreate
pvcreate /dev/sda1 /dev/sda2 /dev/sda3
pvs or pvdisplay - for showing
volume group
vgcreate
vgcreate <newname> <path of volumes>
vgs or vgdisplay
logical volume
lvcreate
lvcreate -L +20G -n <newname> <vg name>
lvrename
lvextend
lvreduce
To delete all files except one!
- using find
- using zsh:
- using bash:
to delete all except filename1 and filename2
Bash Specific Use Globignore variable
it will remove all except iso and text file
#notes #challenges
- using find
find . \! -name 'file' -delete
- using zsh:
setopt extendedglob
echo ^foo
rm ^foo
- using bash:
shopt -s extglob
rm -v !("filename")
rm -v !("filename1"|"filename2")
to delete all except filename1 and filename2
Bash Specific Use Globignore variable
GLOBIGNORE=*.iso:*.txt
rm *
unset GLOBIGNORE
it will remove all except iso and text file
#notes #challenges
#notes Change username from old to new
make sure no program is running under old username
run these under tty in root for best
//rename username
#hacktuts
make sure no program is running under old username
run these under tty in root for best
//rename username
#usermod βl newname oldname//for changing directory name too
#usermod βd /home/newname βm newname//changing finger information
#chfn βf newname newname
//now reboot or relogin and check $whoami
$pwd
#hacktuts
Go slowly and simplify your task with Pandas .pdf
700.3 KB
15 pandas functions for 90% of your work : cheatsheet with examples pdf
#notes #pandas #cheatsheet
@pyguru
#notes #pandas #cheatsheet
@pyguru
Creating a Perfect GPG keypair (and reduce risk of losing your laptop or stolen private keys)
https://alexcabal.com/creating-the-perfect-gpg-keypair
#notes
https://alexcabal.com/creating-the-perfect-gpg-keypair
#notes