Wednesday, November 27, 2019

Check inactive wi-fi network propeties

https://social.technet.microsoft.com/Forums/en-US/ac80d8ec-21ad-4d44-9a0c-c8777f861db7/windows-8-manage-wireless-networks?forum=w8itpronetworking

Open a run box window (or press win+R) then type cmd to open Windows 8 CLI.
To see stored wireless profiles, type:
   netsh wlan show profiles
This will show a list of saved profiles of your connected WLAN devices. Then you'll need to write/save/memorize the profile name that you want to change.
To see the stored key (WPA/WEP/etc) of a specific profile:
   netsh wlan show profiles name=[profile name] key=clear
You'll find the key content under security settings.
To delete a stored profile:
   netsh wlan delete profile name=[profile name]
This will delete the stored profile of every WLAN interface. If you want to delete the profile of a specific WLAN interface, you need to use the following:
   netsh wlan delete profile name=[profile name] interface=[interface name]
This is a good alternative to perform the common actions for "Manage Wireless Network" avoiding to use third party software under Windows 8.

Friday, November 15, 2019

Overwrite Deleted Data

https://support.microsoft.com/en-ca/help/814599/how-to-use-cipher-exe-to-overwrite-deleted-data-in-windows-server-2003

How to Use the Cipher Security Tool to Overwrite Deleted Data

Note The cipher /w command does not work for files that are smaller than 1 KB. Therefore, make sure that you check the file size to confirm whether is smaller than 1 KB. This issue is scheduled to be fixed in longhorn.

To overwrite deleted data on a volume by using Cipher.exe, use the
/w switch with the cipher command:
  1. Quit all programs.
  2. Click Start, click Run, type cmd, and then press ENTER.
  3. Type cipher /w:folder, and then press ENTER, where folder is any folder in the volume that you want to clean. For example, the cipher /w:c:\test command causes all deallocated space on drive C to be overwritten. If C:\folder is a Mount Point or points to a folder on another volume, all deallocated space on that volume will be cleaned.
Data that is not allocated to files or folders is overwritten. This permanently removes the data. This can take a long time if you are overwriting a large amount of space.

Friday, October 25, 2019

svn export in git

To obtain a "clean" source at some revision, do:

git archive <commit #> | tar -x -C <destination dir>

Source: https://stackoverflow.com/questions/160608/do-a-git-export-like-svn-export

Setting Up "Local" Git Server

Inspired by https://dev.to/erhankilic/setting-up-your-own-git-server--26h6

sudo mkdir /git/example.git 
sudo git init --bare
cd /home/<localuser>
sudo git clone /git/example.git # (bcoz the repo has root permission in this example)

To use:
git add ... whatever
git commit -a
sudo git push # (bcoz the repo has root permission in this example)

Thursday, May 30, 2019

Set Notepad++ as the Default Editor in Windows

https://www.tech-recipes.com/rx/53473/how-to-set-notepad-as-the-default-editor-in-windows/

1. First, open Notepad++ with administrator privileges.
2. Click on Settings in the main menu bar, and click on Preferences.
3. Select File Association, and add your needed file extensions one by one to the Registered extensions list.
4. If the file extension you need is not included in the list, select customize. Then type the needed extension, and add those to the Registered extensions list.
5. Click Close.