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
    
  
  
    
  | #!/bin/bash | |
| #title :parse_file.sh | |
| #description :parse file name into a single file | |
| #author :Bertrand Martel | |
| #date :13/08/2015 | |
| file_list=`ls $1` | |
| IFS=$'\n' #line delimiter | 
  
    
      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
    
  
  
    
  | <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Range between dates with plus one day value</title> | |
| <script src="http://momentjs.com/downloads/moment.min.js"></script> | |
| <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> | |
| <link rel="stylesheet" type="text/css" href="./jquery.datetimepicker.min.css"/> | |
| <script> | 
  
    
      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
    
  
  
    
  | #!/bin/bash | |
| IFS=$'\n' #line delimiter | |
| #empty your output file | |
| cp /dev/null "$2" | |
| for i in $(cat "$1"); do | |
| is_gin=`echo $i | grep "GIN+"` | 
  
    
      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
    
  
  
    
  | struct dmentry{ | |
| int func; | |
| struct dmarray *dmarray; | |
| }; | |
| struct dmparam { | |
| char *p; | |
| char *v; | 
  
    
      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
    
  
  
    
  | #!/bin/sh | |
| #title :mongod | |
| #author :Bertrand Martel | |
| #date :15/08/2015 | |
| #description :start/stop/restart mongod | |
| ######################################### | |
| ### install : cp mongod /etc/init.d/ | |
| # update-rc.d mongod defaults | |
| ### uninstall : update-rc.d -f mongodb remove | 
  
    
      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
    
  
  
    
  | ######################################################################## | |
| # create a video from one or several images in sequence ################ | |
| ######################################################################## | |
| #create a video from input image ( with name image1.jpg image2.jpg image3.jpg ...) with a framerate of 1 image per second | |
| ffmpeg -f image2 -pattern_type sequence -start_number 0 -r 1 -i picture%d.jpg -s 1920x1080 picture.avi | |
| ######################################################################## | |
| # add an image to video ################################################ | |
| ######################################################################## | 
  
    
      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
    
  
  
    
  | #/bin/bash | |
| #title :append_new_picture.sh | |
| #author :Bertrand Martel | |
| #date :16/08/2015 | |
| #description :create video if not exist and append a series of image to this video taken from WEB | |
| if [ -z $1 ] | |
| then | |
| echo "output directory is required" | |
| exit | 
 
        
  
    
      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
    
  
  
    
  | #!/bin/bash | |
| declare -A map=([toto]=1 [tata]=2) | |
| YOUR_STRING="titi" | |
| CHECK=`echo "${!map[@]}" | grep -o $YOUR_STRING` | |
| if [ -z $CHECK ]; then | |
| #create the entry for it and set its count (value) to 1 | 
