Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1B - Decimal:
27
| // ==UserScript== | |
| // @name piratepowered.ga download improved | |
| // @namespace sak32009-piratepowered-download-improved | |
| // @description piratepowered.ga download improved | |
| // @author Sak32009 | |
| // @version 1.0.2 | |
| // @homepageURL https://gist.github.com/Sak32009/661ccebe953c392b0a6eeee01cc0c62c/ | |
| // @updateURL https://gist.github.com/Sak32009/661ccebe953c392b0a6eeee01cc0c62c/raw/sak32009-piratepowered-download-improved.user.js | |
| // @downloadURL https://gist.github.com/Sak32009/661ccebe953c392b0a6eeee01cc0c62c/raw/sak32009-piratepowered-download-improved.user.js | |
| // @match *://piratepowered.ga/* |
| #!/bin/bash | |
| hash pandoc 2>/dev/null || { echo >&2 "Please install pandoc. Aborting."; exit 1; } | |
| hash pdftk 2>/dev/null || { echo >&2 "Please install pdftk. Aborting."; exit 1; } | |
| hash ebook-convert 2>/dev/null || { echo >&2 "Please install ebook-convert. Aborting."; exit 1; } | |
| SOURCE=Usable-Software-Design.md | |
| PRINT_DESTINATION=Usable-Software-Design-print.pdf | |
| PDF_DESTINATION=Usable-Software-Design.pdf | |
| PREVIEW_DESTINATION=Usable-Software-Design-Preview.pdf |
| # From https://technet.microsoft.com/en-us/library/ff730944.aspx | |
| # This will open an internet explorer window that will display all installed windows font names in their corresponding font. | |
| [void] [System.Reflection.Assembly]::LoadWithPartialName("System.Drawing") | |
| $objFonts = New-Object System.Drawing.Text.InstalledFontCollection | |
| $colFonts = $objFonts.Families | |
| $objIE = New-Object -com "InternetExplorer.Application" | |
| $objIE.Navigate("about:blank") | |
| $objIE.ToolBar = 0 |
Command Line
pry -r ./config/app_init_file.rb - load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb - load your rails into a pry sessionDebugger
Problem: When linking to the raw version of a gist, the link changes with each revision.
Solution:
To return the first file from a gist: https://gist.github.com/[gist_user]/[gist_id]/raw/
To get a file from multi–file gist: https://gist.github.com/[gist_user]/[gist_id]/raw/[file_name]
| $:.unshift("E:\\Tools\\metasm") | |
| require 'metasm' | |
| require 'optparse' | |
| $ASMCODE = | |
| # Win32 PEB based API Resolver | |
| # Metasm seems to fail on jecxz so we compile using nasm and use the binary | |
| "\xe8\x56\x00\x00\x00\x53\x55\x56\x57\x8b\x6c\x24\x18\x8b\x45\x3c" + | |
| "\x8b\x54\x05\x78\x01\xea\x8b\x4a\x18\x8b\x5a\x20\x01\xeb\xe3\x32" + |
| /*--- checkForBadJavascripts() | |
| This is a utility function, meant to be used inside a Greasemonkey script that | |
| has the "@run-at document-start" directive set. | |
| It Checks for and deletes or replaces specific <script> tags. | |
| */ | |
| function checkForBadJavascripts (controlArray) { | |
| /*--- Note that this is a self-initializing function. The controlArray | |
| parameter is only active for the FIRST call. After that, it is an | |
| event listener. |