NOTE -
- Remove -h option if you are doing operation on same machine
- Remove -u , -p option if your database don't have username and password
Import database
mongorestore -h IP:port -d DB_Name -u user_name -p password <input db directory>
| sudo yum install libmpc-devel mpfr-devel gmp-devel | |
| cd ~/Downloads | |
| curl ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-4.9.2/gcc-4.9.2.tar.bz2 -O | |
| tar xvfj gcc-4.9.2.tar.bz2 | |
| cd gcc-4.9.2 | |
| ./configure --disable-multilib --enable-languages=c,c++ | |
| make -j 4 | |
| make install |
| # install openjdk | |
| sudo apt-get install openjdk-7-jdk | |
| # download android sdk | |
| wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz | |
| tar -xvf android-sdk_r24.2-linux.tgz | |
| cd android-sdk-linux/tools | |
| # install all sdk packages |
#Use this URL to get your client authorized for Instafeed.JS plugin for Instagram.
| # Basic Connection Config | |
| dev tun | |
| proto udp | |
| port 1194 | |
| keepalive 10 120 | |
| max-clients 5 | |
| # Certs | |
| ca ca.crt | |
| cert server.crt |
| /*! | |
| * By Eharry.me (https://gist.github.com/Ema4rl/b8ef90be99205ddada5ef2cd6e632ebe) | |
| */ | |
| ! function ($) { | |
| "use strict"; | |
| var slide = $("[data-slides]"), | |
| count = 0, | |
| slides = slide.data("slides"), | |
| len = slides.length, | |
| n = function () { |
Downloads directoryConsolas.ttf fileInstall font button| birthYear = formatter.getYear(profile.birthDate); currentYear = formatter.getYear(formatter.now); age = currentYear - birthYear; nextBirthDay = formatter.addYears(profile.birthDate, age); return nextBirthDay; |
| import 'dart:async'; | |
| import 'package:flutter/material.dart'; | |
| void main() => runApp(new MyApp()); | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return new MaterialApp( |
| apt-get update && apt-get install -y aptitude git lxc-utils zfsutils-linux netfilter-persistent sysstat | |
| # find the partition ID that is linked to the storage serial number. | |
| # This will prevent from losing the partition if disk mapping changes | |
| ls -l /dev/disk/by-id/ | grep sda6 | |
| zpool create -f zdata /dev/disk/by-id/wwn-0x600507604092b628236df4851535cef5-part6 | |
| ## Fixate internal IP address of the container | |
| systemctl stop lxc-net | |
| sed -i -e 's,^.*LXC_DHCP_CONFILE,LXC_DHCP_CONFILE,' /etc/default/lxc-net |