Skip to content

Instantly share code, notes, and snippets.

View wiserweb's full-sized avatar

wiserweb wiserweb

View GitHub Profile
@wiserweb
wiserweb / mongodb_3.2.x.md
Created November 21, 2016 23:19 — forked from leommoore/mongodb_3.2.x.md
Mongo 3.2.x

#MongoDB 3.2.x

##Install MongoDB To install MongoDB on ubuntu from precompiled version.

wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu1404-3.2.5.tgz
gzip -d mongodb-linux-x86_64-ubuntu1404-3.2.5.tgz
tar -xvf mongodb-linux-x86_64-ubuntu1404-3.2.5.tar

Then check put what is in the bin directory

@wiserweb
wiserweb / mongodb_ssl_with_letsencrypt.md
Created November 21, 2016 23:19 — forked from leommoore/mongodb_ssl_with_letsencrypt.md
MongoDB 3.2.x SSL with Letsencrypt

#MongoDB 3.2.x SSL with Letsencrypt Letsencrypt is an initative which aims to increase the use of encryption for websites. It basically allows people to apply for free certificates provided that they prove the they control the requested domain. We will look at the what is needed to secure your MongoDB installation. For more details on setting up a MongoDB server see MongoDB 3.2.x.

##Set the hostname We sould to set the hostname to match the name of the certificate we are going to optain.

sudo hostname mongo0.example.com

Then update the hostname file to set the server name permanently.

@wiserweb
wiserweb / functions.php
Created May 2, 2017 20:57 — forked from thecodepoetry/functions.php
Change sidebar position for woocommerce products for The7 -Mulltipurpose wordpress them
function change_sidebar_pos() {
$args = array (
'post_type' => 'product',
'post_per_page' => -1
);
query_posts( $args );
while ( have_posts() ) : the_post();
@wiserweb
wiserweb / minibian-setup.md
Created September 10, 2017 04:08 — forked from robinmonjo/minibian-setup.md
Install + configure minibian from Mac

Prepare SD card

  • Download MiniBian
  • extract MiniBian .img
  • insert SD Card
  • use disk utility to format the card with fat32
  • check from terminal (OSX) which disk the SD Card is using diskutil list
  • unount SD Card: diskutil unmountDisk /dev/diskX where X is what you found out last step
  • copy image to SD Card: sudo dd bs=1m if=<path to the .img file> of=/dev/rdiskX
  • wait until dd is finished
@wiserweb
wiserweb / Cross Table Drag Drop.html
Created May 21, 2018 22:42 — forked from davemo/Cross Table Drag Drop.html
This works for dragging, dropping table rows between two separate tables across most browsers :)
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>untitled</title>
<meta name="generator" content="TextMate http://macromates.com/">
<meta name="author" content="David Mosher">
<!-- Date: 2010-11-18 -->
{
".123" : "application/vnd.lotus-1-2-3",
".3dml" : "text/vnd.in3d.3dml",
".3g2" : "video/3gpp2",
".3gp" : "video/3gpp",
".a" : "application/octet-stream",
".aab" : "application/x-authorware-bin",
".aac" : "audio/x-aac",
".aam" : "application/x-authorware-map",
".aas" : "application/x-authorware-seg",