Skip to content

Instantly share code, notes, and snippets.

View NateWeiler's full-sized avatar

Nathan Weiler NateWeiler

View GitHub Profile
@NateWeiler
NateWeiler / GNU Nano.md
Last active June 13, 2020 17:42
Here are some tips on how to install the latest version and how to use this editor.

GNU nano

GNU nano is a small and friendly text editor. Besides basic text editing, nano offers many extra features like an interactive search and replace, go to line and column number, auto-indentation, feature toggles, internationalization support, and filename tab completion. This is my favorite console text editor. Gnu Nano Editor

Here are some tips on how to install the latest version and how to use this editor.

Latest version

@NateWeiler
NateWeiler / download_gists.js
Created June 13, 2020 17:17
Gist to download all your gists
let request = require('request')
, path = require('path')
, fs = require('fs')
, url = "https://api.github.com/users/thomastraum/gists"
, savepath = './gists';
request(url, function (error, response, body) {
if (!error && response.statusCode == 200) {

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")

@NateWeiler
NateWeiler / Nano Linux Command-Line Text Editor.md
Last active June 13, 2020 16:38
Nano is a Linux simple text-editor that's very user friendly. In this tutorial, we will show you how to install and use the Nano text editor . Nano will allow you to edit text files in your [Linux server](https://1gbits.com/linux-vps/ "Linux server") command line environment. There are more advanced editors such as vim and emacs for Linux OS, bu…

Nano, Linux Command-Line Text Editor

Nano, Linux Command-Line Text Editor Nano is a Linux simple text-editor that's very user friendly. In this tutorial, we will show you how to install and use the Nano text editor . Nano will allow you to edit text files in your Linux server command line environment. There are more advanced editors such as vim and emacs for Linux OS, but Nano is straightforward and easy to use, which is why it's one of the most popular text editors for Unix systems.

Installing the Nano Text Editor

To install Nano On Debian / Ubuntu distributions use the following command: sudo apt-get install nano Install Nano on CentOS / RHEL using following command: yum install nano

Running Nano

@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 |

@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 / 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)
{

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 |

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

@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