Skip to content

Instantly share code, notes, and snippets.

View ForumPlayer's full-sized avatar
💥
Segmentation fault (Core dumped)

Igor M. ForumPlayer

💥
Segmentation fault (Core dumped)
View GitHub Profile
@ForumPlayer
ForumPlayer / NO-VM-PXE.ps1
Created November 2, 2019 20:51 — forked from avitsidis/Disable-VmPxeBoot.ps1
Disable Hyper-V VM PXE Boot
param(
[Parameter(Mandatory=$true)][string]$VMName
)
#based on http://serverfault.com/questions/619763/can-pxe-boot-of-hyper-v-vms-be-disabled
$old_boot_order = Get-VMFirmware -VMName $VMName | Select-Object -ExpandProperty BootOrder
$new_boot_order = $old_boot_order | Where-Object { $_.BootType -ne "Network" }
Set-VMFirmware -VMName $VMName -BootOrder $new_boot_order

Keybase proof

I hereby claim:

  • I am forumplayer on github.
  • I am forumplayer (https://keybase.io/forumplayer) on keybase.
  • I have a public key ASAmhB_c_0IGmvo4BHm6kQTxQPhAc_x3Tv-B8Ht0A1JcJQo

To claim this, I am signing this object:

@ForumPlayer
ForumPlayer / pgp.asc
Created June 23, 2019 19:39
Personal Mail Public Key
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: OpenPGP.js v4.4.10
Comment: https://openpgpjs.org
xsBNBFydUdwBCADCG3m3YIGQy0VnjQtXPsHSZTGzqOlHRa/PHdPFHFD4CXHD
reGDcu6gksj/P5HXNI5LMjPg4TzGHjjX/U4APZSc2CRzQhneDEU9zmR5XBz5
CbcJh7BBxc1Pow7FKY0vVm6oFdz/LicJTdapnKmvIviL8KGx3/YVSXW/WTd7
ZCzIgrWQTfjUhtMc8/oMHr1W2b/kELrM9Ij0HT+PMzRXSyJyzstHX4tYAkXS
b5tdMs5Kihk35e/BDuqbs8l7IrMYHLAeqhI74fWvZprLN4UAt8g8RYvHxwog
tKfBqXEWqs4/vW/xq/+FFvMqOUu2Nk6yAR8FtylOLucUgjjMa+HIVkUlABEB
@ForumPlayer
ForumPlayer / ytapi.php
Last active July 14, 2021 17:58
Outdated Youtube API
<?php
if (isset($_GET['id'])) {
$id = trim($_GET['id']);
parse_str(file_get_contents("http://youtube.com/get_video_info?video_id=".$id),$info);
$streams = explode(',',$info['url_encoded_fmt_stream_map']);
$found = false;
foreach($streams as $stream){
parse_str($stream,$data);
if(stripos($data['type'],"video/mp4") !== false){
$found = true;