Skip to content

Instantly share code, notes, and snippets.


Peter Pisarczyk ppisarczyk

  • Computech
  • United States
View GitHub Profile
ppisarczyk /
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
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 / Programming_Languages_Extensions.json
Last active February 2, 2023 19:28 — forked from aymen-mouelhi/languages.json
Programming Languages and their File Extensions
View Programming_Languages_Extensions.json
"name":"AGS Script",
ppisarczyk / ApplyClassToFileLinks.js
Last active October 4, 2020 16:57
From 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")
View ApplyClassToFileLinks.js
View Import_Into_Access_Table_in_any_column_order.vbs
' 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, _
ppisarczyk / Favorite Simple CSS Styles.css
Last active April 25, 2017 23:05 — forked from lightyrs/favorites.css
Favorite Simple CSS Styles
View Favorite Simple CSS Styles.css
.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%);

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 / 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 with some of my own usability enhancements. Pictured here with Monokai color scheme ( ).
View Chrome_Dev_Tools_Skin.css
Chrome Developer Tools - Monokai Color Theme
Author: Béres Máté Csaba / / @bjmatt /
1. Find your Chrome's user stylesheets directory:
View Techbench

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 / 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
View drop_binary.bat
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
ppisarczyk / dirtywebserver.ps1
Created August 27, 2016 03:44 — forked from obscuresec/dirtywebserver.ps1
Dirty PowerShell Webserver
View dirtywebserver.ps1
$Hso = New-Object Net.HttpListener
While ($Hso.IsListening) {
$HC = $Hso.GetContext()
$HRes = $HC.Response
$Buf = [Text.Encoding]::UTF8.GetBytes((GC (Join-Path $Pwd ($HC.Request).RawUrl)))
$HRes.ContentLength64 = $Buf.Length