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
{ | |
"color_scheme": "Packages/User/SublimeLinter/Oceanic Next Origin Markdown (SL).tmTheme", | |
"font_size": 14, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"theme": "Agila Origin.sublime-theme", | |
"theme_agila_sidebar_font_big": true, | |
"theme_agila_sidebar_small": true, |
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
Langkah - langkah : | |
1. Beli Domain | |
2. Install WP + Plugin : jetpack, yoast, wp super cache akismet | |
3. Tentukan niche atau random | |
4. Riset keyword : dengan ekstensi moz resit da, jika diatas 20 jangan diambil | |
5. SEO On Page : keyword ada title, | |
6. SEO Off Page : Backlink |
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
name | gender | address | position | |
---|---|---|---|---|
Andi | m | Jl. Damai No. 6 Samarinda | Backend Developer | |
Ari | m | Baki Sukoharjo | Android Developer | |
Usman | m | Sukorame Mangunan Bantul | Lead Developer | |
Ilham | m | Tulung Boyolali | Frontend Developer | |
Ridho | m | Jambi | Android Developer | |
Nita | f | Jl. Pemuda No. 10 | UI Designer | |
Hani | f | Jl. Bhayangkara No. 5 | QA Tester | |
Indah | f | Jl. Veteran No. 20 | Accounting | |
Nanda | f | Jl. Goldenmas No. 99 | Frontend Developer |
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
DB_HOST=localhost | |
DB_NAME=database | |
DB_USER=root | |
DB_PASS=root |
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
require('dotenv').config() | |
const knex = require('knex')({ | |
client: 'mysql', | |
connection: { | |
host: process.env.DB_HOST, | |
user: process.env.DB_USER, | |
password: process.env.DB_PASS, | |
database: process.env.DB_NAME | |
} | |
}) |
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
const csv = require('csvjson') | |
const knex = require('./knex') | |
const fs = require('fs') | |
const file = fs.readFileSync('data.csv', 'utf8') | |
const dataObj = csv.toObject(file) | |
knex.insert(dataObj) | |
.into('employees') | |
.then(() => { |
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
const amqp = require('amqplib') // Import library amqp | |
amqp.connect('amqp://localhost') | |
.then(conn => { | |
return conn.createChannel().then(ch => { | |
const q = 'hello' // Nama antrian adalah 'hello' | |
const msg = 'Hello world!' // Isi pesan yang dikirim ke RabbitMQ | |
const ok = ch.assertQueue(q, { durable: false }) // Membuat antrian 'hello' | |
return ok.then(() => { |
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
const amqp = require('amqplib') // Import library amqp | |
amqp.connect('amqp://localhost') | |
.then(conn=> { | |
return conn.createChannel().then(ch => { | |
const ok = ch.assertQueue('hello', { durable: false }) // Deklarasi antrian | |
ok.then(() => { | |
/* Menangkap pesan yang dikirimkan oleh RabbitMQ */ | |
return ch.consume('hello', msg => console.log('- Received', msg.content.toString()), { noAck: true }) | |
}) |
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
const amqp = require('amqplib/callback_api') // import library amqplib | |
amqp.connect('amqp://localhost', (err, conn) => { | |
conn.createChannel((err, ch) => { | |
const q = 'task_queue' // Nama antrian adalah 'task_queue' | |
const msg = process.argv.slice(2).join(' ') || 'Hello World!' | |
ch.assertQueue(q, { durable: true }) // Membuat antrian 'task_queue' | |
ch.sendToQueue(q, new Buffer(msg), { persistent: true }) // Mengirim pesan tugas ke antrian | |
console.log(`[x] Sent '%s'`, msg) |
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
const amqp = require('amqplib/callback_api') // Import library amqplib | |
amqp.connect('amqp://localhost', (err, conn) => { | |
conn.createChannel((err, ch) => { | |
const q = 'task_queue' // Nama antrian adalah 'task_queue' | |
ch.assertQueue(q, { durable: true }) // Menyatakan antriannya adalah 'task_queue' | |
ch.prefetch(1) | |
console.log(`[*] Waiting for messages in %s. To exit press CTRL+C`, q) | |
/* Menangkap pesan yang dikirimkan RabbitMQ dari antrian */ |
OlderNewer