For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.
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
| services: | |
| searxng: | |
| container_name: searxng | |
| image: docker.io/searxng/searxng:latest | |
| restart: unless-stopped | |
| ports: | |
| - 8080:8080 | |
| volumes: | |
| - ./searxng:/etc/searxng:rw | |
| environment: |
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
| # Update your package index and install necessary prerequisite packages: | |
| sudo apt-get update | |
| sudo apt-get install ca-certificates curl gnupg lsb-release | |
| # Add Docker's official GPG key and set up the repository: | |
| sudo mkdir -p /etc/apt/keyrings | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg | |
| sudo chmod a+r /etc/apt/keyrings/docker.gpg | |
| echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null |
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
| #Check device's app package + Signature + Domain handler | |
| adb shell dumpsys package d |
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
| #create ssh key with specified location and name | |
| ssh-keygen -t ed25519 -f ~/.ssh/key_name -C "name@example.com" | |
| eval "$(ssh-agent -s)" | |
| open ~/.ssh/config | |
| #in case config file does not exist | |
| touch ~/.ssh/config |
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
| afterEvaluate { | |
| if (project.hasProperty("android.injected.signing.store.file")) { | |
| println "key store path: ${project.property("android.injected.signing.store.file")}" | |
| } | |
| if (project.hasProperty("android.injected.signing.store.password")) { | |
| println "key store password: ${project.property("android.injected.signing.store.password")}" | |
| } | |
| if (project.hasProperty("android.injected.signing.key.alias")) { | |
| println "key alias: ${project.property("android.injected.signing.key.alias")}" | |
| } |
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
| //delegate | |
| class DistanceCalculator() { | |
| fun calculate(vihecle: Vihecle, time: Float): Float { | |
| return vihecle.speed * time | |
| } | |
| } | |
| abstract class Vihecle(open val speed: Float, val model: String) { | |
| //use the delegate instead of override travel function in each subclass | |
| val distanceCalculator = DistanceCalculator() |
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/bash | |
| jarsigner -verbose -sigalg SHA256withRSA -digestalg SHA-256 -storepass abcdxyzt1234 -keystore my-key.keystore app-release.aab alias_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
| cmd /c "jarsigner -verbose -sigalg SHA256withRSA -digestalg SHA-256 -storepass abcdxyzt1234 -keystore my-key.keystore app-release.aab alias_name" |
NewerOlder