Skip to content

Instantly share code, notes, and snippets.

View abdigneer's full-sized avatar
🚀

Abdi Gneer abdigneer

🚀
View GitHub Profile
@abdigneer
abdigneer / rasp_new_command_on_startup.md
Last active August 27, 2024 08:40
rasp add new command on startup
  1. Edit the rc.local file: Open the file with a text editor:

    sudo nano /etc/rc.local
  2. Add the DHCP commands: Add the following lines above the exit 0 line in the file:

@abdigneer
abdigneer / rasp_restart_wifi.md
Last active August 27, 2024 07:04
restart wifi from rasp py

set all disabled=1, and remove disabled for ssid that we must connnected, or adding one sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

network={ ssid="YourNetworkSSID" psk="YourNetworkPassword" }

@abdigneer
abdigneer / download_data_as_csv.js
Created October 13, 2023 01:29
Downloading data as csv from client or browser console
function downloadAsCsv(rows) {
let csvContent = "data:text/csv;charset=utf-8,"
+ rows.map(e => e.join(",")).join("\n");
var encodedUri = encodeURI(csvContent);
window.open(encodedUri);
}
@abdigneer
abdigneer / postman_edit_request_body_in_pre_request.js
Created September 21, 2023 02:56
Postman edit request body in pre-request script.
let body = {
mode: 'raw',
raw: JSON.stringify({
licenseUsername: 'username',
licensePassword: 'password'
}),
options: {
raw: {
language: 'json'
}

installation

To install MySQL 5.7 on a Linux-based operating system (e.g., Ubuntu, CentOS, Debian), you can use the package manager specific to your distribution. Here are the steps to install MySQL 5.7 on a few popular Linux distributions:

Ubuntu/Debian:

# Update the package index
sudo apt update

# Install MySQL Server and client
sudo apt install mysql-server mysql-client

As of my last update in September 2021, MySQL 5.7 was still available for download. To install MySQL 5.7 on Windows using the command line, follow these steps:

  1. Download MySQL Installer for Windows from the official MySQL website: https://dev.mysql.com/downloads/installer/

  2. Launch the MySQL Installer executable you downloaded.

  3. The installer will give you a choice of MySQL products to install. Select "MySQL Server" and click "Next."

  4. In the next screen, you can choose a setup type. For this example, select "Server only" and click "Next."