Skip to content

Instantly share code, notes, and snippets.

View Calvin-Xu's full-sized avatar
🌹
自由を舞う薔薇のように 私は世界を変える

Calvin Xu Calvin-Xu

🌹
自由を舞う薔薇のように 私は世界を変える
View GitHub Profile
@usametov
usametov / topics-search.txt
Created February 16, 2021 01:50
how to search github.com for multiple topics
Github.com ui .currently does not natively supoport search for multiple topic tags as of now. However their api allows you to query multiple tags. Below is a simple example to query github.com with ecs and go topic tags.
curl -H "Accept: application/vnd.github.mercy-preview+json" \
https://api.github.com/search/repositories?q=topic:ecs+topic:go
Response from the github can be rather verbose so lets filter only relavant info such repo url and description.
curl -H "Accept: application/vnd.github.mercy-preview+json" \
https://api.github.com/search/repositories\?q\=topic:ecs+topic:go | jq '.items[] | {url:.url, description:.description}'
@marccarre
marccarre / list_kindle_releases.py
Created October 24, 2020 08:46
List all available versions of Kindle for Mac and Kindle for PC.
#!/usr/bin/env python
'''
List all available versions of Kindle for Mac and Kindle for PC.
Dependencies:
- asyncio==3.4.3
- aiohttp==3.6.3
'''
import os
import sys
@mikestecker
mikestecker / optimising-unifi-performance.md
Last active April 22, 2024 13:32
optimising-unifi-performance

optimising-unifi-performance

NOTE: Content below is written by Adrian Mace. Click here for an updated version.

Below are the key settings that I apply on any unifi installation for optimal performance.

Settings

Settings > Site

  • Ensure Enable Advanced Features is enabled
    This allows you to follow along with the guide in it's entirety.
@nullst
nullst / svg2pdftex
Created June 9, 2020 13:09
Converting SVG file to PDF+LaTeX combination (similar to Inkscape)
#!/usr/local/bin/python3
# SVG to PDF + LaTeX conversion tool
# Simulates "Export to PDF+TeX" option in Inkscape.
# Uses either Inkscape (if available), or cairosvg, with the latter
# option ONLY valid for svg files without any svg transforms.
# In Affinity Designer make sure to use "Flatten transforms" option in
# SVG export window. For SVG files not coming from Affinity Designer,
# use some other SVG flattener tool as desired.
@davidzchen
davidzchen / sample-google.c
Last active February 11, 2024 14:49
Sample C code using the Google C++ style guide
// Sample file using the Google C++ coding standard.
//
// http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml
//
// General rules:
// - Indents are two spaces. No tabs should be used anywhere.
// - Each line must be at most 80 characters long.
// - Comments can be // or /* but // is most commonly used.
// - File names should be lower_case.c or lower-case.c
//