Browse Source

OK.

master
Your Name 5 years ago
parent
commit
fa2997bdd3
8 changed files with 0 additions and 381 deletions
  1. +0
    -138
      2019/8.tex~
  2. +0
    -4
      2019/README
  3. +0
    -3
      2019/Windows_ID_vs_Windows_Key/docs/8.aux
  4. +0
    -184
      2019/Windows_ID_vs_Windows_Key/docs/8.log
  5. BIN
      2019/Windows_ID_vs_Windows_Key/docs/8.pdf
  6. +0
    -24
      2019/Windows_ID_vs_Windows_Key/docs/8.tex
  7. +0
    -2
      2019/Windows_ID_vs_Windows_Key/docs/8.toc
  8. +0
    -26
      2019/Windows_ID_vs_Windows_Key/resources/test.vbs

+ 0
- 138
2019/8.tex~ View File

@ -1,138 +0,0 @@
\documentclass[11pt]{article}
%Gummi|065|=)
\usepackage{graphicx}
\usepackage{caption}
\title{\textbf{Kicad Primer}}
\author{}
\date{}
\begin{document}
\maketitle
\tableofcontents
\section{Main List}
KiCad PCBNew Primer:
A quick recap, to refresh my KiCad PCB abilities\footnote{Best viewed on actual paper not a computer screen.}
\vspace{0.2in}
Summary: This document should be read before starting on a PCB layout with KiCad. These tips may apply to other PCB software as well.
\vspace{0.2in}
\begin{itemize}
\item Route Power First: Route power first, and pay attention to how many layers you will need. Depending on how many signals, and where they are going, you may need a 4 or higher layer board. 144LQFP was difficult using 100\% of the pins, but possible on a 2 layer board.
\item Case and Mounting Holes: Put the mounting holes into the PCB early, to avoid rerouting layer. Same with the case.
\item Keyboard Shortcuts: Use keyboard shortcuts. X to choose 'add trace', PageUp and PageDown to cycle through layers, there is a hotkey for changing layer types. O will add a component (enter or left click after selecting O)
\item Measuring: There is a ruler in KiCad. Extremely useful.
\item Ground Pours: If you want to do a ground pour that is split, there is the keepout area. This keepout area has an option for component or fill keepout. Choose the fill keepout. Test on a blank project to see workflow.
\item Via Size, Trace Size, Fab House Guidelines: Set the fab house guidelines into KiCad before starting, otherwise you will have to change items later. e.g. if you set the Vias to be too small, you will have to edit all vias later. There are templates available with DRC guidelines for OSHPark, as an example.
\item White Background: In 5.0.0rc2 and newer (assumed) change the background colour to white by clicking on the option. It may be greyed out, but still selects.
\item Board Edge: Edge.Cuts and use a 1 mil or .001 inch “add graphic lines” on the edge cut layer.
\item Resources: There are a variety of resources available, \cite{SparkGap,EEVBlog} on PCB design. Not including textbooks, and forums.
\item Modular: Make separate boards, and reuse what you can. Some things are trivial to layout, and don't need separate boards. Anything that is difficult to layout, consider using it's own board.
\item Net names: Give net names to tracks. This will make identification easier on layout. E.g. see here how I've added labels to nets that might not need them.
\item Component Values: If you are building by hand, add component values to the footprints silk screen to make it easier to identify. See picture.
\end{itemize}
\section{Miscellaneous Tips}
\subsection{Silk Screen}
Silk screen that goes over the board edge, can cause graphical glitches. Oshpark uses software to ignore anything over the board edge, but other pcb fabs might not.
\begin{center}
\includegraphics[scale=0.5]{../pics/bottom_makerbright.png}
\captionof{figure}{Just one possible gerber error. Here, from Silk Screen being over the board edge.}
\end{center}
\subsection{Net Names}
\begin{center}
\includegraphics[scale=0.8]{../pics/1.png}
\captionof{figure}{Giving Net Names to nets that may not need them can help in layout later. See these images...}
\includegraphics[scale=0.5]{../pics/2.png}
\captionof{figure}{This converts the mystifying names of NET-(P2-Pad4) to something human readable like R2, G2, B2.}
\includegraphics[scale=0.5]{../pics/3.png}
\captionof{figure}{By adding a text of 0.5 size to 0805 footprints, you can easily fit within the provided kicad footprint. This makes assembly easier. See here, labels such as 1uf, or 2.7k.}
\end{center}
\subsection {How to import graphical pictures into Kicad}
\vspace{0.2in}
This is how I convert pictures to silkscreen. First, download any picture that can be converted to Black and White. Monochrome pictures are an option, or you can take a coloured image and convert it in GIMP. To convert a coloured image in GIMP do the following:
\begin{itemize}
\item Open picture in GIMP
\item Set \textbf{image - mode} to \textbf{Greyscale} (top menu)
\item Now we get a preview, but this is varying levels of Black and white, we want only two colours, so choose \textbf{colours - threshold} (top menu) and choose the amount you want (the defaults are usually acceptable)
\item Use the \textbf{Select By Color Tool} from the tools menu and choose the black that will be turned into white for the silkscreen.
\item Copy that (top menu - edit - copy)
\item Paste it as a new layer (top menu - edit - paste as new layer)
\item Hide the old layer.
\item Select all the black on the new layer with the color tool
\item \textbf{edit - fill with bg colour}, if the bg colour is white.
\item Resize if needed, and export as png
\end{itemize}
A short synopsis of what this process entails for those more intimate with photo editing programs is:
\vspace{0.2in}
Get a black and white picture. Make the part you want white. Make the background transparent. You should now have only a white ink layer of what the silk screen will be, with a transparent background. Save as png. Import into bitmap 2 component.
\vspace{0.2in}
\begin{thebibliography}{99}
\bibitem{SparkGap}
Spark Gap Podcast: 21,22, and 48, http://thesparkgap.net/the-spark-gap-podcast-episode-21/, http://thesparkgap.net/the-spark-gap-podcast-episode-22/, http://thesparkgap.net/the-spark-gap-podcast-episode-48/
\bibitem{EEVBlog}
David Jones PCBDesignTutorialRevA, http://alternatezone.com/electronics/pcbdesign.htm, http://alternatezone.com/electronics/files/PCBDesignTutorialRevA.pdf
\end{thebibliography}
\end{document}

