start new:
tmux
start new with session name:
tmux new -s myname
| #EXTM3U | |
| #PLAYLISTV: pltv-logo="https://s15.postimg.cc/nmizpp2qj/Slide1.jpg" pltv-name="JuniorTVOnline" pltv-description=TV ONLINE para PlaylisTV/IPTV" pltv-cover="https://s15.postimg.cc/nmizpp2qj/Slide1.jpg" pltv-author="JuniorTVOnline" pltv-site="" pltv-email="JuniorTVOnline" pltv-phone="JuniorTVOnline. | |
| #EXTINF:-1 tvg-id="" tvg-name="Liga" tvg-logo="" tvg-shift="0" group-title="Filmes",Liga da Justiça | |
| https://x.filmes.click/m0/d/791373-720p.mp4 | |
| ############################### ABERTOS ##################################### |
| # filter by request host header | |
| varnishlog -q 'ReqHeader ~ "Host: example.com"' | |
| # filter by request url | |
| varnishlog -q 'ReqURL ~ "^/some/path/"' | |
| # filter by client ip (behind reverse proxy) | |
| varnishlog -q 'ReqHeader ~ "X-Real-IP: .*123.123.123.123"' | |
| # filter by request host header and show request url and referrer header |
| """ Using: google-cloud-storage """ | |
| import os | |
| from google.cloud import storage | |
| # https://cloud.google.com/storage/docs/authentication#generating-a-private-key | |
| os.environ['GOOGLE_APPLICATION_CREDENTIALS'] = 'PATH TO YOUR FILE JSON' | |
| client = storage.Client() | |
| # https://console.cloud.google.com/storage/browser/[bucket-id]/ |
A set of interesting tips for making the kuberenetes usage a bit more productive.
With the --dry-run argument we can collect the object that will be sent, but without actually sending it. If combined with -o yaml we can print the yaml version of the object.
Also consider redirecting the output of the following commands to a file, like the following:
| # -*- coding: utf-8 -*- | |
| """ | |
| This script list portlet assigments on a site. | |
| Run the script using the following command line: | |
| .. code-block:: console | |
| $ bin/instance -O Plone run scripts/remove_subtype.py |
Git freak como sou, precisava compartilhar algo útil sobre ele, claro. E, já que não vejo muito por aí o pessoal usando, resolvi falar dos alias do git! É um recurso que eu uso muito, e nunca entendi porque muitas pessoas não são adeptas. 😕
Pelo nome você já deve perceber que os alias no git são atalhos. Atalhos pro quê? São atalhos para comandos do git e até comandos shell se você quiser. E é bem fácil cadastrar um alias:
$ git config --global alias.st status
| # -*- coding: utf-8 -*- | |
| """ | |
| This script list portlet assigments on a site. | |
| Run the script using the following command line: | |
| .. code-block:: console | |
| $ bin/instance -O Plone run scripts/remove_broken.py |