Follow these steps below to enable multiple SSH keys on your device with UNIX Based OS (MacOS/ Ubuntu/ Debian etc.). Suppose, you have two different users/ accounts, one is personalAccount
and another is companyAccount
. And you have already a default key configured with personalAccount
. (If you haven't set up your default ssh-key yet, please follow this article before going ahead with these steps described below.)
Generate a new ssh-key for your companyAccount
.
cd ~/.ssh
ssh-keygen -t rsa -C "your_email@youremail.com"
A brief example on how to use npx
to run gist based scripts.
Read the article here https://neutrondev.com/npm-vs-npx-whats-the-difference/ or watch it on YouTube https://www.youtube.com/watch?v=fSHWc8RTJug
I created a crude comparison of the syntax of the various common Markdown extensions to have a better view on what are the most common extensions and what is the most widely accepted syntax for them. The list of Markdown flavors that I looked at was based on the list found on CommonMark's GitHub Wiki.
Flavor | Superscript | Subscript | Deletion* Strikethrough |
Insertion* | Highlight* | Footnote | Task list | Table | Abbr | Deflist | Smart typo | TOC | Math | Math Block | Mermaid |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
GFM |
#!/usr/bin/env python | |
# -*- coding:utf-8 -*- | |
# Nginx - Remote Integer Overflow Vulnerability | |
# CVE-2017-7529 | |
import sys | |
import logging | |
import argparse |
Filter | Description | Example |
---|---|---|
allintext | Searches for occurrences of all the keywords given. | allintext:"keyword" |
intext | Searches for the occurrences of keywords all at once or one at a time. | intext:"keyword" |
inurl | Searches for a URL matching one of the keywords. | inurl:"keyword" |
allinurl | Searches for a URL matching all the keywords in the query. | allinurl:"keyword" |
intitle | Searches for occurrences of keywords in title all or one. | intitle:"keyword" |
Exhaustive list of SPDX (Software Package Data Exchange) licenses: https://spdx.org/licenses/
# run with $> python SimpleRequestHandler.py 8081 | |
from BaseHTTPServer import HTTPServer | |
from BaseHTTPServer import BaseHTTPRequestHandler | |
import json, sys | |
port = 8080 | |
if len(sys.argv) == 2: | |
port = int(sys.argv[1]) |
#!/bin/bash | |
# Script that detects arrival,presence,departure of iPhone based on bluetooth. It also execute actions | |
# In this script it terminate SSH sessions when defined device lefts range | |
# Requires: bluetooth, hcitools, curl | |
# Written by Zbyszek Żółkiewski, please visit: http://blog.onefellow.com | |
# Install: | |
# - copy ip_scan.sh to /usr/local/bin/ on your local machine/server | |
# - chmod ugo+x /usr/local/bin/ip_scan.sh | |
# - change 'ip_iphone' variable to point you your iPhone mac-address |
#!/bin/bash | |
# Script that detects arrival,presence,departure of iPhone on local network | |
# Requires arp-scan tool | |
# Written by Zbyszek Żółkiewski, please visit: http://blog.onefellow.com | |
# Install: | |
# - copy ip_scan.sh to /usr/local/bin/ | |
# - chmod ugo+x /usr/local/bin/ip_scan.sh | |
# - change 'ip_iphone' variable to point you your iPhone IP | |
# - option: insert your boxcar_id otherwise comment-out boxcar_send function in action_after_grace | |
# - put into cron: echo "*/1 * * * * root /usr/local/bin/ip_scan.sh" > /etc/cron.d/iphone_scan , or whatever user you want |