This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Benchmark script for SBCs (Debian or Ubuntu). | |
# | |
# WARNING: This script is meant to be run as the root user. | |
# This script should never be run on a system/partition you | |
# care about. You should only run this on a system that you | |
# intend to use only for benchmarking and can reinstall or | |
# re-flash easily. | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Vue from "vue"; | |
import Store from './some_vuex_store.js' | |
import Component1 from './some_comp.vue' | |
import Component2 from './some_comp2.vue' | |
window.addEventListener('load', () => { | |
const components = {Component1, Component2}; | |
Object.keys(components).forEach((key) => { | |
components[key] = Vue.extend(Object.assign(components[key], { |
Flamegraphing in Rust can now be done with a new cargo
subcommand. Please check this out before embarking on the legacy journey below:
https://github.com/flamegraph-rs/flamegraph
- Install
perf
, using Brendan Gregg's guide: http://www.brendangregg.com/perf.html#Prerequisites - Install
flamegraph
from repo:
Caution
Due to the subject of this Gist there are a lot of spam/scam comments. I try to remove them all as soon as possible. I don't recommend you to click on any link in the comments
- Open a command prompt as Administrator
- In the command prompt, type the following:
- Office 2016 (32-bit) on a 32-bit version of Windows
cscript "C:\Program Files\Microsoft Office\Office16\OSPP.VBS" /dstatus
Follow [steps][1]:
- Download: http://download.microsoft.com/download/9/1/E/91E9F42C-3F1F-4AD9-92B7-8DD65DA3B0C2/mvmc_setup.msi (thanks @xavery)
- Open Powershell as administrator and run
Import-Module 'C:\Program Files\Microsoft Virtual Machine Converter\MvmcCmdlet.psd1'
- And after
ConvertTo-MvmcVirtualHardDisk -SourceLiteralPath d:\scratch\vmx\VM-disk1.vmdk -VhdType DynamicHardDisk -VhdFormat vhdx -destination c:\vm-disk1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Today, after working with Windows for over 15 years now, I finally came across the solution to the | |
dreadfull BSOD STOP 0x0000007B after replacing the motherboard of a computer, or after moving the | |
harddrive to another computer, or after doing a P2V, or after ... you get the point. | |
Requirements: | |
- Windows install / boot CD | |
- Chipset / Mobo / Storage drivers of the new motherboard or storage controller | |
Steps: | |
- extract all the drivers to a USB thumb drive |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import signal | |
from threading import Thread | |
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler | |
class PUTHandler(BaseHTTPRequestHandler): | |
def do_PUT(self): | |
print "----- SOMETHING WAS PUT!! ------" | |
print self.headers | |
length = int(self.headers['Content-Length']) |