Skip to content

Instantly share code, notes, and snippets.

View gilzonme's full-sized avatar
👨‍💻
...

Gilson Gilbert gilzonme

👨‍💻
...
View GitHub Profile
@gilzonme
gilzonme / index.js
Created November 15, 2020 04:31
Google Search Iron Man Simple Automation Script
const puppeteer = require('puppeteer'); // Install puppeteer from https://www.npmjs.com/package/puppeteer
(async () => {
const browser = await puppeteer.launch({headless:false, // `true` if you want to run in headless mode and hidden
defaultViewport:{
width: 1080, // adjust as required
height: 720 // adjust as required
}});
const page = await browser.newPage();
await page.goto('https://google.com');
@gilzonme
gilzonme / gist:faebd9c85fe9eeda1074902680b456f4
Created May 5, 2018 10:07
Fix “Unable to locate package” error in Kali Linux.
This error is basically due to entries in the sources.list file.
Open /etc/apt/ using following command:
cd /etc/apt/
Open the sources.list file using:
sudo nano sources.list
Now paste the following code at the last line of the file:
@gilzonme
gilzonme / counties-dropdown
Created April 26, 2018 11:21
All countries in the world with html select option. Copy paste to your code.
<select id="countries" value="countries">
<option value="" selected="True">Select Country</option>
<option value="AF">Afghanistan</option>
<option value="AL">Albania</option>
<option value="DZ">Algeria</option>
<option value="AS">American Samoa</option>
<option value="AD">Andorra</option>
<option value="AO">Angola</option>
<option value="AI">Anguilla</option>
<option value="AQ">Antarctica</option>