Skip to content

Instantly share code, notes, and snippets.

View w33tmaricich's full-sized avatar

Alexander Maricich w33tmaricich

  • LightFeather.io
  • Bowie, MD
View GitHub Profile
table {
font-family: arial, sans-serif;
border-collapse: collapse;
width: 100%;
}
td, th {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
@w33tmaricich
w33tmaricich / README.md
Last active January 4, 2019 15:16
md: readme template
@w33tmaricich
w33tmaricich / code.css
Created May 23, 2018 22:23
css: code block
code {
white-space: pre-wrap;
background-color: #dddddd;
border-radius: .4em;
}
.block {
display: block;
}
# simple-cdd.conf detailed configuration file
# Note: this is an example list of configuration options: it is *strongly*
# advised to merely create a new file using only the options you actually need.
# Note: Variables in lowercase are only used by simple-cdd.
# Profile Selection
#
# The following four files get included on the CD if present:
@w33tmaricich
w33tmaricich / toupper.sh
Created June 5, 2018 19:06
sh: to uppercase
variable=`echo $LOWER | awk '{print toupper($0)}'`
@w33tmaricich
w33tmaricich / usage-template.sh
Created June 5, 2018 19:15
sh: usage example
programname=$0
function usage {
echo "usage: $programname [-abch] [-f infile] [-o outfile]"
echo " -a turn on feature a"
echo " -b turn on feature b"
echo " -c turn on feature c"
echo " -h display help"
echo " -f infile specify input file infile"
echo " -o outfile specify output file outfile"
exit 1
@w33tmaricich
w33tmaricich / normalize.css
Created June 9, 2018 04:53
css: normalize
/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */
/**
* 1. Change the default font family in all browsers (opinionated).
* 2. Correct the line height in all browsers.
* 3. Prevent adjustments of font size after orientation changes in
* IE on Windows Phone and in iOS.
*/
/* Document
@w33tmaricich
w33tmaricich / xmltest.php
Last active June 25, 2018 14:04
php: load and save xml
<?php
$fileName = "fun.xml";
$keystorepath = "this/is/a/path.jks";
$keystorepassword = "keystorepassword";
$fileContents = file_get_contents($fileName);
$xml = simplexml_load_string($fileContents);
@w33tmaricich
w33tmaricich / correct.file
Created July 10, 2018 18:01
php: get file contents from regex search
This is the correct string.
@w33tmaricich
w33tmaricich / openscad-cheatsheet.md
Last active October 24, 2018 15:24
openscad: openscad cheatsheet