Skip to content

Instantly share code, notes, and snippets.

View NateWeiler's full-sized avatar

Nathan Weiler NateWeiler

View GitHub Profile
package main
import "fmt"
func main() {
fmt.Printf("hello world")
}
@NateWeiler
NateWeiler / background-color-with-border.css
Last active April 23, 2020 18:04
Text with different background and border color
nav {
margin:0px auto;
width:100%;
height:50px;
background-color:white;
float:left;
padding:10px;
border:2px solid red;
position: relative;
z-index: 10;
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-136931534-2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@NateWeiler
NateWeiler / A collapsible section containing markdown.md
Created June 12, 2020 07:29
How to add a collapsible section in markdown.

A collapsible section containing markdown

Click to expand!

Heading

  1. A numbered
  2. list
    • With some
    • Sub bullets

About Nano

Based on the Pico message composition editor, Nano is a simple, display-oriented text editor for Unix. Although less powerful than programs such as vi and Emacs, Nano's basic feature set makes it easier for beginners to learn and use. To add text, just type it in, and it immediately becomes part of the document. You can also use the arrow keys to move about the document. Following is a brief overview of working with files in Nano.

Creating or editing a file

To create a new file or edit an existing one, at your Unix shell prompt, type:

 Nano filename

Nano's Shortcuts  

The editor's keystrokes and their functions

| File handling

| Ctrl+S    | Save current file | | Ctrl+O | Offer to write file ("Save as") | | Ctrl+R | Insert a file into current one |

@NateWeiler
NateWeiler / Powershell add bulk.ps1
Last active June 16, 2020 05:15
add bulk users using powershell and simple csv
#import the AD module
Import-Module activedirectory
#Tu will import from csv
$ ADUsers = Import-csv C: \ Users \ Administrator \ Desktop \ users.csv
#i we loop for every user
foreach ($ User in $ ADUsers)
{
@NateWeiler
NateWeiler / cleanup-win10.ps1
Created June 12, 2020 21:27
Cleanup Windows 10 Powershell script
##
## Windows 10 cleanup script.
## Remove dodgy tracking settings, unneeded services, all apps, and optional features that come with Windows 10. Make it more like Windows 7.
## NOTE: this was tested on Creators Update (1703) and Fall Creators Update (1709). Some of this may not work as expected on newer versions.
##
## Instructions
## 1. Run this script (under Powershell as Administrator):
## powershell -ExectionPolicy Bypass .\cleanup-win10.ps1
## 2. Let it run through, you may see a few errors, this is normal
## 3. Reboot
@NateWeiler
NateWeiler / Overview of nano's shortcuts.md
Created June 13, 2020 16:13
Overview of nano's shortcuts

Overview of nano's shortcuts      

The editor's keystrokes and their functions

| File handling

| Ctrl+S    | Save current file | | Ctrl+O | Offer to write file ("Save as") | | Ctrl+R | Insert a file into current one |