dapurhosting.com Blog for Tech

December 1, 2021

Speed Up Sync Raid Disk

Filed under: Uncategorized — dh @ 9:44 am

nano /etc/sysctl.conf

#################NOTE ################ ##

You are limited by CPU and memory too

# ###########################################

dev.raid.speed_limit_min = 50000

## good for 4-5 disks based array ##

dev.raid.speed_limit_max = 2000000

## good for large 6-12 disks based array ###

dev.raid.speed_limit_max = 5000000

https://www.cyberciti.biz/tips/linux-raid-increase-resync-rebuild-speed.html

August 3, 2021

Rule KAM Spamassassin

Filed under: Uncategorized — dh @ 4:27 pm

(more…)

July 14, 2021

Error Log CWP Cent

Filed under: Uncategorized — dh @ 2:51 am

tail /usr/local/cwpsrv/logs/error_log

March 24, 2021

Mengganti template DNS di DirectAdmin

Filed under: Uncategorized — dh @ 3:46 am

(more…)

January 26, 2020

Internet traffic over SSH in Windows

Filed under: Uncategorized — Tags: , — dh @ 12:09 pm

(more…)

November 12, 2019

Disable Contact Form Prestashop

Filed under: Uncategorized — dh @ 3:45 am

(more…)

August 6, 2018

File Count

Filed under: Uncategorized — dh @ 4:53 pm
ls -1 | wc -l

April 10, 2018

Download File dari Google Drive

Filed under: Uncategorized — dh @ 7:37 am

Cara download file dari google drive via ssh

buat file getfile.sh


touch getfile.sh
chmod +x getfile.sh
nano getfile.sh

Copy paste:

#!/bin/bash
fileid="### file id ###"
filename="MyFile.csv"
curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${fileid}" > /dev/null
curl -Lb ./cookie "https://drive.google.com/uc?export=download&confirm=`awk '/download/ {print $NF}' ./cookie`&id=${fileid}" -o ${filename}

Ganti fileid dengan id file google.
Ganti filename dengan nama file asli.

fileid didapat dari share file (klik kanan di file, lalu klik Get shareable link), contoh: https://drive.google.com/open?id=1_naou3PopRVlQt9FZJTCGzRKGp306hs8
1_naou3PopRVlQt9FZJTCGzRKGp306hs8 adalah FILEID

Referensi:

https://gist.github.com/tanaikech/f0f2d122e05bf5f971611258c22c110f

October 26, 2016

Menambah Hardisk

Filed under: Uncategorized — dh @ 7:50 pm

http://www.techotopia.com/index.php/Adding_a_New_Disk_Drive_to_a_CentOS_6_System

June 15, 2016

DNS Lookup

Filed under: Uncategorized — dh @ 12:51 am

http://www.kloth.net/services/dig.php

« Newer PostsOlder Posts »

Powered by WordPress