- Section for faq and resources.
- Post gist / pastebin link to code excerpt and explain the problem and wanted outcome and what you’ve done or tried.
- Members are here to help not do all the work. Guidance is provided with some resources and possibly own help if commentor desires.
- Do some research first on Google, Stackoverflow, or other source.
- We’re all here to help and learn.
- If wanting to post a link to your own blog/site/work/video/tutorial ensure material is relevant and good to expand knowledge and understanding.
- Be kind and courteous to others, we were all beginners once.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Adds the copyright date | |
*/ | |
function copyright($start){ | |
//This line formats it to display just the year | |
$year = date("Y"); | |
if($year === $start){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cs ---------------------------------------------------------------------------- | |
AutoIt Version: 3.3.14.2 | |
Author: Clayton Errington | |
Script Function: | |
Run windows update across Windows 7, Windows 8, and Windows 10 | |
#ce ---------------------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
xcopy C:\folder\to\copy D:\Backup\ /D /E /C /H /R /Y /K | |
rem /D Copies files changed on or after the specified date. | |
rem /E Copies any subfolder, even if it is empty. | |
rem /C Continues copying even if errors occur. | |
rem /H Copies hidden and system files. | |
rem /R Overwrites read-only files. | |
rem /Y Overwrites existing files without prompting you. | |
rem /K Copies attributes. Typical xcopy commands reset read-only attributes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#add some color | |
export CLICOLOR=1 | |
export LSCOLORS=ExFxBxDxCxegedabagacad | |
# Clear the screen | |
alias clr=clear | |
alias cls=clear | |
alias backup=$HOME/Documents/Utils/backup.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
"""A simple python script template. | |
""" | |
from __future__ import print_function | |
import os | |
import sys | |
import argparse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
"""pyscript.py | |
A simple python script template. | |
http://ajminich.com/2013/08/01/10-things-i-wish-every-python-script-did/ | |
""" | |
import argparse | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Simple app start when "password" is correct | |
import tkinter as tk | |
class Application(tk.Frame): | |
def __init__(self, master=None): | |
super().__init__(master) | |
self.master = master | |
self.pack() | |
self.create_widgets() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Requires –Version 3 | |
# Set TLS support for Powershell and parse the JSON request | |
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | |
$npp = Invoke-WebRequest -UseBasicParsing 'https://api.github.com/repos/notepad-plus-plus/notepad-plus-plus/releases/latest' | ConvertFrom-Json | |
# Get Hashes for Checksums | |
Invoke-WebRequest -UseBasicParsing $npp.assets[0].browser_download_url -OutFile $npp.assets[0].name | |
# Get the download URL from the JSON object per 32/64 bit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#################################### | |
# | |
# Backup to NFS mount script. | |
# | |
#################################### | |
# What to backup. | |
backup_files="/home/username/Desktop" |
OlderNewer