This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Aur package Downloading | |
## First Way | |
$ git clone http://aur.archlinux.org/package.git | |
$ cd package | |
$ makepkg -Sri | |
## Second Way | |
$ git clone http://aur.archlinux.org/package.git | |
$ makepkg -s | |
$ sudo pacman -U package.tar.[xz|gz] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(root)# systemctl start postgresql | |
Job for postgresql.service failed because the control process exited with error code. | |
See "systemctl status postgresql.service" and "journalctl -xe" for details | |
(root)# systemctl status postgresql | |
● postgresql.service - PostgreSQL database server | |
Loaded: loaded (/usr/lib/systemd/system/postgresql.service; disabled; vendor preset: disabled) | |
Active: failed (Result: exit-code) since Mon 2017-03-06 07:52:38 UTC; 12s ago | |
Process: 10052 ExecStartPre=/usr/bin/postgresql-check-db-dir ${PGROOT}/data (code=exited, status=1/FAILURE) | |
CPU: 6ms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | | |
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ wget -mkEpnp http://example.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" ;; |
OlderNewer