$ sudo apt-get install openssh-server
$ sudo systemctl restart sshd
# http://ryanstutorials.net/regular-expressions-tutorial/ | |
dot (.) Match any character. | |
[ ] Match a range of characters contained within the square brackets. | |
[^ ] Match a character which is not one of those contained within the square brackets. | |
* Match zero or more of the preceeding item. | |
+ Match one or more of the preceeding item. | |
? Match zero or one of the preceeding item. | |
{n} Match exactly n of the preceeding item. | |
{n,m} Match between n and m of the preceeding item. | |
{n,} Match n or more of the preceeding item. |
# Installing PostgreSql | |
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| | |
| (bash)$ dnf install postgresql postgresql-server postgresql-contrib | | |
| (bash)$ # Start PostgreSql database server | | |
| (bash)$ service postgresql initdb | | |
| (bash)$ service postgresql start | | |
| (bash)$ # Autostart PostgreSql on Boot | | |
| (bash)$ systemctl start postgresql service | | |
| (bash)$ systemctl enable postgresql service | | |
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| |
# 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 | |
$ wget -mkEpnp http://example.org |
$ 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 |
#!/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 = [] |
#!/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" ;; |
$ 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) |
$ 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% |