create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
package com.example.app | |
import android.content.Context | |
import androidx.annotation.StringRes | |
sealed class UiText { | |
data class DynamicString(val value: String) : UiText() | |
data class StringResource( |
To start an application minimized (like the Todoist snap as in below), create a script similar to the following.
You can add the script to autostart on login in your DE.
#!/bin/bash
# Launch Todoist as a background process
/var/lib/snapd/desktop/applications/todoist_todoist.desktop&
# Loop, waiting for the window to initialise
i=0
while [ $i -lt 20 ]
/* | |
* Copyright (C) 2018 The Android Open Source Project | |
* | |
* 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 |
This is an example of using Filterable with a SearchView to filter the data of a ListView adapter.
package com.example.network; | |
import androidx.annotation.NonNull; | |
import java.io.IOException; | |
import okhttp3.HttpUrl; | |
import okhttp3.Interceptor; | |
import okhttp3.Request; | |
import okhttp3.Response; |
package com.example.util; | |
import android.text.TextUtils; | |
import android.util.Patterns; | |
import androidx.annotation.NonNull; | |
import java.util.Objects; | |
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; |
package com.example; | |
import android.content.Context; | |
import android.content.res.TypedArray; | |
import android.graphics.Canvas; | |
import android.graphics.Path; | |
import android.graphics.RectF; | |
import android.util.AttributeSet; | |
import android.widget.FrameLayout; |
#!/bin/sh | |
# A shell script to resize icon images and generate the alternative drawables with the proper screen pixel densities (dip) for Android. | |
# The passed icon image would be the xxxhdpi drawable & the other drawables (xxhdpi, xhdpi, hdpi & mdpi) would be scaled down from that. | |
# How to use: | |
# ./drawablegen.sh <icon image file relative path> | |
# Example: | |
# ./drawablegen.sh my_image.png | |
# This will create all the drawable folders, if not has already, in a res folder inside the current directory (as returned by pwd). | |
# Use only with PNG images. | |
# Requires ImageMagick to be installed & added to the path environment variable. Install with: sudo apt install imagemagick |
Replace the file ara
in this gist with the one at /usr/share/X11/xkb/symbols/ara
.
Or simply run $ sudo cp ara /usr/share/X11/xkb/symbols/ara
Fix source: https://forum.manjaro.org/t/alt-shift-is-not-working-in-arabic-keyboard-layout/41743/23