git clone https://github.com/mongodb/mongo.git
cd mongo
git checkout r8.0.4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| # a systray app for my notes (tomboy + joplin) | |
| import pystray | |
| from PIL import Image | |
| import tkinter as tk | |
| from tkinter import simpledialog | |
| import os | |
| import joplin_notes | |
| import tomboy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python3 | |
| import requests | |
| import datetime | |
| import argparse | |
| from typing import List, Dict, Any | |
| def get_user_repos(username: str) -> List[Dict]: | |
| """ | |
| Fetch all repositories for a given GitHub username. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python3 | |
| # get process age in second | |
| import psutil | |
| import time | |
| import sys | |
| import datetime | |
| def get_process_age(pid): | |
| try: | |
| # Get the process object | |
| process = psutil.Process(pid) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import os | |
| import subprocess | |
| import sys | |
| def run_command(command): | |
| """Run a shell command and return the result.""" | |
| try: | |
| print(f"Executing: {' '.join(command)}") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| import requests | |
| import json | |
| import os | |
| import time | |
| def search_github_code(query, language=None, sort=None, order=None, per_page=30, page=1): | |
| """ | |
| Search for code on GitHub using the GitHub Search API. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python3 | |
| """ | |
| Recoll Query Tool with Base64 Decoder | |
| This script provides a command-line interface to search using Recoll and decode base64-encoded fields | |
| in the results. It returns the results as structured JSON where alternating words are treated as | |
| key-value pairs, with values being base64-decoded. | |
| Features: | |
| - Command-line interface for Recoll searches |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python3 | |
| # python system tray to show and start joplin notes | |
| # author: Martin Monperrus | |
| # license: public domain | |
| # url: https://gist.github.com/monperrus/6e43a5216179662655c50b901d0d152b | |
| import pystray | |
| from PIL import Image | |
| import tkinter as tk | |
| from tkinter import simpledialog |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "full-text-retrieval-response" : { | |
| "coredata" : { | |
| "articleNumber" : "107654", | |
| "dc:creator" : [ | |
| { | |
| "$" : "Qian, Zhongsheng", | |
| "@_fa" : "true" | |
| }, | |
| { |