Skip to content

Instantly share code, notes, and snippets.

View rakotomandimby's full-sized avatar

Rakotomandimby Mihamina rakotomandimby

View GitHub Profile
<?php
class ModelVerset
{
public function __construct ($book, $chapter, $verset)
{
$this->book = $book;
$this->chapter= $chapter;
$this->verset = $verset;
$this->book_fr= $this->setBookFrFromRef();
$this->book_en= $this->setBookEnFromRef();
#! /bin/sh
#
# chkconfig: - 55 45
# description: The memcached daemon is a network memory cache service.
# processname: memcached
# config: /etc/sysconfig/memcached
# pidfile: /var/run/memcached/memcached.pid
# Standard LSB functions
#. /lib/lsb/init-functions
<?php
function retournerListeVariables($template = "")
{
$listeVariables = array();
if (file_exists($template)) {
$content = file_get_contents($template);
if (preg_match_all("/{{(.*?)}}/si", $content, $aux)) {
$listeVariables = $aux[1];
}
}
#!/bin/bash
echo "Bonjour" >> /tmp/cron
@rakotomandimby
rakotomandimby / SQL-Query.cs
Last active February 14, 2020 08:38
"Invoke-Sqlcmd" and "Install-Module" not available?
using System;
using System.Data.SqlClient;
namespace RKTMB {
class Program
{
private static SqlConnection cnn;
public static void FetchAllNames()
{
string connectionString = null;