To get started with org-mode Link
- This is code block for Latex
# https://registry.terraform.io/providers/oracle/oci/latest/docs/resources/core_vcn | |
resource "oci_core_vcn" "test_vcn" { | |
compartment_id = "ocid1.compartment.oc1..xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" | |
# cidr block: Collection of IP's | |
# Will be assigning 255 addresses | |
cidr_block = "192.168.1.0/24" | |
display_name = "tec vcn" | |
dns_label = "tecvcn" | |
} |
To get started with org-mode Link
;; This is the basic emacs config, as seen in the video by Uncle Dave https://youtu.be/8Zkte37UOnA?si=R2B3iHLMgFb9-zwL | |
;; Remove the tool bar (file, edit, etc) and menu bar (the bar with icons) | |
;; init.el, should be in ~/.emacs.d/init.el | |
;; in windows it should be in C:\Users\user\AppData\Roaming\.emacs.d | |
(tool-bar-mode -1) | |
(menu-bar-mode -1) |
USE [test]; | |
GO | |
IF OBJECT_ID (N'dbo.Enrollments', N'U') IS NOT NULL | |
DROP TABLE [dbo].[Enrollments] | |
GO | |
IF OBJECT_ID (N'dbo.Students', N'U') IS NOT NULL | |
DROP TABLE [dbo].[Students] | |
GO | |
IF OBJECT_ID (N'dbo.Courses', N'U') IS NOT NULL |
#!/bin/bash | |
echo "Make all the appimages in user directory executable" | |
find ~ -type f -iname "*.AppImage" -exec chmod u+x {} \; |
param( | |
# Folder path where the shortcuts will be created | |
[Parameter(Mandatory=$true)] | |
[string]$Folder | |
) | |
# Test if folder is a valid path of a folder | |
if (-not (Test-Path $Folder -PathType Container)) { | |
Write-Host "Folder path is not valid" | |
exit |
#region headers | |
global using static System.Console; | |
//Implicit using List: | |
// using System | |
// using System.Collections.Generic | |
// using System.IO | |
// using System.Linq | |
// using System.Net.Http | |
// using System.Threading | |
// using System.Threading.Task |
using System.Management.Automation; // https://www.nuget.org/packages/System.Management.Automation/ | |
using Microsoft.PowerShell; // https://www.nuget.org/packages/Microsoft.PowerShell.SDK/ | |
namespace PowershellCSGist | |
{ | |
internal class Program | |
{ | |
static void Main() | |
{ | |
PowerShell ps = PowerShell.Create(); |
#This script will copy all the files in current directory into a zip | |
$Files = Get-ChildItem -Exclude *.ps1 -Name | |
Write-Host $Files | |
foreach($File in $Files){ | |
Compress-Archive -Path $File -Update -DestinationPath files.zip | |
} |