Skip to content

Instantly share code, notes, and snippets.

@techticdev
techticdev / sshcommands
Last active January 1, 2016 10:03
SSH Commands on Putty
Several commands used with putty help on command line
<!-- putty list all files and directories on root or elsewhere // For example here user login is [email protected] -->
<!-- no space between # and command -->
[[email protected]]# ls
<!-- Archive any directory and all its subdirectories and files -->
[[email protected]]# zip -r foldername.zip foldername
<!-- Unzip any directory and all its subdirectories and files -->
@techticdev
techticdev / drupal-help
Created December 22, 2015 12:32
Drupal Useful Links
1. Drupal view related help
https://api.drupal.org/api/views/views.module/function/views_embed_view/7
https://api.drupal.org/api/views/views.module/function/views_get_view/7
http://www.webomelette.com/drupal-embed-view-template-tpl
http://drupal.stackexchange.com/questions/14103/how-do-i-embed-a-view-inside-a-node
http://www.jacksonriver.com/news/message-stack - Messages
http://www.wunderkraut.com/content/learn-flag-with-nodeone - Drupal nodes
http://www.slideshare.net/AcquiaInc/build-an-event-calendar-in-drupal
@techticdev
techticdev / 0_reuse_code.js
Last active August 29, 2015 14:20
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
@techticdev
techticdev / wp-register.php
Created November 26, 2013 04:53
Wordpress Custom Registration Form
<!-- Credits : http://thecodegenie.com/tutorials/wordpress-user-registration-and-login-forms/ -->
<div style="display:none;">
<div id="sign_up" class="modal">
<h2><strong>Sign up</strong> for yourwebsitename</h2>
<form action="<?php echo site_url('wp-login.php?action=register', 'login_post') ?>" class="user_new" id="user_new" method="post">
<input id="user_login" name="user_login" size="30" type="text" placeholder="Select a username">
<input id="user_email" name="user_email" size="30" type="text" placeholder="Email address">