This file contains hidden or 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
cek ram dan storage nya, | |
jika kurang lakukan maintenance | |
./rails-application/fanatik.id/releases/20181107075331/bin/eye l ./sources/fanatik_deploy_test/shared/config/eye/production.eye |
This file contains hidden or 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
https://techarise.com/import-excel-file-mysql-codeigniter/ |
This file contains hidden or 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
ticket_numbers = [] | |
sas = Schedule.where("DATE(work_date) >= DATE(?)", '2019-04-01').pluck(:id) | |
sas.each do |id| | |
sa_op = ScheduleOperator.where(schedule_id: id, status: 'Created').pluck(:operator_id) | |
duplicate = sa_op.select{ |e| sa_op.count(e) > 1 }.uniq | |
duplicate.each do |op_id| | |
so = ScheduleOperator.where(schedule_id: id, operator_id: op_id).first | |
ticket_numbers << so.ticket_number | |
so.delete | |
end |
This file contains hidden or 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
[769, 3,7,757,758,759,760,761,762,9,10,11,12,13,14,15,16,17,18,19,20,23,24,754,26,29,785,770,780,776,777,775,773,772,768,781,782,779,778,781,784,786,771,767,787,783,788].each do |id| | |
a = Work::FormItemValue.where(schedule_id: 65900, operator_id: 30, work_form_group_item_id: id).first.dup | |
a.operator_id = 28 | |
a.save | |
end |
This file contains hidden or 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
Ada keluhan dengan Produk Al Qolam - Tigaraksa, Bunda? | |
Ikuti langkah pengajuan servis berikut ini: | |
📝 Langkah 1 📝 | |
Ajukan Servis secara mandiri melalui website http://bit.ly/ServiceAql atau http://care.alqolam.com/service/create | |
Siapkan data berikut ini (agar saat mengisi form di website tidak terkendala karena kurang lengkapnya data): | |
Nama : | |
No. HP Aktif (yang bisa terima SMS) : | |
Email Aktif : |
This file contains hidden or 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
1. Format Gaji samakan dengan yang di kasih kang aka (done) | |
2. Format Pegawai samakan dengan yang di kasih kang aka (done) | |
3. Format Makan samakan dengan yang di kasih kang aka (done) | |
4. Format Lembur samakan dengan yang di kasih kang aka (done) | |
5. Table Grading (kelas Jabatan) di ambil dari table kelas jabatan yang ada di tukin. pelengkap data pegawai. | |
6. Status Pindah Isinya : | |
- NULL -> bulan nya 1-12 (hitung Jumlah Bulan nya 12-1+1) | |
- Pegawai Baru -> M - 12 (hitung Jumlah Bulan nya 12-M+1) | |
- Pegawai Pindahan -> M - 12 (hitung Jumlah Bulan nya 12-M+1) | |
- Pegawai Dipindahkan -> m - S (hitung Jumlah Bulan nya S-1+1) |
This file contains hidden or 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
============= Download All =================== | |
s = SidekiqLog.find(8276) | |
input_params = s.input_params | |
as = Rack::Utils.parse_query(input_params) | |
as["start_on"] = as["start_on"].first | |
as["end_on"] = as["end_on"].first | |
user = s.user | |
DownloadReportWorker.delay.perform!(as,user.id,s.job_code) | |
============= Download Preventive Macro =================== |
This file contains hidden or 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
1. rm /usr/local/var/postgres/postmaster.pid | |
2. brew services stop postgresql | |
3. brew services start postgresql |
This file contains hidden or 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
server { | |
listen 80; | |
# SSL configuration | |
# | |
# listen 443 ssl default_server; | |
# listen [::]:443 ssl default_server; | |
# | |
# Note: You should disable gzip for SSL traffic. | |
# See: https://bugs.debian.org/773332 |
This file contains hidden or 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
mkdir name_app | |
cd name_app | |
mkdir releases repo shared | |
cd shared | |
mkdir assets bin bundle cached config log public tmp | |
cd tmp | |
mkdir cache pids sessions sockets | |
cd config | |
vim application.yml | |
vim database.yml |