Skip to content

Instantly share code, notes, and snippets.

@misterjupiter
misterjupiter / captureLiveWP.py
Created August 24, 2024 13:29
Example: setting a Chromecast live wallpaper on linux for the Gnome desktop with Python3, Selenium and Chromedriver
# make sure you have Selenium installed: https://pypi.org/project/selenium/
# make sure you have the latest chromedriver installed: https://googlechromelabs.github.io/chrome-for-testing/
# save this file somewhere, change the paths as you need and make it autostart. enjoy.
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.chrome.service import Service
import os
import time
@JofArnold
JofArnold / NavLink.js
Created February 1, 2018 18:58
React Router NavLink with inactiveClassName and isActive child function enhancements
@0xjac
0xjac / private_fork.md
Last active May 27, 2025 04:07
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

@ravibhure
ravibhure / git_rebase.md
Last active April 11, 2025 09:30
Git rebase from remote fork repo

In your local clone of your forked repository, you can add the original GitHub repository as a "remote". ("Remotes" are like nicknames for the URLs of repositories - origin is one, for example.) Then you can fetch all the branches from that upstream repository, and rebase your work to continue working on the upstream version. In terms of commands that might look like:

Add the remote, call it "upstream":

git remote add upstream https://github.com/whoever/whatever.git

Fetch all the branches of that remote into remote-tracking branches, such as upstream/master:

git fetch upstream

@jdsimcoe
jdsimcoe / humans.txt
Created June 18, 2015 18:13
A really cool example humans.txt from Google Ventures.
_____) __ __)
/ /) (, ) /
/ ___ _______ // _ | / _ __ _/_ __ _ _
/ / ) (_)(_)(_/_(/__(/_ |/ _(/_/ (_(__(_(_/ (__(/_/_)_
(____ / .-/ |
(_/ Hand-crafted since 2009