Tricks for myself
1. Cách crawl dữ liệu từ một website về một file txt
Trong linux ta dùng curl để làm chuyện này:
Ví dụ tôi muốn copy tất cả dữ liệu trong link https://virusshare.com/hashes/unpacked_hashes.md5 vào file virushashes.txt tôi gõ lệnh như sau:
curl -L -o virushashes.txt https://virusshare.com/hashes/unpacked_hashes.md5
2. Fix Drive is Not Accessible Access is Denied The File Directory is Corrupt or Unreadable
THE COMMAND: "CHKDSK /F /"YOUR DRIVE LETTER" (mine was E:) You do not need to type anything else or launch any more commands.
3. VMware Workstation and Device/Credential Guard are not compatible Fix
1. In search box type "gpedit" then Goto - Computer Configuration - Administrative Templates - System - Device Guard - Turn on Virtualization Based Security. Now Double click that and "Disable" 2. In search box, type Turn Windows features on or off, now uncheck Hyper-V and restart system. 3. Open Registry Editor by typing regedit in search box, now Go to HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\DeviceGuard. Add a new DWORD value named EnableVirtualizationBasedSecurity and set it to 0 to disable it. Next Go to HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\LSA. Add a new DWORD value named LsaCfgFlags and set it to 0 to disable it. 4. Open command prompt as a administrator and type the following commands bcdedit /create {0cb3b571-2f2e-4343-a879-d86a476d7215} /d "DebugTool" /application osloader Then copy paste the rest below and press enter bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} path "\EFI\Microsoft\Boot\SecConfig.efi" bcdedit /set {bootmgr} bootsequence {0cb3b571-2f2e-4343-a879-d86a476d7215} bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} loadoptions DISABLE-LSA-ISO,DISABLE-VBS bcdedit /set hypervisorlaunchtype off Now, Restart your system
4. Change the extension of multiple files at once
Example: ren *.png *.pdf
5. Cách reset toner của máy in Brother 2321D:
Các bước thực hiện như sau:
- Tắt máy
- Mở nắp chứa cục mực in
- Nhấn giữ nút GO rồi mở nguồn, vẫn tiếp tục giữ nút GO khoảng 20s
- Thả nút GO chờ thêm 5s
- Ấn nút GO 9 lần
- Chờ thêm 5s
- Ấn nút GO 5 lần
- Đóng nắp máy in lại -->OK
6. Fix vmware kernel module updater ubuntu error
You will need to download the appropriate file based on what version you have installed, this example is based on 15.5.1
Download the replacement files:
wget https://github.com/mkubecek/vmware-host-modules/archive/workstation-15.5.1.tar.gz
Extract the files:
tar -xzf workstation-15.5.1.tar.gz
cd into directory:
cd vmware-host-modules-workstation-15.5.1/
Create tar files of the modules:
tar -cf vmmon.tar vmmon-only
tar -cf vmnet.tar vmnet-only
Copy files to /usr/lib/vmware.modules.source (elevated privileges needed):
sudo cp -v vmmon.tar vmnet.tar /usr/lib/vmware/modules/source/
Install modules (elevated privileges needed):
sudo vmware-modconfig --console --install-all
7. Chạy một ứng dụng bằng cách gõ tên ứng dụng từ terminal
//Lưu ý muốn chạy quyền root thì chỉnh với quyền root, muốn chạy bình thường thì ko cần
1. gedit ~/.bashrc
2. Thêm alias vào, ví dụ như sau:
alias ida64='wine /home/lepuchin/IDA_Pro_7.6_hide01.ir/IDA_Pro_7.6/ida64.exe'
3. Lưu và thoát ra
4. Now execute . ~/.bashrc in your terminal (there should be a space between the . and ~/.bashrc.
Updating...
What's Your Reaction?