Skip to content

Instantly share code, notes, and snippets.

View ppisarczyk's full-sized avatar

Peter Pisarczyk ppisarczyk

  • Computech
  • United States
View GitHub Profile
@ppisarczyk
ppisarczyk / Programming_Languages_Extensions.json
Last active April 23, 2024 20:19 — forked from aymen-mouelhi/languages.json
Programming Languages and their File Extensions
[
{
"name":"ABAP",
"type":"programming",
"extensions":[
".abap"
]
},
{
"name":"AGS Script",
@ppisarczyk
ppisarczyk / process.py
Last active October 4, 2020 22:09
Process Files with Progress Bar
def printProgressBar(iteration, total, prefix='', suffix='',
decimals=1, length=100, fill='█'):
"""
Call in a loop to create terminal progress bar
@params:
iteration - Required : current iteration (Int)
total - Required : total iterations (Int)
prefix - Optional : prefix string (Str)
suffix - Optional : suffix string (Str)
decimals - Optional : positive number of decimals in percent complete (Int)
@ppisarczyk
ppisarczyk / ApplyClassToFileLinks.js
Last active October 4, 2020 16:57
From https://css-tricks.com/snippets/jquery/automatically-discover-document-links-and-apply-classThis will look through every a element on the page. If the href attribute of it has a .doc, .xls, or .pdf in it, it will apply the appropriate class name to it (e.g. class="doc")

TechBench dump

Generated on 2017-02-28T18:20:00+0100 using:
- TechBench dump script (tbdump-web)
- FreeBSD 10.3-STABLE amd64 devil-1_0_4
- curl 7.52.1 (amd64-portbld-freebsd10.3) libcurl/7.52.1 OpenSSL/1.0.1s zlib/1.2.8 libssh2/1.8.0 nghttp2/1.18.1

Number of products: 225
@ppisarczyk
ppisarczyk / Get-AdDnsRecords.ps1
Last active April 25, 2017 23:09 — forked from obscuresec/Get-AdDnsRecords
Get-AdDnsRecords
function Get-ADDNSRecords {
<#
update of dns-dump.ps1 by Michael B. Smith
michael at smithcons dot com
https://github.com/mmessano/PowerShell/blob/master/dns-dump.ps1
#>
Param(
[string]$zone = "$env:USERDNSDOMAIN",
[string]$dc = "$(($env:LOGONSERVER).trim('\'))"
)
@ppisarczyk
ppisarczyk / Chrome_Dev_Tools_Skin.css
Last active April 25, 2017 23:06 — forked from lightyrs/Custom.css
My Chrome Dev Tools Skin incorporates the sleek visual style of codepen.io with some of my own usability enhancements. Pictured here with Monokai color scheme ( http://imgur.com/mbrqt ).
/*
Chrome Developer Tools - Monokai Color Theme
Author: Béres Máté Csaba / bjmatt.com / @bjmatt / beres.mate@bjmatt.com
-----------------------------------------------------------------------------------------------------------
Installation:
1. Find your Chrome's user stylesheets directory:
@ppisarczyk
ppisarczyk / Favorite Simple CSS Styles.css
Last active April 25, 2017 23:05 — forked from lightyrs/favorites.css
Favorite Simple CSS Styles
.subtle-gradient-1 {
background-image: linear-gradient(to right, #f0fcff 0%, #f2f4ff 100%);
}
.pastel-gradient-1 {
background-image: linear-gradient(to left bottom, hsl(253, 100%, 85%) 0%, hsl(132, 100%, 85%) 100%);
}
' The adjacent data entry requires that you know the position of each column. The SQL provides
' an alternative that allows you to perform data entry using the name of a column
' instead of its position. This allows you to provide the values of fields in any order of your choice.
' To perform data entry at random, you must provide a list of the columns
' of the table in the order of your choice. You can either use all columns or
' provide a list of the same columns but in your own order. Here is an example:
Private Sub btnCreateRecord_Click(ByVal sender As System.Object, _

Trello CSS Guide

“I perfectly understand our CSS. I never have any issues with cascading rules. I never have to use !important or inline styles. Even though somebody else wrote this bit of CSS, I know exactly how it works and how to extend it. Fixes are easy! I have a hard time breaking our CSS. I know exactly where to put new CSS. We use all of our CSS and it’s pretty small overall. When I delete a template, I know the exact corresponding CSS file and I can delete it all at once. Nothing gets left behind.”

You often hear updog saying stuff like this. Who’s updog? Not much, who is up with you?

This is where any fun you might have been having ends. Now it’s time to get serious and talk about rules.

Writing CSS is hard. Even if you know all the intricacies of position and float and overflow and z-index, it’s easy to end up with spaghetti code where you need inline styles, !important rules, unused cruft, and general confusion. This guide provides some architecture for writing CSS so it stays clean and ma

@ppisarczyk
ppisarczyk / drop_binary.bat
Created August 27, 2016 03:51 — forked from mattifestation/drop_binary.bat
Drop binary data from the command line w/o needing PowerShell
echo -----BEGIN CERTIFICATE----- > encoded.txt
echo Just Base64 encode your binary data
echo TVoAAA== >> encoded.txt
echo -----END CERTIFICATE----- >> encoded.txt
certutil -decode encoded.txt decoded.bin