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
#!/sbin/openrc-run | |
# Copyright 1999-2018 Gentoo Foundation | |
# Distributed under the terms of the GNU General Public License v2 | |
depend() { | |
need net localmount | |
after bootmisc | |
} | |
start() { |
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
#!/bin/bash | |
# script that creates clang/llvm cross toolchain for aarch64 android target | |
# compile a hello world program that runs on AOSP Android: | |
# test with: adb push hello /data/cache && adb shell /data/cache/hello | |
# GCC: | |
# C: aarch64-linux-android-gcc hello.c -o hello -pie | |
# C++: aarch64-linux-android-g++ hello.cc -o hello -pie -fPIC -static-libgcc \ | |
# -nostdlib -L/usr/local/aarch64-linux-android/lib -lc++ -lc -nostdinc++ \ | |
# -I/usr/local/aarch64-linux-android/include/c++/v1 -std=c++11 | |
# Clang/LLVM: |
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
<# | |
Make adapter use gravity (untagged) or upstream network (tagged 1). | |
This depends on the switch (ER-X) configuration: | |
- upstream port has PVID=1 (untagged vlan 1) | |
- gateway port has PVID=1 VID=200 (untagged vlan 1, tagged vlan 200) | |
- downstream ports have PVID=200 VID=1 (untagged vlan 200, tagged vlan 1) | |
#> | |
#Requires -RunAsAdministrator |
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
// | |
// main.swift | |
// photo-redate | |
// | |
// Created by Pengcheng on 19.01.2024. | |
// | |
import Foundation | |
import Photos | |
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
package pionic | |
import axi.sim.{Axi4Master, Axi4StreamMaster, Axi4StreamSlave} | |
import spinal.core._ | |
import spinal.core.sim._ | |
import spinal.lib.BinaryBuilder | |
import scala.util._ | |
case class PacketDescSim(addr: BigInt, size: BigInt)(implicit config: PioNicConfig) { |
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
package axi.sim | |
import pionic.RichByteArray | |
import spinal.core._ | |
import spinal.core.sim._ | |
import spinal.lib.bus.amba4.axi._ | |
import spinal.lib.sim._ | |
import java.util.concurrent.atomic.{AtomicBoolean, AtomicReference} | |
import scala.collection.mutable |
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
package axi.sim | |
import spinal.core._ | |
import spinal.core.sim._ | |
import spinal.lib._ | |
import spinal.lib.bus.amba4.axi._ | |
import spinal.lib.bus.misc._ | |
import spinal.lib.sim._ | |
import scala.collection.mutable |
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
# WARNING: This file was auto-generated using snmp_exporter generator, manual changes will be lost. | |
geist_imd: | |
walk: | |
- 1.3.6.1.4.1.21239.5.2.3 | |
metrics: | |
- name: pduMainIndex | |
oid: 1.3.6.1.4.1.21239.5.2.3.1.1.1 | |
type: gauge | |
help: Table entry index value - 1.3.6.1.4.1.21239.5.2.3.1.1.1 | |
indexes: |
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
// slice of dictates for query | |
var q []string | |
//q = append(q, fmt.Sprintf("mimeType='%s'", driveFolderType)) | |
//q = append(q, "name='Uncategorized'") | |
//q = append(q, "('0B9P4nJCkns_fWERqT3dfVENHMXM' in parents)") | |
q = append(q, "trashed=false") | |
q = append(q, "(name contains 'VCB')") | |
// construct the call for listing the requested files | |
listCall := srv.Files.List().PageSize(10). |
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
version: '3' | |
volumes: | |
prometheus_data: {} | |
grafana_data: {} | |
services: | |
# Prometheus backend. | |
prometheus: | |
restart: always | |
image: prom/prometheus | |
volumes: |
NewerOlder