Skip to content

Instantly share code, notes, and snippets.

View H4ppy-04's full-sized avatar
🎯
Focusing

Joshua H4ppy-04

🎯
Focusing
View GitHub Profile
@prwhite
prwhite / Makefile
Last active October 2, 2024 03:13
Add a help target to a Makefile that will allow all targets to be self documenting
# Add the following 'help' target to your Makefile
# And add help text after each target name starting with '\#\#'
help: ## Show this help.
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
# Everything below is an example
target00: ## This message will show up when typing 'make help'
@echo does nothing
@anvaka
anvaka / 00.Intro.md
Last active November 15, 2024 07:27
npm rank

npm rank

This gist is updated daily via cron job and lists stats for npm packages:

  1. Top 1,000 most depended-upon packages
  2. Top 1,000 packages with largest number of dependencies
  3. Top 1,000 packages with highest PageRank score
@robertpainsi
robertpainsi / commit-message-guidelines.md
Last active November 11, 2024 07:00
Commit message guidelines

Commit Message Guidelines

Short (72 chars or less) summary

More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).

Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
@John-Paul-R
John-Paul-R / FabricModList.md
Last active October 21, 2024 07:40
A list of (almost all) mods for Fabric

Fabric Mod List

This page contains a list of the current Minecraft Fabric mods. (As of 2021-08-19 08:05:23 Timezone: UTC+0000 (GMT))

To search for mods by name, category, or download count, visit the website, fibermc.com!

Note: You can view a mod's source files by following the "Source" link on its CurseForge page, assuming that the mod's creator has made such files public.

There are currently 2954 mods in this list.

@Amooti73
Amooti73 / dict.sh
Last active October 5, 2023 23:08
Click and drag to select a word on the screen and send it to rofi to display its definition with sdcv
#!/bin/bash
# Dependencies: tesseract-ocr imagemagick scrot xsel rofi
set -e
SCR_IMG=$(mktemp)
trap 'rm $SCR_IMG*' EXIT
scrot -s "$SCR_IMG.png"
mogrify -modulate 100,0 -resize 400% "$SCR_IMG.png" #should increase detection rate
tesseract "$SCR_IMG.png" "$SCR_IMG" &> /dev/null
@MarkWarneke
MarkWarneke / Makefile
Created June 18, 2020 12:25
Makefile for python code
# Makefile for python code
#
# > make help
#
# The following commands can be used.
#
# init: sets up environment and installs requirements
# install: Installs development requirments
# format: Formats the code with autopep8
# lint: Runs flake8 on src, exit if critical rules are broken
@riccardo1980
riccardo1980 / GithubActionsPytestFlake8.md
Last active November 14, 2024 16:14
Basic GitHub Actions for linting/testing using flake8 and pytest

linting/testing base GitHub Action (flake8 & pytest)

You will find template of required files (requirements.txt, requirements-test.txt, project_package/base.py, tests/base_test.py, python-app.yml) at the end of this gist.

  1. Add base functionality and test files:
    • project_package/base.py
    • tests/base_test.py
  2. Add test requirements
    • requirements-test.txt
  3. Check whether your folders and files structure looks like:
@kaushikgopal
kaushikgopal / nord.theme
Created October 28, 2021 16:36
Taskwarrior Theme that plays nicely with Nord
# Originally adapted from https://github.com/arcticicestudio/igloo
# License: MIT
# References:
# https://taskwarrior.org/docs/themes.html
# task-color(5)
# taskrc(5)
# rule.precedence.color=deleted,completed,active,keyword.,tag.,project.,overdue,scheduled,due.today,due,blocked,blocking,recurring,tagged,uda.