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
Setting Server | |
sudo apt-get update (first Time) | |
1. create user | |
useradd -m -d /home/new_user -s /bin/bash -g staff new_user | |
passwd new_user | |
sudo usermod -aG sudo new_user | |
1.1 Create User | |
- create user (if needed) | |
$ sudo adduser newuser |
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
Error: duplicate key value violates unique constraint: | |
-- Login to psql and run the following | |
-- What is the result? | |
SELECT MAX(id) FROM your_table; | |
-- Then run... | |
-- This should be higher than the last result. | |
SELECT nextval('your_table_id_seq'); | |
-- If it's not higher... run this set the sequence last to your highest pid it. |
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
setting laptop asus awal | |
1. enable wifi | |
echo "blacklist acer_wmi" | sudo tee -a /etc/modprobe.d/blacklist.conf | |
lalu restart |
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
upstream holdings { | |
server unix:/root/holdings/tmp/sockets/unicorn.sock fail_timeout=0; | |
} | |
server { | |
listen 80; | |
server_name holdings-staging.tk www.holdings-staging.tk *.holdings-staging.tk; | |
root /root/holdings/public; | |
try_files $uri /system/maintenance.html @holdings; |
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 | |
RBENV_ROOT=/home/ubuntu/.rbenv/ | |
export RBENV_ROOT | |
export PATH="$RBENV_ROOT/bin:$PATH" | |
echo " [+] Activate RBENV" | |
eval "$(rbenv init -)" | |
cd /home/ubuntu/ciptadana_asset_management/current | |
echo " [+] Restart unicorn ciptadana asset management" | |
exec `bundle exec unicorn -E staging -c /home/ubuntu/ciptadana_asset_management/current/config/unicorn.rb &` | |
echo " [+] Done !!" |
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
Web: | |
IPA: Ada hidden di work type dan work form | |
IPA: di show schedule form di tampilkan semua berdasarkan work type yang dipilih | |
Mandau: di show schedule form di tampilkan hanya ditampilkan work form yang dipilih | |
IPA: Ada Assign Time di corrective index | |
IPA: Ada Periode di Schedule & Report | |
IPA: Ada Form Hand Over dan New Site | |
API: | |
IPA: Ada FO | |
IPA: Menggunakan Site_id_customer (for create corrective) |
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
1. menemukan mesjid berdasarkan lokasi dia berdiri | |
2. mencari mesjid berdasarkan lokasi yang dia search | |
3. integrate with google map api pastinya | |
4. base app and web | |
5. lihat list jadwal kajian di mesjid2 | |
6. membuat user menjadi finder-mesjid yang bisa input mesjid dan marbot mesjid yang bisa input kajian | |
7. user dengan premium feature (ini yang komersil tadi) | |
8. list iklan2 islami (lewat website bila pengen masang iklan islami) | |
9. melihat list ustadz, beserta informasinya berdasarkan lokasi (seperti mesjid diatas) | |
10. memesan jasa ustadz sesuai keinginanya lewat aplikasi |
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
1. undefined method `result' for #<Sidekiq::Shutdown: Sidekiq::Shutdown> (sidekiq edit form) | |
2. undefined method `error_field' for nil:NilClass in home#index (sepertinya saat ambil statistic) | |
3. 1-2 apa ada masalah database IPA ya? |
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
FTP | |
sudo apt-get update | |
sudo apt-get install vsftpd | |
systemctl start vsftpd | |
systemctl enable vsftpd | |
sudo vim /etc/vsftpd.conf | |
add vcode in | |
anonymous_enable=NO # disable anonymous login | |
local_enable=YES # permit local logins | |
write_enable=YES # enable FTP commands which change the filesystem |
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
On Folder For App do: | |
1. npm init -y | |
2. npm install --save express body-parser morgan sequelize pg pg-hstore passport-local passport express-session express-handlebars express dotenv bcrypt-nodejs | |
3. touch app.js | |
4. insert code in app.js | |
5. touch bin/www | |
6. insert code | |
7. npm i -D nodemon | |
8. npm install -g sequelize-cli | |
9. sequelize init |
OlderNewer