This is made because man page for gpg always 😱 scared me like hell and I still do not understand why so basic thing as encrypting short message has to take so vast amount of mental and psychic energy to understand how it works.
| #!/usr/bin/env bash | |
| DB_HOST=localhost | |
| DB_NAME=database | |
| DB_USER=user | |
| DB_PASSWORD=p@ssw0rd | |
| DB_TABLE=some_table | |
| mysql --host=$DB_HOST --user=$DB_USER --password=$DB_PASSWORD --execute="select * from $DB_NAME.$DB_TABLE;" > sql_dump_$DB_NAME_$DB_TABLE.tsv | |
| exit |
Here we create the master key. We want only Certify capability: we use the master key only to create the subkeys, Sign - Encrypt - Authenticate capabilities will be assigned to the subkeys.
Run the following command to start the master key generation process. Select the set your own capabilities creation process (type 8)
▶ gpg --full-generate-key --expert
gpg (GnuPG) 2.2.9; Copyright (C) 2018 Free Software Foundation, Inc.
This is a quick guide of the commands we use to sign someone's GPG key in a virtual key signing party.
Note: The steps cover only the technical aspects of signing someone's key. Before signing someone's key, you must verify their identity. This is usually done by showing government-issued ID and confirming the key's fingerprint
The commands will work for both GPG and GPG2.
I use Julian's key for the examples. His key id is 2AD3FAE3. You should substitute with the appropriate key id when running the commands.
- List the keys currently in your keyring:
gpg --list-keys.
| #!/usr/bin/env bash | |
| # Time-stamp: <2017-04-27 09:57:21 kmodi> | |
| # Time-stamp: <2018-03-20 12:58:02 bobpaul> | |
| # derived from kmodi's gist: https://gist.github.com/kaushalmodi/74e9875d5ab0a2bc1010447f1bee5d0a | |
| # | |
| # Example of using getopt to parse command line options | |
| # http://stackoverflow.com/a/29754866/1219634 Limitation: All the options | |
| # starting with - have to be listed in --options/--longoptions, else getopt will | |
| # error out. | |
| # The downside is that if you intend to use this as a wrapper to some other program, |
| //The global script scope | |
| def ctx = context(scope: scriptScope()) | |
| //What things can be on the script scope | |
| contributor(ctx) { | |
| method(name: 'pipeline', type: 'Object', params: [body: Closure]) | |
| property(name: 'params', type: 'org.jenkinsci.plugins.workflow.cps.ParamsVariable') | |
| property(name: 'env', type: 'org.jenkinsci.plugins.workflow.cps.EnvActionImpl.Binder') | |
| property(name: 'currentBuild', type: 'org.jenkinsci.plugins.workflow.cps.RunWrapperBinder') | |
| property(name: 'scm', type: 'org.jenkinsci.plugins.workflow.multibranch.SCMVar') |
| sudo apt update && \ | |
| sudo apt install build-essential software-properties-common -y && \ | |
| sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \ | |
| sudo apt update && \ | |
| sudo apt install gcc-6 g++-6 -y && \ | |
| sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-6 && \ | |
| gcc -v |
- Карта расположения въезда в ОС "Судостроитель": https://is.gd/utakub
- от станции м. Нивки: https://is.gd/onamik
- от станции м. Сырец: https://is.gd/awavam
| #Requires -Version 3 | |
| #Requires -Modules Posh-Gist | |
| function Get-GistFiles { | |
| <# | |
| .SYNOPSIS | |
| Gets list of files inside the GitHub gists of a user | |
| .DESCRIPTION | |
| Gets list of files inside the GitHub gists of a user. GitHub API is not very convenient |