Site Tools


Hotfix release available: 2024-02-06a "Kaos". upgrade now! [55.1] (what's this?)
New release available: 2024-02-06 "Kaos". upgrade now! [55] (what's this?)
onny:notizen:programmierung

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
onny:notizen:programmierung [2022/02/20 11:33] – [postgresql] 80.187.99.121onny:notizen:programmierung [2022/03/19 14:37] – old revision restored (2022/03/07 12:58) 2001:41d0:1004:60b::
Line 259: Line 259:
 <code javascript> <code javascript>
 var string = string.substring(0,100); var string = string.substring(0,100);
 +</code>
 +
 +vanilla js onclick class element
 +<code javascript>
 +document.getElementsByClassName('navbar-burger')[0].onclick = function(){
 +  console.log('ready');
 +};
 </code> </code>
 ==== vuejs ==== ==== vuejs ====
Line 690: Line 697:
 <code> <code>
 pg_dump -U gitlab gitlabhq_production > /tmp/gitlab.pgsql pg_dump -U gitlab gitlabhq_production > /tmp/gitlab.pgsql
 +</code>
 +
 +dump all
 +<code>
 +pg_dumpall > /tmp/dump_file_name.tar
 </code> </code>
  
 import database import database
 <code> <code>
 +psql# CREATE DATABASE gitlabhq_production;
 psql -U gitlab gitlabhq_production < gitlab.pgsql psql -U gitlab gitlabhq_production < gitlab.pgsql
 </code> </code>
  
-create database+create and delete user 
 +<code> 
 +DROP ROLE gitlab; 
 +CREATE USER gitlab WITH PASSWORD '5V0hD0KWX81g5dhKGHsbqU4a'; 
 +</code> 
 + 
 +grant permissions
 <code> <code>
-psql# CREATE DATABASE gitlabhq_production+ALTER USER gitlab SUPERUSER; 
 +CREATE DATABASE gitlabhq_production OWNER gitlab; 
 +ALTER DATABASE gitlabhq_production OWNER TO gitlab;
 </code> </code>
onny/notizen/programmierung.txt · Last modified: 2023/11/07 15:40 by 127.0.0.1