This file contains 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
#!python3 | |
''' BSD 3-Clause License — but if it was useful to you, you may tell me :) | |
Copyright (c) 2016-2017, Alexandre Levavasseur | |
All rights reserved. | |
Redistribution and use in source and binary forms, with or without | |
modification, are permitted provided that the following conditions are met: | |
* Redistributions of source code must retain the above copyright | |
notice, this list of conditions and the following disclaimer. | |
* Redistributions in binary form must reproduce the above copyright |
This file contains 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
[portainer] | |
username=USER | |
password=PASSWORD | |
url=http://127.0.0.1:9000 | |
[swarm] | |
clusterID=ID | |
# as seen in `docker info` |
This file contains 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
** MARVELL BOARD: DB-88F6702A-BP LE | |
U-Boot 1.1.4 (Mar 12 2012 - 16:23:48) Marvell version: 3.6.0.DNS-320L.01 | |
U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CFB00 | |
Soc: 88F6702 A1 CPU running @ 1000Mhz L2 running @ 500Mhz | |
SysClock = 400Mhz , TClock = 166Mhz | |
DRAM (DDR2) CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6 |
This file contains 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
#!python3 | |
from uuid import UUID | |
from datetime import date | |
# https://github.com/d-fence/frit/blob/master/frit/fritutils/fsprobe.py | |
# https://gist.github.com/sque/dc7a057e66371717e921 | |
# https://en.wikipedia.org/wiki/GUID_Partition_Table | |
# https://github.com/n0fate/raw/blob/master/gpt_parser.py | |
# https://sourceforge.net/u/guikcd93/gptfdisk/ci/master/tree/parttypes.cc#l179 |
This file contains 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 re, pathlib | |
target_version_major = 2 | |
target_version_minor = 0 | |
"""md | |
* https://github.com/flipperdevices/flipperzero-firmware/blob/0.69.1/lib/flipper_application/flipper_application.c#L45 | |
* https://github.com/flipperdevices/flipperzero-firmware/blob/0.69.1/lib/flipper_application/flipper_application.c#L116 | |
* https://github.com/flipperdevices/flipperzero-firmware/blob/0.69.1/lib/flipper_application/application_manifest.c#L12 | |
* https://github.com/flipperdevices/flipperzero-firmware/blob/0.69.1/lib/flipper_application/application_manifest.h#L15 |
This file contains 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
""" | |
ASGI config for MyApp project. | |
It exposes the ASGI callable as a module-level variable named ``application``. | |
For more information on this file, see | |
https://docs.djangoproject.com/en/4.0/howto/deployment/asgi/ | |
""" | |
import os |
This file contains 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
Infos | |
https://en.wikipedia.org/wiki/Single_UNIX_Specification | |
https://github.com/geoff-codes/posix-unix-standard | |
https://mywiki.wooledge.org/POSIX | |
Single Unix Specification, SUS (T101) = "Base Specifications" POSIX-2008 (C165) (+ X/Open Curses (C094)) (??) | |
http://www.cse.psu.edu/~deh25/cmpsc311/Lectures/Standards/PosixStandard.html | |
"SUS" | |
https://publications.opengroup.org/t101 | |
http://pubs.opengroup.org/onlinepubs/9699919799/ |
This file contains 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
#!/usr/bin/env python | |
"""Simple filter to mark a variable as unsafe""" | |
from __future__ import (absolute_import, division, print_function) | |
__metaclass__ = type | |
from ansible.utils.unsafe_proxy import wrap_var | |
def as_unsafe(var): |
This file contains 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
meta: | |
id: kdbx | |
file-extension: kdbx | |
endian: le | |
license: ISC # https://spdx.org/licenses/ISC.html | |
doc: | | |
composite_key = sha256(sha256(password) + composites) | |
aes = new AES(128, CBC, iv=0x0 *16, key TRANSFORMSEED | |
transformed_key=sha256(for i in TRANSFORMROUNDS: aes.encrypt(transformed_key))) |
This file contains 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
--- | |
# ---Setup: | |
# > ansible-playbook -i mytest.ini mytest.yml --limit test2 | |
# ./mytest.ini: | |
# test1 site=ams | |
# test2 site=ams | |
# test3 site=blg | |
# | |
# ---Result: | |
# PLAY [TEST] ******************************************************************** |
NewerOlder