The purpose of this document is to provide a complete overview of the PHP session
handler life cycle updated to version 7.0 or above. In particular, I want to
emphasize what methods and in what order are called when the native PHP functions
are used for session management.
I created this document because the information on the web and the official
documentation are very superficial on this topic, in particular on what
concerns the implementation of a safe and stable session handler.
""" | |
Server to answer requests from Libvirt VMs to http://169.254.169.254/ | |
Cloud images usually don't have a preset user/password, and this is needed to add a ssh pub key to .ssh/authorized_hosts. | |
Change SSH_PUB_KEY path below. | |
pip install bottle | |
sudo ip address add 169.254.169.254 dev virbr0 | |
open firewall | |
-A ufw-user-input -s 192.168.122.0/24 -d 169.254.169.254/32 -i virbr0 -p tcp -m tcp --dport 80 -j ACCEPT |
The goal of this document to cover all aspects of Kubernetes management, including how resources are expressed, constrained and accounted for. This started a way to ensure that alternate container runtime implementation like Kata containers will behave from a resource accounting and consumption point of view in the same manner as runc
.
Location of the latest version of this document: https://gist.github.com/mcastelino/b8ce9a70b00ee56036dadd70ded53e9f
If you do not understand cgroups please refer to a quick primer at the bottom of this document. This will help you understand how the resource enforcement actually works.
backend be_servers | |
balance roundrobin | |
server s1 server1:80 maxconn 10 | |
server s2 server2:80 maxconn 10 | |
server s3 server3:80 maxconn 10 |
package main | |
/* | |
Golang SSHAgent Usage | |
https://orebibou.com/2019/03/golang%E3%81%A7ssh-agent%E3%81%8B%E3%82%89%E9%8D%B5%E3%82%92%E5%8F%96%E5%BE%97%E3%81%97%E3%81%A6ssh%E6%8E%A5%E7%B6%9A%E3%81%99%E3%82%8B/ | |
*/ | |
import ( | |
"fmt" | |
"golang.org/x/crypto/ssh" |
Helm 3 is storing description of it's releases in secrets. You can simply find them via
$ kubectl get secrets
NAME TYPE DATA AGE
sh.helm.release.v1.wordpress.v1 helm.sh/release.v1 1 1h
If you want to get more info about the secret, you can try to describe the secret
$ kubectl describe secret sh.helm.release.v1.wordpress.v1
#this | |
ffmpeg -loglevel debug -f hls -referer 'https://10play.com.au/live' -user_agent 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/82.0.4050.0 Safari/537.36' -f hls -i "https://manifest.prod.boltdns.net/manifest/v1/hls/v4/aes128/2199827728001/6bd7fe89-1f2f-42d0-b7a5-c676791a0d83/10s/master.m3u8?fastly_token=NWUzZDliOGZfNTJhZjJhN2IxMzQ5OTdjNGVkYmEzODkwNjYwZTYyMWY2ZmY1YjNmNGJkNWM3NjdiNDFiZmViNjczNzMwMmJlYQ%3D%3D" -c copy project5.mp4 | |
# or this | |
ffmpeg -loglevel debug -f hls -referer 'https://10play.com.au/live' -user_agent 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/82.0.4050.0 Safari/537.36' -f hls -i "https://manifest.prod.boltdns.net/manifest/v1/hls/v4/aes128/2199827728001/6bd7fe89-1f2f-42d0-b7a5-c676791a0d83/10s/master.m3u8?fastly_token=NWUzZDliOGZfNTJhZjJhN2IxMzQ5OTdjNGVkYmEzODkwNjYwZTYyMWY2ZmY1YjNmNGJkNWM3NjdiNDFiZmViNjczNzMwMmJlYQ%3D%3D" -c copy -bsf:a aac_adtstoasc project3.mp4 |
Go step-by-step through following instructions to set up L2TP/IPSec VPN on Centos 7. | |
To set up the VPN client on centos 7, first install the following packages: | |
yum -y install epel-release | |
yum -y install strongswan xl2tpd | |
Create VPN variables (replace with actual values): | |
VPN_SERVER_IP='your_vpn_server_ip' | |
import asyncio | |
# Ref: https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.get_event_loop | |
# > If there is no current event loop set in the current OS thread, | |
# > the OS thread is main, and set_event_loop() has not yet been called, | |
# > asyncio will create a new event loop and set it as the current one | |
loop = asyncio.get_event_loop() | |
# So, loop2 is loop | |
loop2 = asyncio.get_event_loop() |
# Source: https://gist.github.com/28e2adb5946ca366d7845780608591d7 | |
########################################################### | |
# Argo Workflows & Pipelines # | |
# CI/CD, Machine Learning, and Other Kubernetes Workflows # | |
# https://youtu.be/UMaivwrAyTA # | |
########################################################### | |
# Referenced videos: | |
# - Argo CD - Applying GitOps Principles To Manage Production Environment In Kubernetes: https://youtu.be/vpWQeoaiRM4 |