Create an empty git repo or reinitialize an existing one
git initCreate an empty git repo or reinitialize an existing one
git initPeople
:bowtie: |
😄 :smile: |
😆 :laughing: |
|---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
| docker pull postgres:11.6 | |
| docker run --name [container_name] -e POSTGRES_PASSWORD=[your_password] -d postgres | |
| docker exec -it [container_name] psql -U [postgres_user] | |
| create database [db_name]; | |
| \c [db_name] |
| version: "3.8" | |
| services: | |
| database: | |
| image: postgres:11.6 | |
| volumes: | |
| - qidpdata:/var/lib/postgresql/data | |
| - ./db_scripts/:/docker-entrypoint-initdb.d | |
| environment: | |
| POSTGRES_USER: medium | |
| POSTGRES_PASSWORD: medium1234 |
| -- NOTE : It considers the default postgresql schema `public`, it assumes the database name to satyaki | |
| -- Revoke privileges from 'public' role | |
| REVOKE CREATE ON SCHEMA public FROM PUBLIC; | |
| REVOKE ALL ON DATABASE satyaki FROM PUBLIC; | |
| -- Read-only role | |
| CREATE ROLE readonly; | |
| GRANT CONNECT ON DATABASE satyaki TO readonly; | |
| GRANT USAGE ON SCHEMA public TO readonly; |
I'm putting the neccessary commands here only.
Verify that you now have the key with the fingerprint 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88, by searching for the last 8 characters of the fingerprint.
| node { | |
| echo 'Results included as an inline comment exactly how they are returned as of Jenkins 2.121, with $BUILD_NUMBER = 1' | |
| echo 'No quotes, pipeline command in single quotes' | |
| sh 'echo $BUILD_NUMBER' // 1 | |
| echo 'Double quotes are silently dropped' | |
| sh 'echo "$BUILD_NUMBER"' // 1 | |
| echo 'Even escaped with a single backslash they are dropped' | |
| sh 'echo \"$BUILD_NUMBER\"' // 1 | |
| echo 'Using two backslashes, the quotes are preserved' | |
| sh 'echo \\"$BUILD_NUMBER\\"' // "1" |
| $('.copy-trip-id').click(function(e){ | |
| e.preventDefault(); | |
| var el = $(".trip-id-copy").data("trip-id"); | |
| $("body").append("<input id='trip-text'></input>"); | |
| $('#trip-text').attr('value', el); | |
| var txt = $('#trip-text').select(); | |
| document.execCommand("copy"); | |
| $('#trip-text').remove(); | |
| }) |