Snipt.net is closing on December 31st, 2016

For more information, please visit this blog post.

snipt

Ctrl+h for KB shortcuts

Java

Untitled

public static void main() {
}
https://snipt.net/embed/d9a96e956cdae97f9d4816a4ac65ea3c/
https://snipt.net/raw/d9a96e956cdae97f9d4816a4ac65ea3c/
d9a96e956cdae97f9d4816a4ac65ea3c
java
Java
2
2016-12-07T05:32:13
True
False
False
Dec 07, 2016 at 03:10 AM
/api/public/snipt/148181/
89fad808
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="kd">public</span> <span class="kd">static</span> <span class="kt">void</span> <span class="nf">main</span><span class="o">()</span> <span class="o">{</span> </span><span id="L-2"><a name="L-2"></a><span class="o">}</span> </span></pre></div> </td></tr></table>

Text only

WordPress Custom Registration Form By FMEAddons


https://snipt.net/embed/997ab6fed616c65ac74211c149a6ffff/
https://snipt.net/raw/997ab6fed616c65ac74211c149a6ffff/
997ab6fed616c65ac74211c149a6ffff
text
Text only
1
2016-12-07T05:33:40
True
False
False
Dec 06, 2016 at 05:19 AM
/api/public/snipt/148178/
wordpress-custom-registration-form-by-fmeaddons
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a> </span></pre></div> </td></tr></table>
"WooCommerce registration fields", "custom registration form wordpress", "wordpress custom registration form", "wordpress custom registration page"

Text only

FMEAddons WooCommerce Checkout Page Plugin


https://snipt.net/embed/97a8b0d5fdd370654596fcc641717972/
https://snipt.net/raw/97a8b0d5fdd370654596fcc641717972/
97a8b0d5fdd370654596fcc641717972
text
Text only
1
2016-12-07T05:33:38
True
False
False
Dec 05, 2016 at 03:14 AM
/api/public/snipt/148176/
fmeaddons-woocommerce-checkout-page-plugin
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a> </span></pre></div> </td></tr></table>
"WooCommerce checkout field editor", "WooCommerce checkout manager", "WooCommerce checkout page", "WooCommerce checkout"

Ruby

Untitled

1
2
3
4
5
6
7
8
class CreateMessages < ActiveRecord::Migration
  def change
    create_table :messages do |t|
t.text :content
      t.timestamps
    end
  end
end
https://snipt.net/embed/2039f329946d844e293b1aa03d5c8183/
https://snipt.net/raw/2039f329946d844e293b1aa03d5c8183/
2039f329946d844e293b1aa03d5c8183
rb
Ruby
8
2016-12-07T05:32:09
True
False
False
Nov 25, 2016 at 02:33 PM
/api/public/snipt/148153/
dd02b363
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a> <a href="#L-7">7</a> <a href="#L-8">8</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="k">class</span> <span class="nc">CreateMessages</span> <span class="o">&lt;</span> <span class="no">ActiveRecord</span><span class="o">::</span><span class="no">Migration</span> </span><span id="L-2"><a name="L-2"></a> <span class="k">def</span> <span class="nf">change</span> </span><span id="L-3"><a name="L-3"></a> <span class="n">create_table</span> <span class="ss">:messages</span> <span class="k">do</span> <span class="o">|</span><span class="n">t</span><span class="o">|</span> </span><span id="L-4"><a name="L-4"></a><span class="n">t</span><span class="o">.</span><span class="n">text</span> <span class="ss">:content</span> </span><span id="L-5"><a name="L-5"></a> <span class="n">t</span><span class="o">.</span><span class="n">timestamps</span> </span><span id="L-6"><a name="L-6"></a> <span class="k">end</span> </span><span id="L-7"><a name="L-7"></a> <span class="k">end</span> </span><span id="L-8"><a name="L-8"></a><span class="k">end</span> </span></pre></div> </td></tr></table>

Text only

MySql

1
2
3
4
5
6
7
8
For future reference:
To uninstall -  sudo yum remove mysql mysql-server
Then backup the old mysql -  mv /var/lib/mysql /var/lib/mysql_old_backup
Install - sudo yum install mysql-server
start service - sudo service mysqld start
change root password (if a password is not set at all to the user root)- mysqladmin -u root password NEWPASSWORD 
change root password (if there is already an existing password set) - mysqladmin -u root -p'oldpassword' password newpass
stop service - sudo service mysqld stop
https://snipt.net/embed/a5d498f12e6713fe0c2ed573840b8b33/
https://snipt.net/raw/a5d498f12e6713fe0c2ed573840b8b33/
a5d498f12e6713fe0c2ed573840b8b33
text
Text only
8
2016-12-07T05:32:09
True
False
False
Nov 18, 2016 at 12:02 AM
/api/public/snipt/148137/
mysql-3ba981dd
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a> <a href="#L-7">7</a> <a href="#L-8">8</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>For future reference: </span><span id="L-2"><a name="L-2"></a>To uninstall - sudo yum remove mysql mysql-server </span><span id="L-3"><a name="L-3"></a>Then backup the old mysql - mv /var/lib/mysql /var/lib/mysql_old_backup </span><span id="L-4"><a name="L-4"></a>Install - sudo yum install mysql-server </span><span id="L-5"><a name="L-5"></a>start service - sudo service mysqld start </span><span id="L-6"><a name="L-6"></a>change root password (if a password is not set at all to the user root)- mysqladmin -u root password NEWPASSWORD </span><span id="L-7"><a name="L-7"></a>change root password (if there is already an existing password set) - mysqladmin -u root -p&#39;oldpassword&#39; password newpass </span><span id="L-8"><a name="L-8"></a>stop service - sudo service mysqld stop </span></pre></div> </td></tr></table>
Copyrighted, illegal, or inappropriate content? Email [email protected].