Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
#!/bin/bash | |
# Clean all exited containers | |
docker ps -qaf status=exited | xargs docker rm | |
# Remove all unused images | |
docker images -f dangling=true -q | xargs docker rmi |
These are additions or notable revisions in the iOS Security Guide | |
Document Revision History Summary Updated for iOS 10 | |
• System Security | |
• Data protection classes | |
• Security Certifications and programs | |
• HomeKit, ReplayKit, SiriKit | |
• Apple Watch | |
• Wi-Fi,VPN | |
• Single Sign-on | |
• Apple Pay, Paying with Apple Pay on the web |
import os | |
import yaml | |
import logging.config | |
import logging | |
import coloredlogs | |
def setup_logging(default_path='logging.yaml', default_level=logging.INFO, env_key='LOG_CFG'): | |
""" | |
| **@author:** Prathyush SP | |
| Logging Setup |
import dash | |
import dash_core_components as dcc | |
import dash_html_components as html | |
from urllib.parse import urlparse, parse_qsl, urlencode | |
from dash.dependencies import Input, Output | |
app = dash.Dash() | |
app.config.suppress_callback_exceptions = True |
git_current_branch () { | |
local ref | |
ref=$(command git symbolic-ref --quiet HEAD 2> /dev/null) | |
local ret=$? | |
if [[ $ret != 0 ]] | |
then | |
[[ $ret == 128 ]] && return | |
ref=$(command git rev-parse --short HEAD 2> /dev/null) || return | |
fi | |
echo ${ref#refs/heads/} |
Do take one issue per person to help others :) Also checkout Fedora tracker for more easy issues : https://bugzilla.redhat.com/show_bug.cgi?id=1785415 . I tried to mark the issues complete but it's more maintenance so sorry if the issue is fixed or already has a PR and is not updated here.
Update: I created jq-zsh-plugin that does this.
One of my favourite tools of my trade is jq. It essentially enables you to process json streams with the same power that sed, awk and grep provide you with for editing line-based formats (csv, tsv, etc.).
Another one of my favourite tools is fzf.