Function's Service Account should have role logging.writer
context.function_name
DOES contain function id
Thanks to https://github.com/mcode-cc/python-yandex-cloud-logging library
Function's Service Account should have role logging.writer
context.function_name
DOES contain function id
Thanks to https://github.com/mcode-cc/python-yandex-cloud-logging library
#!/bin/bash | |
# sudo apt install gcc-aarch64-linux-gnu g++-aarch64-linux-gnu | |
# sudo apt install gcc-arm-linux-gnueabi g++-arm-linux-gnueabi | |
# sudo apt install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf | |
dpkg-query -l gcc-aarch64-linux-gnu > /dev/null || sudo apt install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu | |
dpkg-query -l aria2 > /dev/null || sudo apt install -y aria2 | |
export LOCAL_PATH=$(pwd) |
# CMakeLists.txt for dual-core STM32H7xx MCUs and CLion IDE | |
# | |
# DISCLAIMER: Experimental version, based on undocumented assumptions how STM32CubeMX works | |
# DISCLAIMER: THIS FILE IS PROVIDED UNDER "The Unlicense" LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTY OF ANY KIND | |
# | |
# Requirements: | |
# Toolchain binaries have to be in system path | |
# STM32CubeMX field "Project Manager | Code Generator | Target IDE" must be set to "STM32CubeIDE" | |
# | |
# Tested under environment: |
import { useState } from "react"; | |
export function useLocalStorage<T>(key: string, initialValue: T): [T, (s: T) => void] { | |
// State to store our value | |
// Pass initial state function to useState so logic is only executed once | |
const [storedValue, setStoredValue] = useState<T>(() => { | |
try { | |
// Get from local storage by key | |
const item = window.localStorage.getItem(key); | |
// Parse stored json or if none return initialValue |
# MIT License | |
# | |
# Copyright (c) 2019 Cristian Adam | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |
java -jar /home/expert/work/tools/apktool.jar d net.flixster.android-9.1.3@APK4Fun.com.apk
android:networkSecurityConfig="@xml/network_security_config"
attribute to application
element.<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<base-config>
FROM ubuntu | |
RUN apt update \ | |
&& apt install -y firefox \ | |
openssh-server \ | |
xauth \ | |
&& mkdir /var/run/sshd \ | |
&& mkdir /root/.ssh \ | |
&& chmod 700 /root/.ssh \ | |
&& ssh-keygen -A \ | |
&& sed -i "s/^.*PasswordAuthentication.*$/PasswordAuthentication no/" /etc/ssh/sshd_config \ |
#!/bin/sh | |
set -e | |
_usage() { | |
echo "Usage: $0 [--user|org] USER_OR_ORG_NAME GOGS_REPO_NAME GITLAB_HTTPS_URL" | |
exit 0 | |
} | |
MODE=$1 |