create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| admin account info" filetype:log | |
| !Host=*.* intext:enc_UserPassword=* ext:pcf | |
| "# -FrontPage-" ext:pwd inurl:(service | authors | administrators | users) "# -FrontPage-" inurl:service.pwd | |
| "AutoCreate=TRUE password=*" | |
| "http://*:*@www” domainname | |
| "index of/" "ws_ftp.ini" "parent directory" | |
| "liveice configuration file" ext:cfg -site:sourceforge.net | |
| "parent directory" +proftpdpasswd | |
| Duclassified" -site:duware.com "DUware All Rights reserved" | |
| duclassmate" -site:duware.com |
| /*! | |
| * WoW Pure CSS Tooltip: an experiment fo pure CSS tooltip on anchor elements. | |
| * | |
| * This script sets the `aria-label` attribute on all anchors if it's not set or empty. | |
| * It uses the contents of the `title` attribute, if present, and remove the title | |
| * attribute in order to avoid the browser native tooltip. | |
| * Meant to be used with the companion WoW Pure CSS Tooltip styles. | |
| * | |
| * See: https://gist.github.com/celsobessa/c98e45d2074be5cd915febfed37feeda | |
| * (c) 2019 Celso Bessa, MIT License, https://www.celsobessa.com.br |
| # Add this to ~/.bashrc | |
| git_branch() { | |
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
| } | |
| export PS1="[\u@\h \W]\$(git_branch)\$ " |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| #!/bin/sh | |
| # http://www.alfredklomp.com/programming/shrinkpdf | |
| # Licensed under the 3-clause BSD license: | |
| # | |
| # Copyright (c) 2014, Alfred Klomp | |
| # All rights reserved. | |
| # | |
| # Redistribution and use in source and binary forms, with or without | |
| # modification, are permitted provided that the following conditions are met: |
| // sleep() equivalent for vanilla Javascript using ES6 features | |
| // created by Dan Dascalescu | |
| // see https://stackoverflow.com/questions/951021/what-is-the-javascript-version-of-sleep/39914235#39914235 | |
| function sleep(ms) { | |
| return new Promise(resolve => setTimeout(resolve, ms)); | |
| } | |
| async function demo() { | |
| console.log('Taking a break...'); |
| // parseUri 1.2.2 | |
| // (c) Steven Levithan <stevenlevithan.com> | |
| // MIT License | |
| function parseUri (str) { | |
| var o = parseUri.options, | |
| m = o.parser[o.strictMode ? "strict" : "loose"].exec(str), | |
| uri = {}, | |
| i = 14; |
| // check all properites in a object as explained by Viktor Borisov on | |
| // https://firstclassjs.com/check-if-object-is-empty-in-javascript/ | |
| function isEmpty(obj) { | |
| for(var prop in obj) { | |
| if(obj.hasOwnProperty(prop)) return false; | |
| } | |
| return true; | |
| } | |
| // use Examples |
| # ----------------------------------------------------------------- | |
| # .gitignore | |
| # Bare Minimum Git | |
| # http://ironco.de/bare-minimum-git/ | |
| # ver 20181206 | |
| # | |
| # From the root of your project run | |
| # curl -O https://gist.githubusercontent.com/celsobessa/67e02d08bf89ada501e7ea8531cc0624/raw/a6a4ff4cd71112a566ed893846dd4ab8d14035c0/.gitignore | |
| # to download this file | |
| # |
| let regex; | |
| /* matching a specific string */ | |
| regex = /hello/; // looks for the string between the forward slashes (case-sensitive)... matches "hello", "hello123", "123hello123", "123hello"; doesn't match for "hell0", "Hello" | |
| regex = /hello/i; // looks for the string between the forward slashes (case-insensitive)... matches "hello", "HelLo", "123HelLO" | |
| regex = /hello/g; // looks for multiple occurrences of string between the forward slashes... | |
| /* wildcards */ | |
| regex = /h.llo/; // the "." matches any one character other than a new line character... matches "hello", "hallo" but not "h\nllo" | |
| regex = /h.*llo/; // the "*" matches any character(s) zero or more times... matches "hello", "heeeeeello", "hllo", "hwarwareallo" |