Skip to content

Instantly share code, notes, and snippets.

View C-EO's full-sized avatar
💭
Working on c-eo.github.io

Dennis Sebalemba C-EO

💭
Working on c-eo.github.io
View GitHub Profile
@C-EO
C-EO / git-io-custom-url.md
Created October 12, 2021 08:28 — forked from dikiaap/git-io-custom-url.md
git.io custom URL

Command:

curl https://git.io/ -i -F "url=https://github.com/YOUR_GITHUB_URL" -F "code=YOUR_CUSTOM_NAME"

URLs that can be created is from:

  • https://github.com/*
  • https://*.github.com
  • https://*.github.com/*
  • https://*.github.io
@C-EO
C-EO / gist:552c20b4c21ab0e0c6e8fd530c8d8e8a
Created September 3, 2021 19:00 — forked from snowman-repos/gist:3817253
Htaccess: Password Protect a Folder
#in .htaccess file in the folder you're trying to protect
AuthType Basic
AuthName "This Area is Password Protected"
AuthUserFile /full/path/to/.htpasswd
Require valid-user
#put in a .htpasswd file in a non-public facing directory
#you can generate a password here: http://www.htaccesstools.com/htpasswd-generator/
darrylsnow:$apr1$O/BJv...$vIHV9Q7ySPkw6Mv6Kd/ZE/
@C-EO
C-EO / discordjs-slash-commands.md
Created August 29, 2021 09:22 — forked from advaith1/discordjs-slash-commands.md
Slash Commands in Discord.js
@C-EO
C-EO / Github Webhook Tutorial.md
Created August 17, 2021 04:41 — forked from jagrosh/Github Webhook Tutorial.md
Simple Github -> Discord webhook

Step 1 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send commits and other updates

  2. In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe! WebhookDiscord

Step 2 - Set up the webhook on Github

  1. Navigate to your repository on Github, and open the Settings Settings
// Photoshop Script to Create iPhone Icons from iTunesArtwork
//
// WARNING!!! In the rare case that there are name collisions, this script will
// overwrite (delete permanently) files in the same folder in which the selected
// iTunesArtwork file is located. Therefore, to be safe, before running the
// script, it's best to make sure the selected iTuensArtwork file is the only
// file in its containing folder.
//
// Copyright (c) 2010 Matt Di Pasquale
// Added tweaks Copyright (c) 2012 by Josh Jones http://www.appsbynight.com
@C-EO
C-EO / license-badges.md
Created August 15, 2021 17:24 — forked from lukas-h/license-badges.md
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)