https://pimylifeup.com/raspberry-pi-nodejs/
# check default lts version
apt show nodejs
https://pimylifeup.com/raspberry-pi-nodejs/
# check default lts version
apt show nodejs
#!/bin/bash | |
# By Steven de Salas | |
# Based on script by Richard Stanley @ https://github.com/audstanley/Node-MongoDb-Pi/ | |
# This is for a RaspberryPi Zero but should work across all models. | |
VERSION=v20.9.0; | |
# Creates directory for downloads, and downloads node | |
cd ~/ && mkdir temp && cd temp; |
#!/bin/bash | |
# droid | |
rm -rf ~/.gradle | |
rm -rf ~/.m2 | |
rm -rf ~/.android/cache | |
# ios | |
rm -rf ~/Library/Developer/Xcode/DerivedData/* | |
rm -rf ~/Library/Caches/org.swift.swiftpm |
import com.cloudbees.plugins.credentials.Credentials | |
Set<Credentials> allCredentials = new HashSet<Credentials>(); | |
def creds = com.cloudbees.plugins.credentials.CredentialsProvider.lookupCredentials( | |
com.cloudbees.plugins.credentials.Credentials.class | |
); |
// This script should be placed inside your pipeline script | |
def getTriggeringUser() { | |
def user = 'UNKNOWN' // Default value if user cannot be determined | |
// Check each cause for the build to find a user cause | |
currentBuild.rawBuild.getCauses().each { cause -> | |
if (cause instanceof hudson.model.Cause$UserIdCause) { | |
user = cause.getUserId() | |
} else if (cause instanceof org.jenkinsci.plugins.workflow.support.steps.build.BuildUpstreamCause) { | |
// If the build was triggered upstream, recursively check upstream builds |
import androidx.lifecycle.DefaultLifecycleObserver | |
import androidx.lifecycle.Lifecycle | |
import androidx.lifecycle.LifecycleOwner | |
import de.check24.profis.partner.shared.logger.ProfiLogger | |
import kotlinx.coroutines.ExperimentalCoroutinesApi | |
import kotlinx.coroutines.suspendCancellableCoroutine | |
@OptIn(ExperimentalCoroutinesApi::class) | |
suspend fun Lifecycle.waitForLifecycleEvent(event: Lifecycle.Event) = suspendCancellableCoroutine { continuation -> |
import Foundation | |
public extension Thread { | |
public static var callStack : [String] { | |
Thread | |
.callStackSymbols // drop Thread.callStack | |
.dropFirst( | |
).map { line in | |
let parts = line.split(separator:" ") |
Add ed25519 ssh key to keychain with passphrase
ssh-add --apple-use-keychain ~/.ssh/id_ed25519
Modify ~/.ssh/config
Host *
import Foundation | |
class Queue { | |
private var counter = 0.0 | |
private let queue = DispatchQueue(label: "counter") | |
func increment() { | |
queue.sync { | |
counter += 1.2 |
/** | |
* A modifier that clips the composable content using a circular reveal animation. The circle will | |
* expand or shrink whenever [isVisible] changes. | |
* | |
* For more control over the transition, consider using this method's variant which allows passing | |
* a [State] object to control the progress of the reveal animation. | |
* | |
* By default, the circle is centered in the content. However, custom positions can be specified using |