Skip to content

Instantly share code, notes, and snippets.

View y0mbo's full-sized avatar
🏠
Serving the software engineering team at Maxcess International

John Uhri y0mbo

🏠
Serving the software engineering team at Maxcess International
View GitHub Profile

Team

  • Product manager -
  • Designer -
  • Developer -
  • Project Sponsor -

Background and problem

How are things currently? What’s the problem or how could things be better? How does this impact the business? Including customer quotes or stories can make the problem easier to feel.

@y0mbo
y0mbo / README-Template.md
Created August 8, 2020 23:04 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

PS D:\test>
>> $results = @{}
>> Get-ChildItem -Path . -Recurse -Include *.* | ForEach-Object {
>> $count = Get-Content $_.FullName | Measure-Object -Word
>> $results.Add($_.FullName, $count.Words)}
PS D:\test> $results
PS D:\test>
>> $results = @{}
>> Get-ChildItem -Path . -Recurse -Include *.* | ForEach-Object {
@y0mbo
y0mbo / USStatesDataType.cs
Created September 26, 2019 21:03 — forked from leekelleher/USStatesDataType.cs
U.S. States DropDownList DataType for Umbraco
using System;
using System.Collections.Generic;
using System.Web.UI.WebControls;
using umbraco.cms.businesslogic.datatype;
namespace Our.Umbraco.DataTypes
{
public class USStates : AbstractDataEditor
{
private DropDownList m_Control = new DropDownList();
// create a bookmark and use this code as the URL, you can now toggle the css on/off
// thanks+credit: https://dev.to/gajus/my-favorite-css-hack-32g3
javascript: (function() {
var elements = document.body.getElementsByTagName('*');
var items = [];
for (var i = 0; i < elements.length; i++) {
if (elements[i].innerHTML.indexOf('* { background:#000!important;color:#0f0!important;outline:solid #f00 1px!important; background-color: rgba(255,0,0,.2) !important; }') != -1) {
items.push(elements[i]);
}
}
@y0mbo
y0mbo / Powershell_profile.ps1
Last active December 30, 2023 23:45
Powershell_profile.ps1
# Powershell Profile
# Last change: 2023-12-30
# Location:
# > $PROFILE
# C:\Users\johnu\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
#
# If you get the error: "Running scripts is disabled on this system" when loading the Profile:
# From a PowerShell window opened As Administrator:
# > Set-ExecutionPolicy RemoteSigned
# Select "Y"1
@y0mbo
y0mbo / PowershellCommands.md
Last active January 30, 2018 17:22
Powershell commands

Search

Get-ChildItem -Path c:\path\*.* -recurse | Select-String -pattern "xxx"

Concatenate all the text files.

Get-Content c:\dev\*.txt | Out-File -FilePath c:\dev\output.txt2 -Encoding ASCII -Append
@y0mbo
y0mbo / delete_lines.md
Created January 30, 2018 16:55 — forked from shreeshga/delete_lines.md
Delete all lines matching pattern in vim

The ex command g is very useful for acting on lines that match a pattern. You can use it with the d command, to delete all lines that contain a particular pattern, or all lines that do not contain a pattern.

For example, to delete all lines containing "profile" (the first command is optional; it shows the lines that the second command will delete):

:g/profile
:g/profile/d

More complex patterns can be used, such as deleting all lines that are empty or that contain only whitespace:

@y0mbo
y0mbo / .NET .gitignore
Created March 24, 2017 14:45
This is the .gitignore I use for .NET projects
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
# User-specific files
*.suo
*.user
*.userosscache
*.sln.docstates
app.config
web.config
@y0mbo
y0mbo / Change title of a Linux terminal window
Last active March 24, 2017 14:42
Set the title of a terminal window.
In .bashrc:
function title {
echo -en "\033]2;$1\007"
}
Then in your terminal type:
title "MyTitle"