Skip to content

Instantly share code, notes, and snippets.

View djoudi's full-sized avatar
🏠
Working from home

Abdelouahab Djoudi djoudi

🏠
Working from home
View GitHub Profile
@anozimada
anozimada / AskInputProcess.java
Created April 7, 2023 13:37
Just testing Ask for Input in process
package org.idempiere.process;
import java.util.ArrayList;
import java.util.List;
import org.adempiere.util.Callback;
import org.adempiere.webui.apps.AEnv;
import org.adempiere.webui.window.FDialog;
import org.compiere.model.MColumn;
import org.compiere.model.MLookup;
import android.app.LocaleManager
import android.content.Context
import android.os.Build
import android.os.LocaleList
import androidx.appcompat.app.AppCompatDelegate
import androidx.core.os.LocaleListCompat
import java.util.Locale
/// Change Langauage Extenstion
nano /etc/systemd/system/idempiere.service
-----------------------------------
[Unit]
Description=Description for sample script goes here
After=local-fs.target
[Service]
==> Install app
adb install Myapp.apk
adb -d install Myapp.apk // -d : directs command to the connected USB device
adb -e install Myapp.apk // -e : directs command to the running emulator
adb -s install Myapp.apk // -s : serial number
adb -p install Myapp.apk // -p : product name or path
----------------------------------------------------------------------------------------------------------
==> Uninstall app
==> Install app
adb install Myapp.apk
adb -d install Myapp.apk //-d (directs command to the connected USB device.)
adb -e install Myapp.apk //-e (directs command to the running emulator.)
adb -s install Myapp.apk //-s<serial number>
adb -p install Myapp.apk //-p <product name or path>
----------------------------------------------------------------------------------------------------------
==> Uninstall app
@r0lodex
r0lodex / metabase-setup.md
Last active July 23, 2024 08:41
Metabase Setup

Installing and Setting Up Metabase with Postgres

This guide is written for installation of Metabase on Ubuntu 18.04. Instead of using H2 as the application database, we will be using Postgres. You can opt to use MySQL as well. Please follow the steps below:

  • Update and install Java with proper configuration
sudo apt-get update
@ciamarro
ciamarro / Kernel.php
Last active April 14, 2022 16:47
Maintain localization / locale when using Laravel Livewire
<?php
namespace App\Http;
use Illuminate\Foundation\Http\Kernel as HttpKernel;
class Kernel extends HttpKernel
{
//----
/**
* Set prices and image configuration
*
* @param Varien_Event_Observer $observer
*/
public function salesQuoteCollectTotalsBefore(Varien_Event_Observer $observer)
{
/* @var $quote Mage_Sales_Model_Quote */
$quote = $observer->getQuote();
foreach ($quote->getAllItems() as $quoteItem) {
@sarthaksavvy
sarthaksavvy / cloudSettings
Last active June 25, 2024 14:23
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-09-04T18:49:47.910Z","extensionVersion":"v3.4.3"}
@hatamiarash7
hatamiarash7 / commands.md
Last active June 9, 2022 03:23
CentOS + Apache + Django + WSGI + CWP + Python3.6
  • yum install python36u python36u-devel python36u-mod_wsgi
  • alias python='/usr/bin/python3.6'
  • curl -O https://bootstrap.pypa.io/get-pip.py
  • python get-pip.py
  • python -m pip install django mysqlclient
  • cp /etc/httpd/modules/mod_wsgi_python3.6.so /usr/local/apache/modules
  • create/clone/move project to another location ( not /home/user/public_html ) because there is not any access to top level directories
  • config apache
  • make & config database ( project/settings.py )
  • convert charset ALTER TABLE table CONVERT TO CHARACTER SET utf8;