for pairs of values:
[(key1, val1), (key2, val2), ...]
[keys, values] = list(zip(*KeyValueList))
https://www.geeksforgeeks.org/python-unzip-a-list-of-tuples/
Friday, February 28, 2020
Tuesday, February 25, 2020
Tools to prevent your Windows PC from sleeping or locking
https://windowsreport.com/prevent-computer-from-sleeping-locking/
Wednesday, January 29, 2020
How to Turn Your PC Into a Wi-Fi Hotspot - Windows 10 with the Anniversary Update
First, fire up Settings by pressing Windows+I on your keyboard. On the main Settings page, click “Network & Internet.”
On the Network & Internet page, on the left-hand side, click “Mobile hotspot.”
On the right-hand side, turn on the “Share my Internet connection with other devices” switch. If you want something other than the default network name and password, click the “Edit” button.
In the Edit window, type whatever network name and password you want to use and then click “OK.”
Source:
https://www.howtogeek.com/214080/how-to-turn-your-windows-pc-into-a-wi-fi-hotspot/
On the Network & Internet page, on the left-hand side, click “Mobile hotspot.”
On the right-hand side, turn on the “Share my Internet connection with other devices” switch. If you want something other than the default network name and password, click the “Edit” button.
In the Edit window, type whatever network name and password you want to use and then click “OK.”
Source:
https://www.howtogeek.com/214080/how-to-turn-your-windows-pc-into-a-wi-fi-hotspot/
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.
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
To overwrite deleted data on a volume by using Cipher.exe, use the
/w switch with the cipher command:
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:
- Quit all programs.
- Click Start, click Run, type cmd, and then press ENTER.
- 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.
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
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)
Subscribe to:
Posts (Atom)