Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Arnau Mora ArnyminerZ

🏠
Working from home
View GitHub Profile
@ArnyminerZ
ArnyminerZ / DatePicker.kt
Last active Apr 18, 2022
Date picker for Jetpack Compose - Material Design 3
View DatePicker.kt
import android.text.format.DateFormat
import android.view.ContextThemeWrapper
import android.widget.CalendarView
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.defaultMinSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
@ArnyminerZ
ArnyminerZ / MapLifecycle.kt
Created Apr 1, 2022
osmdroid approach with Jetpack Compose.
View MapLifecycle.kt
import androidx.compose.runtime.Composable
import androidx.compose.runtime.DisposableEffect
import androidx.compose.runtime.remember
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.platform.LocalLifecycleOwner
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleEventObserver
import org.osmdroid.views.MapView
@Composable
@ArnyminerZ
ArnyminerZ / qumagie.md
Last active May 17, 2022
A gist that expands Nginx Proxy Manager to redirect a custom subdomain to a QuMagie instance, without giving public access to QTS. File in markdown for syntax highlighting.
View qumagie.md

qumagie.conf:

# ------------------------------------------------------------
# qumagie.mydomain.com
# ------------------------------------------------------------


server {
  set $forward_scheme http;
 set $server "192.168.1.20";
@ArnyminerZ
ArnyminerZ / README.md
Created May 27, 2022
QuMagie Reverse proxy
View README.md

The system is running Nginx Proxy Manager, but the file must be edited manually at /data/nginx/proxy_host. Note that this reverse proxy is made to be working with a subdomain, in this case qumagie.***.com.

@ArnyminerZ
ArnyminerZ / Usage.md
Last active May 30, 2022
Gives statistics on marks from Intranet of UPV.
View Usage.md
  1. For using access the Intranet page where the table of marks is located at.

  2. Right click the table, and select "Inspect element".

  3. Find the table where all the marks are located at, for example: image

  4. Copy the ID of the table, for example t5711998.

  5. Copy and paste the script on the console of your browser, and replace <id> by the id you found before.

  6. Press enter, and the stats will be displayed.