Skip to content

Instantly share code, notes, and snippets.

@morawskim
morawskim / backup_mysql.sh
Created June 5, 2015 10:22
Shell script to backup mysql databases.
#!/bin/sh
#Shell script to backup mysql databases.
#Credentials to mysql are not stored in this script. You should create .my.cnf file in user's home directory!
#Author: Marcin Morawski <[email protected]>
#Exit immediately if a command exits with a non-zero status.
set -e
#CURRENT DATE
@morawskim
morawskim / extract_x509_cert.sh
Created June 28, 2015 09:13
Extract x509 cert
#!/bin/sh
#Shell script to extract x509 certificate
#Author: Marcin Morawski <[email protected]>
#Exit immediately if a command exits with a non-zero status.
set -e
#Avoid accidental overwriting of a file
set -o noclobber
@morawskim
morawskim / build_php.sh
Created July 4, 2015 10:22
Download and build PHP
#!/bin/bash
#Shell script to download and compiling PHP.
#You must manually install all dependencies!
#Author: Marcin Morawski <[email protected]>
#Exit immediately if a command exits with a non-zero status.
set -e
#Avoid accidental overwriting of a file
set -o noclobber
@morawskim
morawskim / slack_gpg.pub
Last active September 9, 2016 17:05
Slack GPG pub key
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.11 (GNU/Linux)
mQINBFbGA48BEAC2S2NI8thjLDFCqjjWweQ2M6KF4+9+r4XFejsImspzDHm3+LhM
g6iAOeAI2aJ3pYThDAzKMOpUlGdyXsTjuP/IerrwVXMFg2JgFXre3skCdi4zDEmS
Xo/JyAQbQ8lVFvQ4fep+i0Z757MtTfaYlaU/dg1+8Ldnif7/0gEg3YsFXRAg5YXO
CK23AqcaZxr6gOkKcvlumecorV/oGzSCthIRdpYTmEOAvVOPn8xitnunjeErZR3+
BtVI3sfuTnEdqlu9lH9dLDgmEPihBTuHP0fLQ5vbJ2mgQQ8IalVf4U7aJFD5CH8s
XngxPHye8/Ww1EBVBxjtNogVM5tYg2Wxb5ESPmJ6k96BCzIIDNiEkZbPUHJfG5YR
rLdhz4gKSE3oUdRwA/fpt8bhDf1dQQcRoT98qLiGnJwAEx+a5cIHJDnKhwI0TLCO
@morawskim
morawskim / gpg_packagecloud.pub
Last active September 9, 2016 17:06
Packagecloud ops GPG pub key
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.11 (GNU/Linux)
mQINBFLUbogBEADceEoxBDoE6QM5xV/13qiELbFIkQgy/eEi3UesXmJblFdU7wcD
LOW3NuOIx/dgbZljeMEerj6N1cR7r7X5sVoFVEZiK4RLkC3Cpdns0d90ud2f3VyK
K7PXRBstdLm3JlW9OWZoe4VSADSMGWm1mIhT601qLKKAuWJoBIhnKY/RhA/RBXt7
z22g4ta9bT67PlliTo1a8y6DhUA7gd+5TsVHaxDRrzc3mKObdyS5LOT/gf8Ti2tY
BY5MBbQ8NUGExls4dXKlieePhKutFbde7sq3n5sdp1Ndoran1u0LsWnaSDx11R3x
iYfXJ6xGukAc6pYlUD1yYjU4oRGhD2fPyuewqhHNUVwqupTBQtEGULrtdwK04kgI
H93ssGRsLqUKe88uZeeBczVuupv8ZLd1YcQ29AfJHe6nsevsgjF+eajYlzsvC8BN
@morawskim
morawskim / RPM-GPG-KEY-morawskim
Created September 13, 2016 16:12
Morawskim GPG pub key
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2
mQENBFfTyFUBCACpsuBdWLcI64+eKAUg9lsIodNfKD3irIPQqsm/Ntagwu2FNMbE
3leJ3bBmYvMjGbeYRuEKpkfJk5huGNLaCqIucnmbXdpdgo/USozjWVhfmfAkbZH2
WMwPSKkNjaAm7m5Nz2/bqKVtDcCYc90GPaHRA96w+VmyuBJYbZBq03gQk+a0XHPK
pknhlp11V5gyQZBfmrg1z7IUdLQ2IgJdWLYbvcfHE+jh6AhP1DZs2YWpiPcEX14o
64/ZwAIBvYc4LwZhA/Ba13fSBaKnz4ggN6hAqvSZ7l2+rtnTw+8Ifu84IUJa1r7d
3NOZoDyyx3K31/hblJyXj/7ImHLWvUv7hMztABEBAAG0JU1hcmNpbiBNb3Jhd3Nr
aSA8bWFyY2luQG1vcmF3c2tpbS5wbD6JATkEEwECACMFAlfTyFUCGwMHCwkIBwMC
@morawskim
morawskim / hostinghouse.pem
Created June 18, 2018 18:33
hostinghouse cert
-----BEGIN CERTIFICATE-----
MIIENzCCAx+gAwIBAgIJAJpDBHfO/U7+MA0GCSqGSIb3DQEBCwUAMIGxMQswCQYD
VQQGEwJQTDEbMBkGA1UECAwSemFjaG9kbmlvcG9tb3Jza2llMREwDwYDVQQHDAhL
b3N6YWxpbjEdMBsGA1UECgwUSW1hZ2luaW8gU3AuIHogby4gby4xEDAOBgNVBAsM
B2hvc3RpbmcxHzAdBgNVBAMMFmdpZW5lay5ob3N0aW5naG91c2UucGwxIDAeBgkq
hkiG9w0BCQEWEWJpdXJvQGltYWdpbmlvLnBsMB4XDTE1MDkxMDEwNDMzN1oXDTM3
MDgwNTEwNDMzN1owgbExCzAJBgNVBAYTAlBMMRswGQYDVQQIDBJ6YWNob2RuaW9w
b21vcnNraWUxETAPBgNVBAcMCEtvc3phbGluMR0wGwYDVQQKDBRJbWFnaW5pbyBT
cC4geiBvLiBvLjEQMA4GA1UECwwHaG9zdGluZzEfMB0GA1UEAwwWZ2llbmVrLmhv
c3Rpbmdob3VzZS5wbDEgMB4GCSqGSIb3DQEJARYRYml1cm9AaW1hZ2luaW8ucGww
@morawskim
morawskim / pl.aff
Created October 27, 2018 14:57
PL vocabulary for RocketChat Electron
SET UTF8
TRY aioeznrwcysptkmdłuljągbhęśćóżfńźvqxAIOEZNRWCYSPTKMDŁULJĄGBHĘŚĆÓŻFŃŹVQX
PFX b Y 1
PFX b 0 nie .
SFX a Y 16
SFX a e ych [^i]e
SFX a e ymi [^i]e
The npm `mdncomp` package was removed.
This gist store build mdncomp package at version 1.23.0.
@morawskim
morawskim / docs.json
Last active December 5, 2020 13:24
The Universal Control Plane API (openAPI spec)
{
"swagger": "2.0",
"info": {
"description": "The Universal Control Plane API is a REST API, available using HTTPS, that enables programmatic access to swarm resources that are managed by UCP. UCP exposes the full Docker Engine API, so you can extend your existing code with UCP features. The API is secured with role-based access control so that only authorized users can make changes and deploy applications to your Docker swarm.\n\nThe UCP API is accessible in the same IP addresses and domain names that you use to access the web UI. It's the same API that the UCP web UI uses, so everything you can do on the UCP web UI from your browser, you can also do programmatically.\n\nThe system manages swarm resources by using collections, which you access through the `/collection` endpoint. For example, `GET /defaultCollection/\u003cuserID\u003e` retrieves the default collection for a user. [Learn more about resource collections](https://www.docker.com/ucp-3).\n\n- The `/roles` endpoint lets you enumerate and cre