Skip to content

Instantly share code, notes, and snippets.

View Kledenai's full-sized avatar
🏠
Working from home

The Nerd Kledenai

🏠
Working from home
View GitHub Profile
# CSV file export path
$Csvfile = "C:\scripts\ExportDGs.csv"
# Get all distribution groups
$Groups = Get-DistributionGroup -ResultSize Unlimited
# Loop through distribution groups
$Groups | ForEach-Object {
$GroupDN = $_.DistinguishedName
$DisplayName = $_.DisplayName
@Kledenai
Kledenai / .gitignore
Created April 26, 2022 15:04
.gitignore portainer
# OSX leaves these everywhere on SMB shares
._*
# OSX trash
.DS_Store
# Eclipse files
.classpath
.project
.settings/**
{
"workbench.iconTheme": "material-icon-theme",
"editor.fontFamily": "Fira Code",
"editor.fontSize": 12,
"editor.fontLigatures": true,
"git.enableSmartCommit": true,
// Eslint Prettier
"editor.formatOnSave": true,
"[javascript]": {
"editor.formatOnSave": false,
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/brunorocha/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
@Kledenai
Kledenai / variaveisSintaxe.js
Created January 7, 2020 20:50
Adicionando variáveis de nome diferentes
var früh = 'Hallo Welt';
var Früh = 'Hallo Hallo Universum';
console.log(`${Früh} und ${früh}`);
var früh = 'Hallo Welt';
@Kledenai
Kledenai / bloco.js
Created January 7, 2020 19:49
Exemplo de um bloco de código
const verHora = () => {
let hora = new Date();
let h = hora.getHours();
let m = hora.getMinutes();
let s = hora.getSeconds();
console.log(`${h}:${m}:${s}`);
}
verHora();
@Kledenai
Kledenai / erroSentenca.js
Last active January 2, 2020 03:42
Erro ao criar uma sentença de código que pode ocorrer
console.log("Não se pode quebrar o
código em qualquer lugar");
alert
("Não podemos quebrar antes dos conchetes, deve se manter junto");
@Kledenai
Kledenai / sentenca.js
Last active January 2, 2020 03:14
Arquivo de organização da aula de fundamentos
console.log('Sentença de código');
alert('Sou uma setença de código');
console.warn(
'Aqui também')
@Kledenai
Kledenai / index.html
Last active December 23, 2019 15:29
Arquivo html do artigo sobre instrodução a IDE Brackets
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Introdução ao Brackets</title>
</head>
<body>
<h1>Olá Mundo</h1>