Skip to content

Instantly share code, notes, and snippets.

View glass-ships's full-sized avatar

Glass glass-ships

View GitHub Profile
@thriveth
thriveth / CBcolors.py
Created January 22, 2014 14:52
A color blind/friendly color cycle for Matplotlib line plots. Might want to shuffle it around a bit more,but already not it gives kinda good contrasts between subsequent colors, and shows reasonably well in colorblind filters (though not in pure monochrome).
CB_color_cycle = ['#377eb8', '#ff7f00', '#4daf4a',
'#f781bf', '#a65628', '#984ea3',
'#999999', '#e41a1c', '#dede00']
@sighingnow
sighingnow / Makefile
Last active October 4, 2024 05:08
Detect operating system in Makefile.
# Detect operating system in Makefile.
# Author: He Tao
# Date: 2015-05-30
OSFLAG :=
ifeq ($(OS),Windows_NT)
OSFLAG += -D WIN32
ifeq ($(PROCESSOR_ARCHITECTURE),AMD64)
OSFLAG += -D AMD64
endif
@lukas-h
lukas-h / license-badges.md
Last active October 6, 2024 21:05
Markdown License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes

  • The badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.

Translations: (No guarantee that the translations are up-to-date)

@damc-dev
damc-dev / runBashScript.bat
Last active September 27, 2024 10:08
Execute Bash Script (Using Git Bash) from Windows Task Scheduler
cmd /c ""C:\Program Files (x86)\Git\bin\bash.exe" --login -i -- H:\Daily_Reports\yesterdayTogglReport.sh"
@pierrejoubert73
pierrejoubert73 / markdown-details-collapsible.md
Last active October 15, 2024 15:41
How to add a collapsible section in markdown.

How to add a collapsible section in markdown

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
  • Qux
@MrDrMcCoy
MrDrMcCoy / amipwned.py
Last active September 7, 2019 18:34
Check for compromised credentials from CSV export.
#!/usr/bin/env python
"""
Author: Jeremy McCoy (jeremy@awesomegeek.com)
License: WTFPL
About:
This script helps you to check if any of your usernames and passwords have
been found in major security leaks.
It Will take your decrypted passwords from KeePass or simlar and send SHA1
@AbstractUmbra
AbstractUmbra / 00-deprecation.md
Last active October 9, 2024 13:10
discord.py 2.0+ slash command info and examples

This gist has now been 'deprecated' and has moved...

... to my blog style space for easier contribution by third parties and to provide what I believe to be an easier reading experience. Please field all enquiries and issues to the source repository.