Skip to content

Instantly share code, notes, and snippets.

View Mega-JC's full-sized avatar
🌌

Sunny J. C. Mega-JC

🌌
  • Berlin, Germany
  • 02:27 (UTC +02:00)
View GitHub Profile
@davidpendergast
davidpendergast / differences.txt
Last active August 22, 2023 13:53
Pygame vs. Pygame-CE API Differences
Pygame vs. Pygame-CE API Differences
------------------------------------
This document is meant to serve as a reference for pygame developers that use
both pygame and pygame-ce. It is not an endorsement of one over the other.
Last updated: April 26, 2023
Info was compiled from the repos' release pages and their respective docs:
@ikey4u
ikey4u / svg2icns.sh
Created February 27, 2020 03:36
Generate Mac icns icon from svg using inkscape
inkscape=/Applications/Inkscape.app/Contents/MacOS/inkscape
insvg=burpicon.svg
output=burp
outdir=${output}.iconset
mkdir $outdir
for sz in 16 32 128 256 512
do
echo "[+] Generete ${sz}x${sz} png..."
$inkscape --without-gui --export-file ${outdir}/icon_${sz}x${sz}.png -w $sz -h $sz $insvg
@jamesperrin
jamesperrin / github-labels-import.js
Last active June 29, 2024 17:06
JavaScript file for importing GitHub labels from a JSON object.
/*
Purpose: Import settings for GitHub Labels.
(c) James Perrin, MIT License, https://www.countrydawgg.com, | @jamesperrin
Importing Instructions:
1. Update the labels JSON object.
2. Open a web browser.
3. Navigate to the desired GitHub repository.
@jamesperrin
jamesperrin / github-labels-export.js
Last active June 29, 2024 17:06
JavaScript file for exporting GitHub labels to a JSON object.
/*
Purpose: Export the configuration settings for GitHub Labels.
(c) James Perrin, MIT License, https://www.countrydawgg.com, | @jamesperrin
Exporting Instructions:
1. Open a web browser.
2. Navigate to the desired GitHub repository.
3. Navigate to Issues tab.
@andreasonny83
andreasonny83 / .gitignore
Last active May 30, 2024 18:39
Gitignore template for JavaScript projects
# See http://help.github.com/ignore-files/ for more about ignoring files.
# compiled output
/dist
/tmp
/out-tsc
# Runtime data
pids
*.pid
@rponte
rponte / get-latest-tag-on-git.sh
Last active July 3, 2024 19:27
Getting latest tag on git repository
# The command finds the most recent tag that is reachable from a commit.
# If the tag points to the commit, then only the tag is shown.
# Otherwise, it suffixes the tag name with the number of additional commits on top of the tagged object
# and the abbreviated object name of the most recent commit.
git describe
# With --abbrev set to 0, the command can be used to find the closest tagname without any suffix:
git describe --abbrev=0
# other examples
@Ravendwyr
Ravendwyr / upgrade-tags.sh
Created February 15, 2015 19:30
Replace all git tags with annotated git tags.
#! /bin/sh
git tag -l | while read tag; do git checkout $tag; git tag -d $tag; GIT_COMMITTER_DATE="$(git show --format=%aD | head -1)" git tag -a $tag -m "Tagging as $tag."; git push origin :refs/tags/$tag; done
git push --tags