Note: Tested on Fedora only
- Download the new release of GraalVM and unpack it anywhere in your filesystem:
$ tar -xvzf graalvm-ce-1.0.0-rc14-linux-amd64.tar.gz
Note: Tested on Fedora only
$ tar -xvzf graalvm-ce-1.0.0-rc14-linux-amd64.tar.gz
| -- Set Id Seq | |
| SELECT setval('tablename_id_seq', (SELECT MAX(id) FROM public.tablename)); | |
| -- Log in | |
| sudo -i -u postgres | |
| psql dbname username | |
| -- Backup | |
| sudo -u postgres pg_dump -U postgres -d mydb -F c -f /tmp/mydb.backup |
sudo yum -y install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
sudo yum -y update
sudo yum -y install postgresql13 postgresql13-server
sudo /usr/pgsql-13/bin/postgresql-13-setup initdb
CentOS 7
Java
yum install java-1.8.0-openjdk
Setting the JAVA_HOME Variable
sudo cp /etc/profile /etc/profile_backup #Backup the profile file in order to prevent unintentional mistakes
| # Find Biggest Files and Directories | |
| # Run the following command to find out top biggest directories under /home partition. | |
| du -a /home | sort -n -r | head -n 5 | |
| # To display the largest folders/files including the sub-directories, run: | |
| du -Sh /home | sort -rh | head -5 | |
| # PARAMETERS | |
| # du command: Estimate file space usage. | |
| # a : Displays all files and folders. |
| <?php | |
| class BreakOut extends Exception {} | |
| function mapGenerator(array $arr, $callback) | |
| { | |
| $ret = []; | |
| foreach ($arr as $val) { | |
| try { | |
| yield $callback($val); |
| # Export | |
| mysqldump -u root site_database > /home/sitename/BCKP001.sql | |
| mysqldump -u root site_database | gzip > /home/sitename/BCKP001.sql.gz | |
| # Ignore specific table | |
| mysqldump -u root site_database --ignore-table=site_database.table1 > /home/sitename/BCKP001.sql | |
| # Export specific table | |
| mysqldump -u root site_database table1 > /home/sitename/BCKP001.sql | |
| # Import |
| <div data-secret="<?= htmlspecialchars(json_encode($data), ENT_QUOTES, 'UTF-8') ?>"> | |
| Look at inside me! | |
| </div> |