Skip to content

Instantly share code, notes, and snippets.

View adeniyi1007's full-sized avatar

Mathew Bee adeniyi1007

View GitHub Profile
@adeniyi1007
adeniyi1007 / .htaccess
Created February 3, 2023 21:18 — forked from ScottPhillips/.htaccess
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/
@adeniyi1007
adeniyi1007 / PostMessageToSlackChannel.php
Created January 17, 2022 12:44 — forked from nadar/PostMessageToSlackChannel.php
Post a message to a slack channel with PHP
<?php
/**
* Send a Message to a Slack Channel.
*
* In order to get the API Token visit:
*
* 1.) Create an APP -> https://api.slack.com/apps/
* 2.) See menu entry "Install App"
* 3.) Use the "Bot User OAuth Token"
@adeniyi1007
adeniyi1007 / .gitignore
Created September 15, 2021 11:05 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #