Dear all Github friends,
I moved this gist to the Github repository.
Following this repository https://github.com/nijicha/install_nodejs_and_yarn_homebrew
| version: "3.4" | |
| services: | |
| pgAdmin: | |
| restart: always | |
| image: dpage/pgadmin4 | |
| ports: | |
| - "8000:80" | |
| environment: | |
| PGADMIN_DEFAULT_EMAIL: 1234@admin.com |
Dear all Github friends,
I moved this gist to the Github repository.
Following this repository https://github.com/nijicha/install_nodejs_and_yarn_homebrew
| /* Customize website's scrollbar like Mac OS | |
| Not supports in Firefox and IE */ | |
| /* total width */ | |
| body::-webkit-scrollbar { | |
| background-color: #fff; | |
| width: 16px; | |
| } | |
| /* background of the scrollbar except button or resizer */ |
| class Guid { | |
| public static newGuid(): Guid { | |
| return new Guid(crypto.randomUUID()); | |
| // Old IE supported way: | |
| /*return new Guid('xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, c => { | |
| const r = Math.random() * 16 | 0; | |
| const v = (c == 'x') ? r : (r & 0x3 | 0x8); | |
| return v.toString(16); | |
| }));*/ |
| the best way (I've found) to completely uninstall node + npm is to do the following: | |
| go to /usr/local/lib and delete any node and node_modules | |
| go to /usr/local/include and delete any node and node_modules directory | |
| if you installed with brew install node, then run brew uninstall node in your terminal | |
| check your Home directory for any local or lib or include folders, and delete any node or node_modules from there | |
| go to /usr/local/bin and delete any node executable | |
| You may need to do the additional instructions as well: | |
| sudo rm /usr/local/bin/npm |
| // NOTE: This is now rolled up in a package and supports more scenarios: https://github.com/dsherret/using-statement | |
| interface IDisposable { | |
| dispose(); | |
| } | |
| function using<T extends IDisposable>(resource: T, func: (resource: T) => void) { | |
| try { | |
| func(resource); | |
| } finally { |
| const CANCEL = Symbol(); | |
| class CancellationToken { | |
| constructor() { | |
| this.cancelled = false; | |
| } | |
| throwIfCancelled() { | |
| if (this.isCancelled()) { |
| source: http://www.markbrilman.nl/2011/08/howto-convert-a-pfx-to-a-seperate-key-crt-file/ | |
| `openssl pkcs12 -in [yourfile.pfx] -nocerts -out [keyfile-encrypted.key]` | |
| What this command does is extract the private key from the .pfx file. Once entered you need to type in the importpassword of the .pfx file. This is the password that you used to protect your keypair when you created your .pfx file. If you cannot remember it anymore you can just throw your .pfx file away, cause you won’t be able to import it again, anywhere!. Once you entered the import password OpenSSL requests you to type in another password, twice!. This new password will protect your .key file. | |
| Now let’s extract the certificate: | |
| `openssl pkcs12 -in [yourfile.pfx] -clcerts -nokeys -out [certificate.crt]` |