Skip to content

Instantly share code, notes, and snippets.

View nimdasx's full-sized avatar
🤧
I may be slow to respond.

nimdasx

🤧
I may be slow to respond.
View GitHub Profile
@nimdasx
nimdasx / downgrade phalcon
Created January 14, 2020 06:27
downgrade phalcon
sudo apt list -a php7.2-phalcon
sudo apt install php7.2-phalcon=3.4.5-1+php7.2
sudo apt-mark hold php7.2-phalcon
@nimdasx
nimdasx / install odoo 12 di ubuntu dan centos
Created January 14, 2020 06:29
install odoo 12 di ubuntu dan centos
--------- ubuntu 18 bionic -----------------
libxml2-dev libldap2-dev libsasl2-dev libssl-dev libxslt1-dev
https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb
./odoo-bin -c ../odoo12.cfg
./odoo-bin -r aa -w bb --db_host=192.168.0.xx
------------ centos 7 pake virtualenv --------------
@nimdasx
nimdasx / kill-query-macet.sql
Last active January 14, 2020 08:56
kill query mysql macet
SELECT
GROUP_CONCAT(CONCAT('KILL ', id, ';') SEPARATOR ' ') KillQuery
FROM information_schema.processlist
WHERE user <> 'root'
AND time >= 100;
@nimdasx
nimdasx / upload-file-phalcon.php
Last active January 14, 2020 09:53
cara upload file di phalcon
<?php
$files = $this->request->getUploadedFiles("FILE_INOVASI");
if ($this->request->hasFiles()) {
foreach ($files as $file)
{
$new_file_final = $r->TAHUN.'-'.$r->SKPD_ID.'-'.$r->KEGIATAN_ID.'-'.$file->getName();
$file->moveTo(
'dokumen-inovasi/'.$new_file_final
);
@nimdasx
nimdasx / gradient.css
Created January 14, 2020 09:55
gradient background tanpa gambar
background-image: -webkit-radial-gradient(circle,#3b3a53,#1b151f);
background-image: radial-gradient(circle,#3b3a53,#1b151f);
@nimdasx
nimdasx / cara nyari password wifi windows 10.cmd
Created January 23, 2020 09:19
cara nyari password wifi windows 10
netsh wlan show profiles
netsh wlan show profile name=WifiConnectionName key=clear
@nimdasx
nimdasx / nambahi nol.php
Created January 29, 2020 03:47
nambahi nol
<?
mysql_connect('localhost','root','');
mysql_select_db('xxx');
$query = mysql_query("select * from lk_isi");
while( $row = mysql_fetch_assoc($query) ){
$bener = array();
$tmp = explode('.',$row['HIRARKI']);
@nimdasx
nimdasx / mysqldump-backup.sh
Last active February 9, 2020 13:59
mysqldump backup
mysqldump -R simpeg | gzip > simpeg-$(date +"%Y-%m-%d_%H-%M-%S").sql.gz
@nimdasx
nimdasx / .my.cnf
Created February 12, 2020 05:23
Simpan User Password Mysql di home dir
[mysqldump]
user=mysqluser
password=secret
@nimdasx
nimdasx / vlc-shorcut.lnk
Created February 18, 2020 12:25
start vlc minimize play otomatis folder musik
"C:\Program Files\VideoLAN\VLC\vlc.exe" --qt-start-minimized "D:\Music"