Skip to content

Instantly share code, notes, and snippets.

View c0psrul3's full-sized avatar

Mike c0psrul3

View GitHub Profile
@c0psrul3
c0psrul3 / do_cloud-config.init.yaml
Last active May 11, 2024 09:40
Digital Ocean cloud-init / cloud-config / droplet metadata usage
#
#DO droplet metadata intro + for DO-API
# [https://www.digitalocean.com/community/tutorials/an-introduction-to-droplet-metadata#how-to-retrieve-droplet-metadata#digitalocean-api]
#
#intro to cloud-config scripting (source of following examples)
# [https://www.digitalocean.com/community/tutorials/an-introduction-to-cloud-config-scripting]
#
#howto
# [https://www.digitalocean.com/community/tutorials/how-to-use-cloud-config-for-your-initial-server-setup]
#
@c0psrul3
c0psrul3 / Corne.crkbd_c0psrul3.default.json
Last active March 11, 2024 07:49
Corne keyboard layout
[
{
"name": "Corne, default layer",
"author": "https://github.com/c0psrul3",
"plate": false,
"keyboard-layout-editor": "http://www.keyboard-layout-editor.com/#/gists/adfa7c3cd8f0c6d3a7b9155c6eab1748#file-corne-crkbd_c0psrul3-default-json",
"qmk-config": "https://config.qmk.fm/#/crkbd/rev1/LAYOUT"
},
[
{
@c0psrul3
c0psrul3 / touch__summarized_manpage.md
Last active May 4, 2023 07:34
How to use touch(1)

How to use touch(1) Fast version

Preface:

-- The reader (that's you!) should have a basic understanding of file status, and the attributes a file has (which are not necessarily found in the file itself -- even if hidden).

-- See the stat(2) man page: [[http://man7.org/linux/man-pages/man2/stat.2.html]]

@c0psrul3
c0psrul3 / rootpw_pre-ecrypted_saved.txt.md
Created September 28, 2016 20:27
encrypted root password KNOWN - for distribution (CentOS)
@c0psrul3
c0psrul3 / all_public_repos_to_internal.rake
Last active July 6, 2020 22:07 — forked from ptierno/all_to_private.rake
Gitlab rake task to set all project's visibility level to private (0)
#
# File: all_public_repos_to_internal.rake
# Author: https://gist.github.com/c0psrul3
# Original Author: https://gist.github.com/ptierno
# Original Gist: https://gist.github.com/ptierno/ef57a83afac4442e2a13
#
#
# Gitlab stuff
# ------------
@c0psrul3
c0psrul3 / .dir_colors
Last active February 10, 2020 13:12
dir_colors
#```````````````````````````````````````````````````````````````````````````````
# LS_COLORS
#===============================================================================
# Author: Mike Nichols <mike@mikenichols.name>
# URL: {@link https://gist.github.com/c0psrul3/70e31aaf9f8b12c7b683d9b2781f1dae}
# GPG: 7EF5C63700A0F93C {@link https://keybase.io/c0psrul3/pgp_keys.asc}
#-------------------------------------------------------------------------------
# Original Source:
# @url: {@link https://github.com/trapd00r/LS_COLORS}
# @author: Magnus Woldrich <m@japh.se>, Ryan Delaney <ryan.delaney@gmail.com>
@c0psrul3
c0psrul3 / README.md
Last active January 23, 2020 13:09
Corne crkbd_c0psrul3 (config.qmk.fm)
@c0psrul3
c0psrul3 / get-latest-tag-on-git.sh
Created April 24, 2019 11:15 — forked from rponte/get-latest-tag-on-git.sh
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