Skip to main content

Posts

Showing posts from December, 2018

Amoeba finds approximate solutions to NP-hard problem in linear time

xdm downloader i3

find WM_CLASS(STRING) = "java-lang-Thread"  using xprop

.config/i3/config
for_window [class="^java-lang-Thread$"] floating enable

redshift i3

sudo pacman -S redshift

.config/i3/config
bindsym Mod4+g exec  redshift -l 27.70:85.32
bindsym Mod4+Shift+g exec   pkill redshift

metasploit database archlinux

sudo systemctl start postgresql
sudo -u postgres -i
initdb --locale en_US.UTF-8 -E UTF8 -D '/var/lib/postgres/data'
createuser msf -P  -S -R -D   or createuser --interactive
createdb -o msf-msf

touch .msf4/"database.yml"
for armitage : 
export MSF_DATABASE_CONFIG=$HOME/.msf4/database.yml
production: adapter: postgresql database: msf username: ${USER} password: ${PASS} host: localhost port: 5432 pool: 5 timeout: 5

stranger things title tease

how to peel a egg raw

Experiment no 1: to make egg shell disasppear
materials needed : white vinegar,egg,glass jar, lid

procedure:
1.  Add egg to glass jar.
2.Pour vinegar to jar until egg sinks completely. Tiny bubbles of carbon dioxide gas  start to appear on the eggshell after just a few moments.
3.wait for chemical reaction to complete (few days/week)
4.remove egg from vinegar and wash off remains.

results:
This is a acid-base reaction. Vinegar contains acetic acid. Eggshells contain calcium carbonate(base).

The calcium carbonate in the eggshell reacts with the acetic acid in the vinegar to form a water-soluable compound, calcium acetate, and carbon dioxide (CO2) gas. This reaction dissolves the eggshell, but leaves the inner membrane intact, creating a naked egg.