• Công nghệ,  Lang thang,  Linux,  Mẹo vặt

    wttr.in | Check weather in terminal

    wttr.in | weather app for the terminal https://github.com/chubin/wttr.in wttr.in — the right way to ~check~ curl the weather! wttr.in is a console-oriented weather forecast service that supports various information representation methods like terminal-oriented ANSI-sequences for console HTTP clients (curl, httpie, or wget), HTML for web browsers, or PNG for graphical viewers. Originally started as a small project, a wrapper for wego, intended to demonstrate the power of the console-oriented services, wttr.in became a popular weather reporting service, handling tens millions of queries daily. You can see it running here: wttr.in. Documentation | Usage | One-line output | Data-rich output format | Map view | Output formats | Moon phases |…

  • Lang thang

    [Infinity hosting] Lỗi không cho request dữ liệu được lưu trên host

    [Infinity hosting] Lỗi không cho request dữ liệu được lưu trên host Nhận dạng lỗi This site requires Javascript to work, please enable Javascript in your browser or use a browser with Javascript support https://forum.infinityfree.net/t/this-site-requires-javascript-to-work-please-enable-javascript-in-your-browser-or-use-a-browser-with-javascript-support/18309 Lý do No hope! Không có hi vọng request data lưu trên này rồi =)) Thông tin thêm Nhưng chức năng bị hạn chế trên hosting free Which features are not supported? Because of this security system, the following things will not work correctly or at all on websites on free hosting. Access through Android or iOS mobile apps (mobile browsers work fine). API access to websites (like WordPress XML-RPC). Access from cURL or other…

  • Lang thang,  Mẹo vặt

    Enable VT-x in your BIOS security settings (refer to documentation for your computer)

    Enable VT-x in your BIOS security settings (refer to documentation for your computer) Tôi gặp lỗi này khi khởi chạy máy ảo Android trên máy tính, lỗi này cũng khiến cho Docker không thể khởi động được Fix lỗi Enable VT-x in your BIOS security settings Vào BIOS => Advanced => CPU Configuration => bật Intel Virtualization Technology

  • Lang thang,  Linux

    [Rclone] Config rclone to support diffie-hellman-group-exchange-sha256 diffie-hellman-group-exchange-sha1

    [Rclone] Config rclone to support diffie-hellman-group-exchange-sha256 diffie-hellman-group-exchange-sha1 Err info haugiang@hg-nn-web:/$ rclone mount backup_sftp:/NongNghiep/ /gdrive2/ --allow-non-empty 2022/05/25 03:09:25 Failed to create file system for "backup_sftp:/NongNghiep/": NewFs: couldn't connect SSH: ssh: handshake failed: ssh: no common algorithm for key exchange; client offered: [curve25519-sha256 curve25519-sha256@libssh.org ecdh-sha2-nistp256 ecdh-sha2-nistp384 ecdh-sha2-nistp521 diffie-hellman-group14-sha256 diffie-hellman-group14-sha1 ext-info-c], server offered: [diffie-hellman-group-exchange-sha1 diffie-hellman-group1-sha1] Fix Config rclone to support diffie-hellman-group-exchange-sha256 diffie-hellman-group-exchange-sha1 We have managed to opt-in those algorithms support and submitted a PR here: https://github.com/ncw/rclone/pull/3341 Note: since those algorithms are considered insecure, your also need to use the exisiting rclone flag --sftp-use-insecure-cipher to make them available for SSH handshake. My Example run Ok rclone mount backup_sftp:/mnt/array1/NongNghiep/ /backup_drive/ --allow-non-empty --sftp-use-insecure-cipher https://stackoverflow.com/questions/56968274/config-rclone-to-support-diffie-hellman-group-exchange-sha256-diffie-hellman-gro

  • Capuchino,  Công nghệ,  Lang thang

    Life before the invention of AutoCAD, 1950-1980

    Life before the invention of AutoCAD, 1950-1980 General Motors Technical Center in Warren Michigan. Before the advent of AutoCAD and other drafting software, engineering drawings were made on sheets of large paper using drawing boards. Many types of equipment were required to complete a given drawing, such as drawing board, different grade pencils, erasers T-squares, set square, etc. The major disadvantage of a paper-based design was that you could not change the drawing after it was committed to paper. This would mean that if changes were required to the design, the engineers would need to create the sketches all over again. Examining the history of engineering drafting and design equivocally…

  • Lang thang,  Mẹo vặt

    [GBA Game] How To Patch IPS and UPS Files to Play a ROM Hack

    [GBA Game] How To Patch IPS and UPS Files to Play a ROM Hack If you ever played a Gameboy Advance emulator, then chances are you will need ROMs. The ROMs will act as the cartridges, which are basically the games. A Gameboy Advance ROM will have a .GBA file format. This means that only a GBA emulator can run this type of file, or there are some NDS emulators that can run it as well. It is like an MP3 player can't play an MP4 file, or at least only the audio will play, but you can't see the video. What you need to do is to know how to apply an IPS…

  • Công nghệ,  Lang thang,  Linux

    Cài Docker Compose trên Ubuntu (Linux)

    Cài Docker Compose trên Ubuntu (Linux) Lỗi Unable to locate package docker-compose-plugin Ban đầu mình cài với lệnh sudo apt install docker-compose-plugin, tuy nhiên bị lỗi sau: Unable to locate package docker-compose-plugin haugiang@hg-nn-web:/nongnghiep/docker/postgresql$ sudo apt-get update Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease Get:2 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB] Get:3 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB] Get:4 http://archive.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB] Get:5 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [2,570 kB] Get:6 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1,810 kB] Fetched 4,632 kB in 7s (667 kB/s) Reading package lists... Done haugiang@hg-nn-web:/nongnghiep/docker/postgresql$ sudo apt-get install docker-compose-plugin Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package docker-compose-plugin haugiang@hg-nn-web:/nongnghiep/docker/postgresql$ sudo apt install docker-compose-plugin…

  • Công nghệ,  Lang thang

    Android debug via wifi

    Android debug via wifi Lấy danh sách thiết bị adb devices -l List of devices attached H7AXB771T321953 device product:WW_Phone model:ASUS_X00ID device:ASUS_X00IDC transport_id:1 Bật debug wifi # This makes the device to start listening for connections on port 5555; adb tcpip 5555 # Look up the device IP address adb shell ifconfig # adb shell netcfg # You can disconnect the USB now # This connects to the server we set up on the device on step 2 adb connect <DEVICE_IP_ADDRESS>:5555 adb connect 192.168.1.22:5555 adb connect 10.10.10.25:5555 # Now you have a device over the network with which you can debug as usual. To switch the server back to the USB…

  • Lang thang,  Linux,  Mẹo vặt

    [Install SSL Certificate into Linux] Installing Certificate PFX into Unbuntu Linux

    [Install SSL Certificate into Linux] Installing Certificate PFX into Unbuntu Linux Export Private Key and Certificate from PFX file Export the Private Key openssl pkcs12 -in domain.com.pfx -nocerts -out domain.com.pem -nodes Export the Certificate openssl pkcs12 -in domain.com.pfx -nokeys -out domain.com.crt -nodes Update the certificate update-ca-certificates Config Vhost SSL <VirtualHost *:443> DocumentRoot "/abc/xyzdir/" ServerName domain.com ErrorLog "logs/domain.com-error.log" CustomLog "logs/domain.com-access.log" combined SSLEngine On SSLCertificateFile "/usr/local/share/ca-certificates/domain.com.crt" SSLCertificateKeyFile "/usr/local/share/ca-certificates/domain.com.pem" # SSLCertificateFile "/opt/lampp/etc/ssl.crt/server.crt" # SSLCertificateKeyFile "/opt/lampp/etc/ssl.key/server.key" <Directory "/abc/xyzdir/"> AllowOverride All # Order Allow,Deny Allow from all # --New way of doing it Require all granted </Directory> </VirtualHost> References https://helloitsliam.com/2016/03/30/installing-certificate-pfx-into-debian-linux/

  • Lang thang,  Linux,  Mẹo vặt

    rclone – Fatal error: failed to mount FUSE fs

    rclone - Fatal error: failed to mount FUSE fs Error info 2022/05/10 04:07:15 mount helper error: fusermount: option allow_other only allowed if 'user_allow_other' is set in /etc/fuse.conf 2022/05/10 04:07:15 Fatal error: failed to mount FUSE fs: fusermount: exit status 1 Fix rclone - Fatal error: failed to mount FUSE fs Remove --allow-other option # Origin rclone mount ssh_dcsrv:/work/DEV/longdt/Server_Backup/ /gdrive/ --allow-other --allow-non-empty # Become rclone mount ssh_dcsrv:/work/DEV/longdt/Server_Backup/ /gdrive/ --allow-non-empty References https://forum.rclone.org/t/any-way-around-fusermount-option-allow-other-only-allowed-if-user-allow-other-is-set-in-etc-fuse-conf/20625

  • Lang thang,  Linux,  Mẹo vặt

    rclone – couldn’t connect ssh: ssh: must specify HostKeyCallback

    rclone - couldn't connect ssh: ssh: must specify HostKeyCallback Error info Fix rclone - couldn't connect ssh: ssh: must specify HostKeyCallback https://github.com/rclone/rclone/issues/3557#issuecomment-533618145 sudo curl https://rclone.org/install.sh | sudo bash References https://rclone.org/downloads/ https://github.com/rclone/rclone/issues/3557#issuecomment-533618145

  • Lang thang,  Mẹo vặt

    [Linux Screen] Cannot make directory ‘/var/run/screen’: Permission denied

    [Linux Screen] Cannot make directory '/var/run/screen': Permission denied Error info Sometime, usually after a crash or sudden shutdown, screen refuses to start. Commands like screen screen -ls screen -r screen -d result in the following output Cannot make directory '/var/run/screen': Permission denied Fix Cannot make directory '/var/run/screen': Permission denied The directory /var/run/screen/ is the socket directory for screen. Fortunately, screen reads a environment variable SCREENDIR to get an alternative socket directory. So to work around it, you can create a directory, such as ~/.screen: mkdir ~/.screen && chmod 700 ~/.screen and export the SCREENDIR to point to that directory: export SCREENDIR=$HOME/.screen You can also put this line into you ~/.bashrc so that it will also take effect afterwards. Result References https://superuser.com/questions/1195962/cannot-make-directory-var-run-screen-permission-denied

  • Công nghệ,  Lang thang,  Web

    Điều khoản Dịch vụ Trực tuyến Google AdSense, Admob bằng tiếng Việt (04/2022)

    Điều khoản Dịch vụ Trực tuyến Google AdSense, Admob bằng tiếng Việt (04/2022) Hôm nay tình cờ vào Google AdSense, Google Admob thấy nó thông báo thay đổi chính sách như sau, tóm lại muốn dùng của nó tiếp thì phải chấp nhận thôi :') Điều khoản Dịch vụ Trực tuyến Google AdSense Chào mừng bạn đến với AdSense! Cảm ơn bạn đã quan tâm đến các dịch vụ tìm kiếm và quảng cáo của chúng tôi (sau đây gọi tắt là "Các Dịch Vụ")! Khi sử dụng Các Dịch Vụ của chúng tôi, bạn đồng ý với (1) các Điều khoản Dịch vụ này, (2) Các Chính sách về…

  • Công nghệ,  Lang thang,  Viễn thám

    Cloud masking of Sentinel 2 using Google Earth Engine

    Cloud masking of Sentinel 2 using Google Earth Engine Source: https://github.com/samsammurphy/cloud-masking-sentinel2 Cloud masking of Sentinel 2 using Google Earth Engine Cloud, and shadow, masking of Sentinel 2 images using Google Earth Engine Python API. Refactored from javascipt posted in the forum in this thread: Sentinel 2 cloud masking. Dependencies Google Earth Engine Python API Ipython Usage Authenticate Earth Engine (if necessary) earthengine authenticate Run the jupyter notebook git clone https://github.com/samsammurphy/cloud-masking-sentinel2.git cd cloud-masking-sentinel2 jupyter-notebook cloud-masking-sentinel2.ipynb

  • GIS,  QGIS Tutorials and Tips

    Introduction to QGIS

    QGIS is a full-featured, user-friendly, free-and-open-source (FOSS) geographical information system (GIS) that runs on Unix platforms, Windows, and MacOS. Features 1. Flexible and powerful spatial data management Supports raster, vector, mesh, and point cloud data in a range of industry-standard formats Raster formats include: GeoPackage, GeoTIFF, GRASS, ArcInfo binary and ASCII grids, ERDAS Imagine SDTS, WMS, WCS, PostgreSQL/PostGIS, and other GDAL supported formats. Vector formats include: GeoPackage, ESRI shapefiles, GRASS, SpatiaLite, PostgreSQL/PostGIS, MSSQL, Oracle, WFS, Vector Tiles and other OGR supported formats. Mesh formats include: NetCDF, GRIB, 2DM, and other MDAL supported formats. Point-cloud format: LAS/LAZ and EPT datasets. Access and display local files, spatial databases (PostGIS, SpatiaLite, SQL Server,…