Note
This no longer works in browser!
Note
This no longer works if you're alone in vc! Somebody else has to join you!
How to use this script:
- Accept the quest under User Settings -> Gift Inventory
UEsDBBQAAAAIABNQjFGCf/GfLgAAACwAAAAHAAAAUHJvLmtleTMqdncpCXQOKDAp9woMzEo1MTVOrHAzTjTLME7VNs1LK8owTjQpcU8tcuLlAgBQSwECFAAUAAAACAATUIxRgn/xny4AAAAsAAAABwAAAAAAAAAAAAAAAAAAAAAAUHJvLmtleVBLBQYAAAAAAQABADUAAABTAAAAAAA= |
I mostly write in English.
I enjoy sharing my notes at https://gist.github.com/ilyaigpetrov (by RSS, RSS to email via Blogtrottr).
For public discussions: https://github.com/ilyaigpetrov/ilyaigpetrov.github.io/discussions.
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
# If your pod container doesn't have bash in the path, you might need to replace `bash` with `/bin/bash/`, `/bin/sh` or `/bin/ash`. | |
# Simple string from the command line - puts the literal text 'AAA' into a new file /tmp/test.txt | |
echo 'AAA' > kubectl -n MyNamespace exec -ti $my_pod_id -c my-pod-container -- bash -c 'cat - > /tmp/test.txt' | |
# Copy / inject a file from the local filesystem into a new file in the pod in the remote kubernetes cluster | |
kubectl -n MyNamespace exec -i $my_pod_id -c my-pod-container -- bash -c 'cat - > /tmp/file.txt' </my/input/file.txt |
#!/bin/bash | |
clear | |
ua="BlackBerry9000/4.6.0.167 Profile/MIDP-2.0 Configuration/CLDC-1.1 VendorID/102" | |
username="username from http://tvcatchup.com" #before using this script you will need an acc at http://tvcatchup.com | |
password="password from http://tvcatchup.com" #before using this script you will need an acc at http://tvcatchup.com | |
player="mpv" #can edit to prefered player | |
dati=`wget -U "$ua" --no-check-certificate --save-cookies=cookie.txt -q --keep-session-cookies "http://m.tvcatchup.com" -O-` | |
hash=`echo "$dati" | grep -o "&hash=[^&]*" | cut -d"=" -f2` | |
list=`echo "$dati" | grep -o '<a href="#" onclick="javascript:loadChannel([^)]*' | cut -d'(' -f2 | sed "s#, '#) #g" | sed "s#'##g"` | |
check=`wget -U "$ua" --save-cookies=cookie.txt --load-cookies=cookie.txt --keep-session-cookies --no-check-certificate --header "Content-Type: application/x-www-form-urlencoded; charset=UTF-8" --header "X-Requested-With: XMLHttpRequest" --header "Referer: http://m.tvcatchup.com/" --post-data="username=${username}&hash=${ha |