$ docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If your time does not permit the close supervision of your project then i am here for your help related with LAMP or LEMP Stack and others. | |
Contact Me For Engaged Your Works: | |
Telegram: https://t.me/LinuxGun | |
WhatsApp: https://wa.link/5ow7oz | |
#!/bin/bash | |
# This will remove Apache | |
sudo service apache2 stop | |
sudo apt-get purge apache2 apache2-utils apache2.2-bin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!usr/bin/python | |
""" | |
Sample python script to migrate documents from mongodb to apache couchdb database. | |
This script reads a document from mongodb and writes it to couchdb database. | |
**Script does not support the use case for 'documents with attachments' | |
""" | |
from bson import json_util, objectId | |
import json | |
from argparse import ArgumentParser | |
import requests |
using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class SanitizeUrl { | |
public static function slug($string, $space="-") { | |
$string = utf8_encode($string); | |
if (function_exists('iconv')) { | |
$string = iconv('UTF-8', 'ASCII//TRANSLIT', $string); | |
} | |
$string = preg_replace("/[^a-zA-Z0-9 \-]/", "", $string); |