Skip to content

Instantly share code, notes, and snippets.

View mutuadavid93's full-sized avatar
🎯
Focusing

David Mutua mutuadavid93

🎯
Focusing
  • Squad Africa
  • NAIROBI
View GitHub Profile
@mutuadavid93
mutuadavid93 / linux_commands.md
Last active August 15, 2023 08:02
Linux Commands

######################################################

Linux Commands

######################################################

rsync

Transfer files between servers.

// Static Types ::
// e.g. Structs can lead to a nightmare when initializing them
// if they are deeply embedded which translates to nesting.
// Instead use Structs plus Interfaces to decouple and reuse stuff.
//
//
package main
import "fmt"
package main
import (
"fmt"
"github.com/jinzhu/gorm"
_ "github.com/jinzhu/gorm/dialects/postgres"
)
type User struct {
package main
import (
"database/sql"
"fmt"
_ "github.com/lib/pq"
)
// Reference :: https://pkg.go.dev/github.com/lib/pq?tab=doc
###################################
Normalization Reviewed
###################################
A. Ist Normal Form
==================
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: mariadb
name: mariadb-deployment
spec:
replicas: 1
selector:
matchLabels:
/**
A Project in the Future using Skeleton CSS.
*/
var SharePointNews = function() {
// Use Powershell to get siteGUID.
this.siteGUID = '504db699a61e4ad4b39bbeae516e0af4' || '';
// use JSOM to get webGUID:
this.webGUID = '769d73c8a3f240e18129382f5f6d6ce9';
this.api_domain =
/*********************************
*
* JSOM: WAKE SHAREPOINT MODAL:
*
********************************/
// Create your Link and Then give it an ID:
// Pass the the Id and List name into spModal() below:
// That is it, Dynamic SharePoint Modal it's.
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
* {
box-sizing: border-box;
}
#myInput {
// BEGIN PERSON OR GROUP QUERY
// Queery Person or Group Properties
function getItemDetails(webUrl,listTitle,itemId,selectFields, expandFields){
var endpointUrl = webUrl + "/_api/web/lists/getbytitle('" + listTitle + "')/items(" + itemId + ")";
endpointUrl+= '?$select=' + selectFields.join(",");
endpointUrl+= '&$expand=' + expandFields.join(",");
return executeRequest(endpointUrl,'GET');
}