Skip to content

Instantly share code, notes, and snippets.

@garyhtou
garyhtou / README.md
Last active September 29, 2020 13:07
Gary's Notion Fruition Script
@alirezamika
alirezamika / autoscraper-examples.md
Last active July 15, 2025 10:08
AutoScraper Examples

Grouping results and removing unwanted ones

Here we want to scrape product name, price and rating from ebay product pages:

url = 'https://www.ebay.com/itm/Sony-PlayStation-4-PS4-Pro-1TB-4K-Console-Black/203084236670' 

wanted_list = ['Sony PlayStation 4 PS4 Pro 1TB 4K Console - Black', 'US $349.99', '4.8'] 

scraper.build(url, wanted_list)
@alik604
alik604 / starred repo opener.py
Last active April 24, 2025 10:07
Open all starred GitHub repositories in new tab - Open every starred GitHub repo in chrome, with python
import requests
import json
import webbrowser
USER = "alik604"
chrome_path = 'C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s'
# Change to your OS - https://stackoverflow.com/a/24353812/5728614
req = requests.get('https://api.github.com/users/' + USER + '/starred?per_page=100')
# ?page=2&per_page=100 # page is not working, first result is always the same
@phanirithvij
phanirithvij / notion.dark.css
Created August 28, 2020 17:51
Notion darker theme with fixed scrollbar sizes
@-moz-document domain("notion.so") {
::-webkit-scrollbar {
width: 10px;
}
::-webkit-scrollbar-track {
background: #414141;
}
@markasoftware
markasoftware / enterprise_token.rb
Last active July 23, 2026 00:51
OpenProject Enterprise mode for free
############ If you are using DOCKER all-in-one image, create Dockerfile like: ################
############ FROM openproject/openproject:16 ################
############ COPY ./enterprise_token.rb app/models/enterprise_token.rb ################
############ If you are runing a manual installation: ################
############ REPLACE app/models/enterprise_token.rb in the source code with this file! ################
############ also be sure to RESTART OpenProject after replacing the file. ################
############ If using some other set up (eg docker-compose), read the comments on ################
############ https://gist.github.com/markasoftware/f5b2e55a2c2e3abb1f9eefcdf0bfff45 ################
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@omrilotan
omrilotan / hello-world.svg
Last active October 6, 2022 00:36
Rick HTML in SVG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@anushkrishnav
anushkrishnav / README.md
Last active December 6, 2020 14:38
Profile

Username
username=your username goes here
Customising it
You can get color codes at https://htmlcolorcodes.com/
Use Hex colour codes eg
for Black title colour
replace title_color=8fe9e0
with title_color=0B0A0A