This Gist provides a solution for running the Cursor IDE AppImage on systems where sandboxing issues may occur.
Some Electron-based AppImages, like Cursor IDE, may encounter sandboxing errors, preventing them from launching correctly.
[ | |
{ | |
"id": 1, | |
"bank_name": "ABHYUDAYA CO-OPERATIVE BANK" | |
}, | |
{ | |
"id": 2, | |
"bank_name": "AIRTEL PAYMENTS BANK LIMITED" | |
}, | |
{ |
In the ever-evolving world of web development, automation is a game-changer. Whether you're a developer, tester, or tech enthusiast, automating browser tasks can significantly enhance productivity. One powerful tool for browser automation is Playwright, a versatile framework that supports multiple browsers and languages. In this guide, we'll delve into how to connect to an existing Chrome session using Playwright and execute some basic tasks.
To connect Playwright to a running Chrome session, you need to start Chrome with remote debugging enabled. This setup allows Playwright to communicate with the browser via a debugging port.
const { test, expect } = require('@playwright/test'); | |
test.only('Calendar Validations', async ({ browser, page }) => { | |
const date = "15"; | |
const monthNumber = "6"; | |
const year = "1690"; | |
const currentYear = new Date().getFullYear(); | |
await page.goto("https://rahulshettyacademy.com/seleniumPractise/#/offers"); | |
await page.locator(".react-date-picker__inputGroup").click(); |
// ==UserScript== | |
// @name Twitter Translate Button | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Add a translate button to tweets | |
// @match https://twitter.com/* | |
// @grant GM_xmlhttpRequest | |
// ==/UserScript== | |
(function() { |
-
Create a script file
nano autoUpdateHostsOnSystemRestart.sh
and save it in your desired directory. (Here, I've saved it in my/home/user
directory) -
Paste the below script content in the file.
-
Remember to make your script executable using the command
chmod +x autoUpdateHostsOnSystemRestart.sh
. Then you can run your script with./autoUpdateHostsOnSystemRestart.sh
. -
Create a new service file in /etc/systemd/system/ with a .service extension, for example myscript.service. You can use
sudo nano /etc/systemd/system/updateHosts.service
to open a new file in the nano text editor.
#!/bin/bash | |
# Stop the mongod process | |
sudo systemctl stop mongod | |
# Remove any MongoDB packages that you had previously installed. | |
sudo apt-get purge mongodb* | |
# Remove MongoDB databases and log files. | |
sudo rm -r /var/log/mongodb |
#!/bin/bash | |
# Stop the mongod process | |
sudo systemctl stop mongod | |
# Remove any MongoDB packages that you had previously installed. | |
sudo apt-get purge mongodb* | |
# Remove MongoDB databases and log files. | |
sudo rm -r /var/log/mongodb |