[Unit]
Description=Pentho Bi-server
After=syslog.target
After=network.target
[Service]
Type=forking
User=<username>
Group=<group>
Environment=JAVA_HOME
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select | |
CASE | |
WHEN '432432' in (select unnest(string_to_array( '432432,545345' , ','))) THEN 'yes' | |
else 'nada' | |
END | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
case $1 in | |
on) | |
sudo modprobe psmouse | |
;; | |
off) | |
sudo modprobe -r psmouse | |
;; | |
*) | |
echo "require params" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# PENTAHO ENV EXAMPLE IN ~/.bashrc | |
export PENTAHO_JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/jre | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select * from fact_acct fa where ad_table_id = 473; | |
-- 473 | |
delete from fact_acct where ad_table_id = 473 ; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# temporarily disable SELinux run | |
sudo setenforce 0 | |
# disabled SELinux | |
sudo /etc/selinux/config | |
# Add file /etc/selinux/config | |
SELINUX=disabled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nano /etc/systemd/system/idempiere.service | |
----------------------------------- | |
[Unit] | |
Description=Description for sample script goes here | |
After=local-fs.target | |
[Service] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function fromBase64ToImg($imgBase64 , $dir , $name_file ){ | |
$pattern = '/data:image\/(.+);base64,(.*)/'; | |
preg_match($pattern, $imgBase64, $matches); | |
$imageExtension = $matches[1]; | |
$encodedImageData = $matches[2]; |
NewerOlder