Skip to content

Instantly share code, notes, and snippets.

View quickstep25's full-sized avatar

Doug Hill quickstep25

View GitHub Profile
@quickstep25
quickstep25 / update_branch_from_master
Last active November 19, 2015 03:46
Update branch to the latest master
# Checkout the branch
git checkout branchname
# Get the latest master
git fetch
# Set to lastest master
git rebase origin/master
# Push changes
@quickstep25
quickstep25 / app.html
Last active March 3, 2018 21:54
Example using a Tree widget to show how components are used with x-templates. REF: https://jsfiddle.net/pnqzspoe/1362/
<!-- item template -->
<script type="text/x-template" id="item-template">
<li>
<div
:class="{bold: isFolder}"
@click="toggle"
@dblclick="changeType">
{{ model.name }}
<span v-if="isFolder">[{{ open ? '-' : '+' }}]</span>
</div>
| Variable | Output |
|--|--|
| %s | String |
| %d | Integer |
| %f | Float Point Value |
| %o | DOM Object |
| %0 | JavaScript Object |
| %c | Apply CSS Rules |
Example:
@quickstep25
quickstep25 / last_login_access.txt
Last active June 2, 2020 17:09
MacOS Login Attempts
-- Show Last Login(s)
last -10
-- Show Successful Logins
grep -i login /var/log/system.log
-- Show Failed Attempts
grep -i authe /var/log/system.log
@quickstep25
quickstep25 / pgl_dev_ops_basic_pipeline.yml
Last active June 2, 2020 17:09
Azure DevOps Build / Release / Deploy Stage Pipeline
stages:
- stage: Build
jobs:
- job: Build
pool:
vmImage: 'Ubuntu-16.04'
continueOnError: true
steps:
- script: echo my first build job
- stage: Deploy
@quickstep25
quickstep25 / git_setup_useful_commands.txt
Last active June 2, 2020 17:09
Git Setup and Useful Commands
Setup
-----
git clone <repo>
clone the repository specified by <repo>; this is similar to "checkout" in
some other version control systems such as Subversion and CVS
Add colors to your ~/.gitconfig file:
[color]
@quickstep25
quickstep25 / IMW_UnHide_Sheets.vb
Last active May 4, 2024 22:08
Code to unhide all Excel worksheets within a workbook.
' PASTE INTO IMMEDIATE WINDOW
for each sh in worksheets: sh.visible=true: next sh
mixin with(val)
<!-- ko with: !{val} -->
block
<!-- /ko -->
mixin if(val)
<!-- ko if: !{val} -->
block
<!-- /ko -->
@quickstep25
quickstep25 / quicken_import.csv
Last active August 14, 2020 11:56
# Mapping - Date = Date - Description = - Notes = Memo - Labels = Tags - Transaction Type = Debit or Credit (don't use negative amounts) - Amount = Amount - Category = Category - Account Name = Reference - Original Description = Unknown ![](https
Date Description Original Description Amount Transaction Type Category Account Name Labels Notes
@quickstep25
quickstep25 / vscode-snippets.json
Created August 12, 2020 08:26
Install these snippets into Visual Studio Code and then just copy & paste into the Wiki.
{
"Example Wrapper": {
"prefix": "bsmd",
"body": [
"<div style=\"padding: 1.5rem; margin: 0; border: 0.2rem solid #F8F9FA;\">",
"",
"$TM_SELECTED_TEXT",
"",
"</div>"
],