Skip to content

Instantly share code, notes, and snippets.

<img src="URL" style="width:100%;" alt="Name" />
@jamost
jamost / inlinestyle.html
Created August 16, 2016 19:35
Inline style: center
<p style="text-align:center">Text</p>
@jamost
jamost / imagelink.html
Created August 4, 2016 16:55
Link Image
@jamost
jamost / 0_reuse_code.js
Created August 4, 2016 16:53
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@jamost
jamost / move_tags.sh
Last active January 24, 2017 16:43
Move git tags to directory
for TAG in `git tag -l | grep '[tag name, eg., v16]'`; do git tag [directory name]/$TAG $TAG; git tag -d $TAG; git push origin :refs/tags/$TAG; done
git push origin --tags
@jamost
jamost / implementation-example.php
Created April 9, 2015 03:33
Entity Manager Simulate and Persist Implementation Template (Symfony/Doctrine)
<?php
class WhateverController extends Controller
{
protected $simulate = TRUE;
// ...
/**
* @Route("/data/update")
@jamost
jamost / gist:10147703
Created April 8, 2014 15:59
Stop xmlrpc.php Wordpress exploit
# Add folllowing to the directory section of the configuration
<Files xmlrpc.php>
Order deny,allow
Deny from all
</Files>
@jamost
jamost / Preferences.sublime-settings
Last active January 1, 2016 19:59
Phoenix Theme dark and blue; sublime text user preferences I like
{
// netatoo / pheonix-theme
// https://github.com/netatoo/phoenix-theme
"color_scheme": "Packages/Theme - Phoenix/Color Scheme/Clouds Midnight.tmTheme",
"theme": "Phoenix Dark.sublime-theme",
"phoenix_highlight_current_tab": true,
"phoenix_color_blue": true,
"phoenix_eighties": true,
@jamost
jamost / play-theme.css
Created December 31, 2013 08:28
Minor tweaks to the ASMBS theme css - for diffing
@import 'https://fonts.googleapis.com/css?family=Source+Sans+Pro';
@import 'https://fonts.googleapis.com/css?family=Oswald';
article,
aside,
details,
figcaption,
figure,
footer,
header,