+ 0
- 4
2019/README View File

@ -1,4 +0,0 @@
#Windows ID vs Windows Product Key
See how an unsuspecting user thinks they copied the valid Windows Key but instead only copied the oem ID.
Windows 1, User 0
Also a vbs script from lenovo in resources to grab the actual key from the machine (if the key isn't corrupted).

+ 0
- 3
2019/Windows_ID_vs_Windows_Key/docs/8.aux View File

@ -1,3 +0,0 @@
\relax
\@writefile{toc}{\contentsline {section}{\numberline {1}Overview}{1}}
\@writefile{toc}{\contentsline {section}{\numberline {2}Details}{1}}

+ 0
- 184
2019/Windows_ID_vs_Windows_Key/docs/8.log View File

@ -1,184 +0,0 @@
This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2015/dev/Debian) (preloaded format=pdflatex 2018.11.28) 6 FEB 2019 18:51
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**/home/layoutdev/Desktop/code/documentation_general/IT_General/2019/8.tex
(/home/layoutdev/Desktop/code/documentation_general/IT_General/2019/8.tex
LaTeX2e <2014/05/01>
Babel <3.9l> and hyphenation patterns for 2 languages loaded.
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size11.clo
File: size11.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty
Package: graphicx 2014/04/25 v1.0g Enhanced LaTeX Graphics (DPC,SPQR)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty
Package: keyval 2014/05/08 v1.15 key=value parser (DPC)
\KV@toks@=\toks14
)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty
Package: graphics 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty
Package: trig 1999/03/16 v1.09 sin cos tan (DPC)
)
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/graphics.cfg
File: graphics.cfg 2010/04/23 v1.9 graphics configuration of TeX Live
)
Package graphics Info: Driver file: pdftex.def on input line 91.
(/usr/share/texlive/texmf-dist/tex/latex/pdftex-def/pdftex.def
File: pdftex.def 2011/05/27 v0.06d Graphics/color for pdfTeX
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/infwarerr.sty
Package: infwarerr 2010/04/08 v1.3 Providing info/warning/error messages (HO)
)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ltxcmds.sty
Package: ltxcmds 2011/11/09 v1.22 LaTeX kernel commands for general use (HO)
)
\Gread@gobject=\count87
))
\Gin@req@height=\dimen103
\Gin@req@width=\dimen104
)
(/usr/share/texlive/texmf-dist/tex/latex/caption/caption.sty
Package: caption 2013/05/02 v3.3-89 Customizing captions (AR)
(/usr/share/texlive/texmf-dist/tex/latex/caption/caption3.sty
Package: caption3 2013/05/02 v1.6-88 caption3 kernel (AR)
Package caption3 Info: TeX engine: e-TeX on input line 57.
\captionmargin=\dimen105
\captionmargin@=\dimen106
\captionwidth=\dimen107
\caption@tempdima=\dimen108
\caption@indent=\dimen109
\caption@parindent=\dimen110
\caption@hangindent=\dimen111
)
\c@ContinuedFloat=\count88
) (./8.aux)
\openout1 = `8.aux'.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 8.
LaTeX Font Info: ... okay on input line 8.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 8.
LaTeX Font Info: ... okay on input line 8.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 8.
LaTeX Font Info: ... okay on input line 8.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 8.
LaTeX Font Info: ... okay on input line 8.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 8.
LaTeX Font Info: ... okay on input line 8.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 8.
LaTeX Font Info: ... okay on input line 8.
(/usr/share/texlive/texmf-dist/tex/context/base/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
\scratchcounter=\count89
\scratchdimen=\dimen112
\scratchbox=\box26
\nofMPsegments=\count90
\nofMParguments=\count91
\everyMPshowfont=\toks15
\MPscratchCnt=\count92
\MPscratchDim=\dimen113
\MPnumerator=\count93
\makeMPintoPDFobject=\count94
\everyMPtoPDFconversion=\toks16
) (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty
Package: pdftexcmds 2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO
)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifluatex.sty
Package: ifluatex 2010/03/01 v1.3 Provides the ifluatex switch (HO)
Package ifluatex Info: LuaTeX not detected.
)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifpdf.sty
Package: ifpdf 2011/01/30 v2.3 Provides the ifpdf switch (HO)
Package ifpdf Info: pdfTeX in PDF mode is detected.
)
Package pdftexcmds Info: LuaTeX not detected.
Package pdftexcmds Info: \pdf@primitive is available.
Package pdftexcmds Info: \pdf@ifprimitive is available.
Package pdftexcmds Info: \pdfdraftmode found.
)
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty
Package: epstopdf-base 2010/02/09 v2.5 Base part for package epstopdf
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/grfext.sty
Package: grfext 2010/08/19 v1.1 Manage graphics extensions (HO)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/kvdefinekeys.sty
Package: kvdefinekeys 2011/04/07 v1.3 Define keys (HO)
))
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/kvoptions.sty
Package: kvoptions 2011/06/30 v3.11 Key value format for package options (HO)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
Package: kvsetkeys 2012/04/25 v1.16 Key value parser (HO)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/etexcmds.sty
Package: etexcmds 2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)
Package etexcmds Info: Could not find \expanded.
(etexcmds) That can mean that you are not using pdfTeX 1.50 or
(etexcmds) that some package has redefined \expanded.
(etexcmds) In the latter case, load this package earlier.
)))
Package grfext Info: Graphics extension search list:
(grfext) [.png,.pdf,.jpg,.mps,.jpeg,.jbig2,.jb2,.PNG,.PDF,.JPG,.JPE
G,.JBIG2,.JB2,.eps]
(grfext) \AppendGraphicsExtensions on input line 452.
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg
File: epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Liv
e
))
Package caption Info: Begin \AtBeginDocument code.
Package caption Info: End \AtBeginDocument code.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <12> on input line 10.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <8> on input line 10.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <6> on input line 10.
(./8.toc)
\tf@toc=\write3
\openout3 = `8.toc'.
[1
{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (./8.aux) )
Here is how much of TeX's memory you used:
2534 strings out of 495020
40239 string characters out of 6181323
93796 words of memory out of 5000000
5750 multiletter control sequences out of 15000+600000
8195 words of font info for 29 fonts, out of 8000000 for 9000
14 hyphenation exceptions out of 8191
38i,4n,38p,424b,187s stack positions out of 5000i,500n,10000p,200000b,80000s
</usr/share/tex
live/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx10.pfb></usr/share/texlive/t
exmf-dist/fonts/type1/public/amsfonts/cm/cmbx12.pfb></usr/share/texlive/texmf-d
ist/fonts/type1/public/amsfonts/cm/cmr10.pfb>
Output written on 8.pdf (1 page, 44132 bytes).
PDF statistics:
20 PDF objects out of 1000 (max. 8388607)
13 compressed objects within 1 object stream
0 named destinations out of 1000 (max. 500000)
1 words of extra memory for PDF output out of 10000 (max. 10000000)

BIN
2019/Windows_ID_vs_Windows_Key/docs/8.pdf View File


+ 0
- 24
2019/Windows_ID_vs_Windows_Key/docs/8.tex View File

@ -1,24 +0,0 @@
\documentclass[11pt]{article}
%Gummi|065|=)
\usepackage{graphicx}
\usepackage{caption}
\title{\textbf{Windows Licensing 7: Rectal Insertion}}
\author{}
\date{}
\begin{document}
\maketitle
\tableofcontents
\section{Overview}
Windows 7 is a beast to activate. Constant cat \& mouse game, where the admins are slowly trained that the best way to get it activated is to pay for it. But what if you did pay, and then it gets disactivated somehow? Pay for it again. It's the fastest way. Only a fool goes down the rabbit hole of trying to illegally activate a legal copy of Win7.
\section{Details}
User had Windows 8. Their IT advised them to downgrade to 7 because 8 was garbage. 5-10 years later, the license unexpectedly becomes inactive.
Notes: The users had actually taken a screenshot of the windows ID, in the system screen, but this wasn't the windows key. It was the OEM ID. That was a trap. If it says OEM, you can get the windows key from a vbs script provided on lenovos webpage for finding win7 keys, (I'll include it in the git). That is what they should've used.
Cat \& mouse. Even for paying customers. If there is a way to screw you, they will screw you. You might even take a picture of what you thought was the ID. Well, it wasn't the ID.
\end{document}

+ 0
- 2
2019/Windows_ID_vs_Windows_Key/docs/8.toc View File

@ -1,2 +0,0 @@
\contentsline {section}{\numberline {1}Overview}{1}
\contentsline {section}{\numberline {2}Details}{1}

+ 0
- 26
2019/Windows_ID_vs_Windows_Key/resources/test.vbs View File

@ -1,26 +0,0 @@
Set WshShell = CreateObject("WScript.Shell")
MsgBox ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId"))
Function ConvertToKey(Key)
Const KeyOffset = 52
i = 28
Chars = "BCDFGHJKMPQRTVWXY2346789"
Do
Cur = 0
x = 14
Do
Cur = Cur * 256
Cur = Key(x + KeyOffset) + Cur
Key(x + KeyOffset) = (Cur \ 24) And 255
Cur = Cur Mod 24
x = x -1
Loop While x >= 0
i = i -1
KeyOutput = Mid(Chars, Cur + 1, 1) & KeyOutput
If (((29 - i) Mod 6) = 0) And (i <> -1) Then
i = i -1
KeyOutput = "-" & KeyOutput
End If
Loop While i >= 0
ConvertToKey = KeyOutput
End Function

Loading…
Cancel
Save