Start command:
ddrescue -d /dev/sda output.img output.mapfile
NOTE: If direct disc access is not available in your system, try raw devices.
Unless otherwise noted (either in this file or in a file's copyright section) the contents of this gist are Copyright ©️2020 by Christopher Allen, and are shared under spdx:Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.) open-source license.
If you more tips and advice like these, you can become a monthly patron on my GitHub Sponsor Page for as little as $5 a month; and your contributions will be multipled, as GitHub is matching the first $5,000! This gist is all about Homebrew, so if you like it you can support it by donating to them or becoming one of their Github Sponsors.
# Inspirations from: | |
# - https://github.com/tex2e/blog/blob/master/_posts/powershell/2021-01-11-open.md?plain=1 | |
# - https://github.com/PowerShell/Community-Blog/blob/main/Posts/2022/07/cheat-sheet-console-experience.md?plain=1 | |
# Other PowerShell profiles | |
# - https://github.com/mikemaccana/powershell-profile/blob/master/defaults.ps1 | |
# - https://github.com/staxmanade/DevMachineSetup/blob/master/initProfile.ps1 | |
# - https://github.com/epoweripione/dotfiles/blob/main/powershell/Microsoft.PowerShell_profile.ps1 | |
# - https://github.com/effs/dotfiles/blob/main/powershell/pwsh7_profile.ps1 | |
# - https://github.com/razy69/Powershell/blob/master/Doc/Machine_Profile.ps1 |
If you, like me, resent every dollar spent on commercial PDF tools,
you might want to know how to change the text content of a PDF without
having to pay for Adobe Acrobat or another PDF tool. I didn't see an
obvious open-source tool that lets you dig into PDF internals, but I
did discover a few useful facts about how PDFs are structured that
I think may prove useful to others (or myself) in the future. They
are recorded here. They are surely not universally applicable --
the PDF standard is truly Byzantine -- but they worked for my case.
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
"""Script to draw bounding boxes and text from a Tesseract box file. | |
The script takes an image TIFF_FILE, draws the text and bounding boxes | |
of the corresponding BOX_FILE and saves the resulting OUT_FILE. | |
Tesseract box file columns: | |
<symbol> <left> <bottom> <right> <top> <page> |
C:\Blizzard\World of Warcraft\
)._retail_/Interface/AddOns/!KalielsTracker
folder.git apply --whitespace=fix Utils.lua.patch
. You can read more about this here: stackoverflow.com/a/40919520/13351(This is a translation of the original article in Japanese by moratorium08.)
(UPDATE (22/3/2019): Added some corrections provided by the original author.)
Writing your own OS to run on a handmade CPU is a pretty ambitious project, but I've managed to get it working pretty well so I'm going to write some notes about how I did it.
/opt/jabba/jdk/openjdk@1.17/bin/java -Xms30g -Xmx30g -XX:+UseG1GC -XX:+PrintCodeCache -XX:NonProfiledCodeHeapSize=512m -XX:NonNMethodCodeHeapSize=32m -XX:ReservedCodeCacheSize=2g -XX:InitialCodeCacheSize=512m -XX:CodeCacheExpansionSize=2m -XX:+PrintFlagsFinal | |
[Global flags] | |
int ActiveProcessorCount = -1 {product} {default} | |
uintx AdaptiveSizeDecrementScaleFactor = 4 {product} {default} | |
uintx AdaptiveSizeMajorGCDecayTimeScale = 10 {product} {default} | |
uintx AdaptiveSizePolicyCollectionCostMargin = 50 {product} {default} | |
uintx AdaptiveSizePolicyInitializingSteps = 20 {product} {default} | |
uintx AdaptiveSizePolicyOutputInterval = 0 {product} {default} | |
uintx AdaptiveSizePolicyWeight = 10 |
var tablistcontainer = (document.getElementById("history-app") | |
.shadowRoot.getElementById("synced-devices") | |
.shadowRoot.getElementById("synced-device-list")); | |
/* for sessionbuddy import */ | |
var output = {tabs: []}; | |
/* run through synced device cards *only* */ | |
[].forEach.call(tablistcontainer.children, curNode => { | |
if (curNode.nodeName !== "HISTORY-SYNCED-DEVICE-CARD") { | |
return; |
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections | |
add-apt-repository -y ppa:webupd8team/java | |
apt-get -qq update | |
apt-get install -y oracle-java8-installer xfce4 xvfb | |
wget http://download.nomachine.com/download/4.6/Linux/nomachine_4.6.4_13_amd64.deb | |
dpkg -i nomachine_4.6.4_13_amd64.deb | |
echo 'DefaultDesktopCommand "/usr/bin/X11/startxfce4"' >> /usr/NX/etc/server.cfg | |
echo "PhysicalDesktopAuthorization 0" >> /usr/NX/etc/server.cfg | |
echo "VirtualDesktopAuthorization 0" >> /usr/NX/etc/server.cfg | |
COOKIE=`ps -ef | md5sum | cut -f 1 -d " "` |