Skip to content

Instantly share code, notes, and snippets.

View MERZAK-X's full-sized avatar
:electron:
X

Mohamed MERZAK MERZAK-X

:electron:
X
View GitHub Profile
This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<html>
<head>
<meta name="databricks-html-version" content="1">
<title>Assignment - Databricks</title>
<meta charset="utf-8">
<meta name="google" content="notranslate">
<meta name="robots" content="nofollow, noindex">
<meta http-equiv="Content-Language" content="en">

Set the base image to Ubuntu must be first instruction - use docker search to find images

FROM ubuntu # <image>
FROM ubuntu:latest # - <image>:<tag>
FROM ubuntu:precise (LTS)

Set the maintainer info

#!/bin/bash
CHROOTDIR=/media/root/test
mkdir -p ${CHROOTDIR}/bin
mkdir -p ${CHROOTDIR}/lib64
mkdir -p ${CHROOTDIR}/etc/dropbear
mkdir -p ${CHROOTDIR}/dev
mkdir -p ${CHROOTDIR}/tmp
@MERZAK-X
MERZAK-X / collapsible-section.md
Created June 30, 2020 16:41
Collapsible section in MarkDown
Show code
<details>
  <summary><b>Show code</b></summary>

</details>
@MERZAK-X
MERZAK-X / Export2CSV.cs
Created May 8, 2020 01:50
Export DataGridView to CSV (filename = file path)
public static bool export2CSV(DataGridView dgv, string filename)
{
bool pass = false;
/*// Method 1
dgv.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText; // Choose whether to write header. Use EnableWithoutHeaderText instead to omit header.
dgv.SelectAll(); // Select all the cell
DataObject dataObject = dgv.GetClipboardContent(); // Copy selected cells to DataObject
if (dataObject != null)
{
// Get the text of the DataObject, and serialize it to a file