Even the faintest ink beats the strongest memory.

  • How to Automatically Enable SSH Service On Centos 7 After Reboot

    I thought it was a no-brainer that the SSH service shall start autmoatically be default one the box is rebooted. However it fails to happen on my Centos 7. Hence here is the solution to add the server “sshd” explicitly into the automatic start list. sudo systemctl enable sshd Credits to orignal soluiton article here.…

  • Resolve “500 Illegal PORT command” Error When Using FTP Command from Linux

    Error screenshot: Root cause is that the ftp command line in Liux uses active-mode ftp by default. You’ll need to manually set it to passive mode by typing “pass” command. Solution screenshot, kuto’s to this article on serverfault.com.

  • How to Create a BOOTABLE Usb Drive from an UNBOOTABLE ISO

    Yesterday I was salvaging a 17 year old ThinkPad T43 laptop and trying to get 32-bit Centos 7 installed on it. However, the official installation media ISO is not bootable. Then I found Rufus which is a lifesaver and successfully flashed the 7.7 GB ISO into a bootable USB stick and now my dinosaur computer…

  • How to Disable root Login on Centos 8?

    Enabling a root access through SSH on open internet is surely a security vulnerability. Hence, it is best to disable root access from the get-go. All you have to do is to edit the SSH service’s config file /et/ssh/sshd_config Use vi or nano or your favorite text editor and find below text: #PermitRootLogin no and…

  • 微信公众号开发踩坑记录No.1

    微信公众号开发测试环境sandbox URL: https://mp.weixin.qq.com/debug/cgi-bin/sandbox?t=sandbox/login 上面这个登录界面只要打开后用微信扫码登录即可快速创建一个测试用的公众号 接口配置信息URL+Token大坑,微信消息接口测试php源码切记要用GB2312的格式 老版的wx_sample.php源码在这里:https://blog.csdn.net/u013289188/article/details/29379555 另外responseMsg()方法里面需要修改掉$postStr的赋值方式 //$postStr = $GLOBALS[“HTTP_RAW_POST_DATA”]; $postStr = file_get_contents(“php://input”); 在win10 command line里面git push缓存remote git repository的用户名密码 git config –global credential.helper store

  • Kali Linux Repository Mirrors for China

    Due to known reasons, it is much better to have regionally located repository sources to be added in your source list file “/etc/apt/sources.list”. 阿里云AliCloud deb http://mirrors.aliyun.com/kali kali-rolling main non-free contribdeb-src http://mirrors.aliyun.com/kali kali-rolling main non-free contribdeb http://mirrors.aliyun.com/kali-security kali-rolling/updates main contrib non-free 中科大USTC deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contribdeb-src http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib 清华大学Tsing Hua University…

  • Incompatible ASPproxy.dll (Astrill) – How to Fix Error Encountered When Runnning Steam While Astrill VPN is Connected

    Below fix works for me. Original link from Steam community forum at here.

  • Use Command Line to View Saved Wi-Fi Passwords on Windows 10

    Above commands work in cmd or powershell on a Win10 box, remember you’ll have to run it as an administrator.

  • Make “Close Laptop Lid” Really “Do Nothing” in Kali Linux

    I struggled with the GUI’s power settings as the “do nothing” seems not working. Then I went on to meddle with the /etc/systemd/logind.conf file. Once you’ve VI’ed it, please uncomment #HandleLidSwitch=suspend and change it to HandleLidSwitch=ignore Hence “before”: # This file is part of systemd. # # systemd is free software; you can redistribute it…

  • 3 Ways to Log In Through Sqlplus as ‘sysdba’

    1.If you are a member of DBA group on the Linux/Unix OS level: sqlplus ‘/ as sysdba’ 2.Or you can first log on as ‘nolog’ sqlplus /nolog And then SQL>connect / as sysdba 3. Directly connect to Oracle instance as sysdba sqlplus ‘sys as sysdba’ You’ll be prompted to type in the password and all will be OK.