Install the OpenSSL on Debian based systems
sudo apt-get install openssl| /* | |
| * Copyright 2025 Kyriakos Georgiopoulos | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| #!/bin/bash | |
| # A bash script for installing Python 3.10.2 on your Raspberry Pi. | |
| # (c) 2022 Valentin B. / Midian T. E. | |
| # | |
| # Open your terminal and type the following command: | |
| # sudo wget https://gist.githubusercontent.com/realSnosh/cfe29370d2205bd1ad296e7bc7c9b9ea/raw/raspberry_python.sh && chmod +x raspberry_python.sh && ./raspberry_python.sh | |
| sudo apt-get update -y | |
| sudo apt-get upgrade |
| #!/usr/bin/env bash | |
| # This script is meant to build and compile every protocolbuffer for each | |
| # service declared in this repository (as defined by sub-directories). | |
| # It compiles using docker containers based on Namely's protoc image | |
| # seen here: https://github.com/namely/docker-protoc | |
| set -e | |
| REPOPATH=${REPOPATH-/opt/protolangs} | |
| CURRENT_BRANCH=${CIRCLE_BRANCH-"branch-not-available"} |
| //place this content in your buildSrc/build.gradle file | |
| //Then apply your plugin to its own build in build.gradle | |
| import org.codehaus.groovy.control.CompilerConfiguration | |
| apply plugin: 'groovy' | |
| repositories { | |
| jcenter() | |
| } |
| def generateJavadocJar = project.task("generateJavadocJars"){ | |
| description "Generate all Javadoc Jars of all Variants" | |
| group 'jar' | |
| } | |
| def generateJavadoc = project.task("generateJavadocs"){ | |
| description "Generate all Javadoc of all Variants" | |
| group 'jar' | |
| } |
| apply from: "$rootDir/utils.gradle" | |
| android { | |
| defaultConfig { | |
| buildConfigField 'String', 'SECRET_KEY', toJavaCodeString(SECRET_KEY) | |
| } | |
| } |
| /* | |
| * The MIT License (MIT) | |
| * | |
| * Copyright (c) 2015 - Nathan Barraille | |
| * | |
| * 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 |
| package io.github.hidroh.android.widget; | |
| import android.content.Context; | |
| import android.text.Editable; | |
| import android.text.TextWatcher; | |
| import android.util.AttributeSet; | |
| import android.view.View; | |
| import android.widget.EditText; | |
| import org.apache.commons.lang3.StringUtils; |
| ### Add trailing slash if needed | |
| STR="/i/am/a/path" | |
| length=${#STR} | |
| last_char=${STR:length-1:1} | |
| [[ $last_char != "/" ]] && STR="$STR/"; : | |
| echo "$STR" # => /i/am/a/path/ |