This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Pod | |
metadata: | |
labels: | |
app: pod6 | |
name: pod6 | |
namespace: default | |
spec: | |
containers: | |
- args: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: localhost | |
gather_facts: no | |
vars: | |
name: "abhi" | |
tasks: | |
- name: Print variable | |
debug: | |
msg: "{{ name }}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ndef | |
import codecs | |
text_record = (ndef.TNF_WELL_KNOWN, ndef.RTD_TEXT, b'id', b'hello world') | |
text_message = ndef.new_message(text_record) | |
text_raw_ndef = text_message.to_buffer() | |
encoded_hello_world = codecs.encode(text_raw_ndef, 'hex_codec') | |
decoded_hello_world = codecs.decode(encoded_hello_world, 'hex_codec') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ndef | |
import codecs | |
text_record = ( | |
(ndef.TNF_WELL_KNOWN, ndef.RTD_TEXT, b'id', b'hello world'), | |
(ndef.TNF_WELL_KNOWN, ndef.RTD_TEXT, b'id', b'hello world 2'), | |
(ndef.TNF_URI, ndef.RTD_URI, b'id', b'https://github.com'), | |
) | |
text_message = ndef.new_message(*text_record) | |
text_raw_ndef = text_message.to_buffer() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Remove nth element from the list | |
debug: | |
msg: | | |
{% set _ = my_list.pop(index) %} | |
{{ my_list }} | |
vars: | |
my_list: [1, 2, 3, 4, 5, 6] | |
index: 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Remove nth element from the list by value using reject | |
debug: | |
msg: "{{ my_list | reject('search', value)}}" | |
vars: | |
my_list: [1, 2, 3, 4, 5, 6] | |
value: '2' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Remove nth element from the list by value | |
debug: | |
msg: | | |
{% set _ = my_list.remove(value) %} | |
{{ my_list }} | |
vars: | |
my_list: [1, 2, 3, 4, 5, 6] | |
value: 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
rfolder=/mnt/sdcard/DCIM/Camera | |
adb shell ls "${rfolder}" > android.files | |
lfolder=/Volumes/data/documents/personal/camera | |
ls -1 "${lfolder}" > local.files |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"children": [ | |
{ | |
"children": [ | |
{ | |
"children": [ | |
{ | |
"children": [], | |
"event": "runner_on_start", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from api_helper import ShoonyaApiPy, get_time | |
import logging | |
import yaml | |
import pandas as pd | |
import pyotp | |
import asyncio | |
import json | |
import websockets | |