Skip to content

Instantly share code, notes, and snippets.

View marcoblos's full-sized avatar

Marco Antonio Blos de Souza marcoblos

  • Vancouver, BC
View GitHub Profile
@marcoblos
marcoblos / disable-or-enable-apache-from-whm-cpnale-instalations.md
Last active December 25, 2022 10:01
Step by step disable Apache in WHM/cPanel and avoid it to restart
@marcoblos
marcoblos / login-without-password-and-without-copy-key-to-server.md
Created May 26, 2019 05:42
Step by step: create a pem file to login without password and without copy local keys to remote server. SSH authentication like AWS EC2.
  1. Login with account user (not root)
mkdir pem
cd pem
ssh-keygen -b 2048 -f identity -t rsa
  1. Copy public key contents to authorized_keys
@marcoblos
marcoblos / java - spring - rest controller - upload excel file
Created February 27, 2019 04:54
Simple excel file reader with spring rest controller
private String getContent(Cell cell) {
switch (cell.getCellTypeEnum()) {
case STRING:
return cell.getRichStringCellValue().getString();
case NUMERIC:
if (DateUtil.isCellDateFormatted(cell)) {
return cell.getDateCellValue() + "";
} else {
return cell.getNumericCellValue() + "";
}

sudo gitlab-ctl restart

systemctl restart gitlab-runsvdir.service

@marcoblos
marcoblos / restartWifiUbuntu.md
Created March 14, 2017 12:25
Fix Ubuntu WiFi out of range

When I updated and restarted my linux distro, wifi showed "out of range", to solve ran:

sudo service network-manager restart