$ sudo apt-get install openssh-server
$ sudo systemctl restart sshd
$ sudo pacman -S qemu # For Arch LinuxDownload Win10 "manually" - https://www.microsoft.com/en-us/software-download/windowsinsiderpreviewadvanced
$ sudo pacman -S qemu
$ qemu-image create -f raw new_qemu_image 20G
OR
$ qemu-image create -f qcow2 new_qemu_image 20G
$ qemu-system-x86_64 -smp 2 -m 2G -enable-kvm -cdrom CentOS-7-x86_64-DVD-1708.iso -boot order=d new_qemu_image
# Installing CentOs...
$ qemu-system-x86_64 -k en-us -vga std -enable-kvm -m 2G -smp 2 -boot c new_qemu_image
# Running CentOs...| $ vim ~/.spacemacs | |
| ... | |
| ... | |
| ;; Default font, or prioritized list of fonts. `powerline-scale' allows to | |
| ;; quickly tweak the mode-line size to make separators look not too crappy. | |
| dotspacemacs-default-font '("Source Code Pro" | |
| :size 20 ;; In here | |
| :weight normal | |
| :width normal | |
| :powerline-scale 1.1) |
| #!/bin/bash | |
| # https://unix.stackexchange.com/questions/92445/bash-script-check-if-a-variable-is-in-a-z | |
| # Exampl1 | |
| echo -e "Enter a character: \c" | |
| read value | |
| # LC_ALL=C or LANG=C | |
| case $value in | |
| [a-z] ) | |
| echo "$value => a to z" ;; |
| $ pacaur -Syu | |
| :: editor variable unset | |
| $ export EDITOR='vim' | |
| $ export VISUAL='vim' | |
| $ pacaur -Syu | |
| :: Synchronizing package databases... | |
| antergos is up to date | |
| core is up to date | |
| extra 1667.3 KiB 838K/s 00:02 [########################################] 100% | |
| community 3.9 MiB 634K/s 00:06 [########################################] 100% |
| #!/usr/local/bin/python3.6 | |
| import requests | |
| import feedparser | |
| from urllib.parse import urljoin | |
| from lxml import html | |
| def findfeedWithLxml(site): | |
| raw = requests.get(site).content | |
| result = [] | |
| possibleFeeds = [] |
| $ heroku login | |
| $ heroku create <appname> --stack cedar --region us --buildpack https://github.com/AdmitHub/meteor-buildpack-horse.git | |
| $ heroku config:set MONGO_URL=mongodb://<username>:<password>@ds027308.mongolab.com:27308/<dbname> | |
| $ heroku config:set ROOT_URL=<appname>.herokuapp.com | |
| $ heroku git:remote -a <appname> | |
| $ git push heroku master |
| $ wget -mkEpnp http://example.org |
| # Installing Mysql | |
| |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| | |
| | (bash)$ pacman -S mysql | | |
| | (bash)$ mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql | | |
| | (bash)$ sudo systemctl start mysqld | | |
| |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| | |
| # Accesing Mysql | |
| |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| | |
| | (bash)$ mysql -u root -p | |