Skip to content

Instantly share code, notes, and snippets.

View DjakaTechnology's full-sized avatar
🏠

Djaka Pradana Jaya Priambudi DjakaTechnology

🏠
View GitHub Profile
@DjakaTechnology
DjakaTechnology / re_products.json
Last active September 10, 2024 19:35
red eagle products
[
{
"name": "SECURITY SECRET DOORS",
"image": "https://xforgeassets001.xboxlive.com/pf-namespace-b63a0803d3653643/eeae5b31-09f2-4b8f-ad8a-a41c8e448c36/SecuritySecretDoors_Thumbnail_0.jpg",
"type": "addon",
"link": "https://www.minecraft.net/en-us/marketplace/pdp?id=f06479e8-6c94-45e1-9067-fac72e911513",
"year": 2024
},
{
"name": "COMBINE ORES Add-On",
{
"version": "1.5.14",
"notes": "See the assets to download this version and install.",
"pub_date": "2024-10-27T14:26:45.029Z",
"platforms": {
"darwin-x86_64": {
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVUa0kvZVhUczlmRmlaaWpkZXZmZys4b3AvWXRQdjJTLzhIckVDWDErMkxLZnRWSzljUE9OZmx5R2oraTFLaUY4UXIyYk9rbzNnN1d6NXpBeDdGbTBod0g1TUxpRTZiOUFJPQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNzMwMDM3ODE2CWZpbGU6UmFpdGEuYXBwLnRhci5negpjWnlmVFpzc001b0YwamFNZTZvaTRXM3NodVJWTVVlSmhYaUxKR25vOWVsNEtOQ2p2S1VueWNvY3ZvR0c3QzlOZUNCN2NIVlhpSTJCL3JuMjRab0NCdz09Cg==",
"url": "https://pub-5abc13a3642144e3bbe06de52f886615.r2.dev/Raita_x64.app.tar.gz"
},
"windows-x86_64": {
@DjakaTechnology
DjakaTechnology / raita_wordpress_export.yaml
Last active April 19, 2023 13:45
Raita WordPress Export Database
---
# Templates
metaDescription: |-
<wp:postmeta>
<wp:meta_key><![CDATA[_yoast_wpseo_metadesc]]></wp:meta_key>
<wp:meta_value><![CDATA[{value}]]></wp:meta_value>
</wp:postmeta>
<wp:postmeta>
<wp:meta_key><![CDATA[rank_math_description]]></wp:meta_key>
<wp:meta_value><![CDATA[{value}]]></wp:meta_value>
domName=insurance
username=administrator
pass=administrator
echo "Creating database..."
echo "DROP DATABASE IF EXISTS wordpress_$domName;"
mysql -e "DROP DATABASE IF EXISTS wordpress_$domName;"
echo "CREATE DATABASE wordpress_$domName;"
mysql -e "CREATE DATABASE wordpress_$domName;"
dbUserName="${username}_${domName}"
echo "This script will copy the WordPress installation into"
echo "/var/www/yourNewSubDomain/html"
echo "--------------------------------------------------"
echo "This setup requires a domain name. If you do not have one yet, you may"
echo "cancel this setup, press Ctrl+C. This script will run again on your next login"
echo "--------------------------------------------------"
echo "Enter the domain name for your new WordPress site."
echo "(ex. example.org or test.example.org) do not include www or http/s"
echo "--------------------------------------------------"
@DjakaTechnology
DjakaTechnology / migrate_to_moshi.main.kts
Last active August 1, 2022 06:14
This will migrate file from gson or regular POJO to moshi
#!/usr/bin/env kotlin
import java.io.File
import java.nio.file.Files
import java.nio.file.Path
import java.nio.file.Paths
/**
* How to use:
* Run script
<com.google.android.material.button.MaterialButton
android:id="@+id/button_reset"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
style="@style/Widget.MaterialComponents.Button.OutlinedButton"
android:text="Reset" />
binding.buttonReset.setOnClickListener {
binding.name = null
}
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="16dp"
android:text="@{name}"
visibilityGone="@{name == null}"/>
object ViewBindingAdapter {
@BindingAdapter("visibilityGone")
@JvmStatic
fun visibilityGone(view: View, isShouldGone: Boolean) {
if (isShouldGone) {
view.visibility = View.GONE
} else {
view.visibility = View.VISIBLE
}
}