Skip to content

Instantly share code, notes, and snippets.

View TheDeadCode's full-sized avatar
🎯
Focusing

Felix Lebel TheDeadCode

🎯
Focusing
View GitHub Profile
@TheDeadCode
TheDeadCode / fix_warframe.ps1
Last active December 21, 2021 17:04
Quick script to auto-fix warframe (OUTDATED: ISPs HAVE FIXED THE ISSUE)
if (-Not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] 'Administrator')) {
if ([int](Get-CimInstance -Class Win32_OperatingSystem | Select-Object -ExpandProperty BuildNumber) -ge 6000) {
$CommandLine = "-File `"" + $MyInvocation.MyCommand.Path + "`" " + $MyInvocation.UnboundArguments
Start-Process -FilePath PowerShell.exe -Verb Runas -ArgumentList $CommandLine
Exit
}
}
$hosts = "C:\Windows\System32\Drivers\etc\hosts"
$hostsValue = "127.0.0.1 content.warframe.com"
@TheDeadCode
TheDeadCode / JsonModelStreamWriter.php
Created March 3, 2021 22:04
JsonModelStreamWriter
<?php
/**
* Stream-write arrays onto a file on disk as JSON format, to avoid memory leaks.
* Written expressly for /u/devourment77 of reddit.
*
* Copyright (C) 2021 by Vynatu Cyberlabs, Inc. and Felix Lebel
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
@TheDeadCode
TheDeadCode / Examples.md
Created January 11, 2018 00:13
Super dirty code used to transform comments into beautiful L5-like comments. Used with Alfred

Feed it this comment:

Here is where you can register API routes for your application. These routes are loaded by the RouteServiceProvider within a group which is assigned the "api" middleware group. Enjoy building your API!

It will return this:

Here is where you can register API routes for your application. These
routes are loaded by the RouteServiceProvider within a group which
is assigned the "api" middleware group. Enjoy building your API!

Keybase proof

I hereby claim:

  • I am TheDeadCode on github.
  • I am deadcode (https://keybase.io/deadcode) on keybase.
  • I have a public key whose fingerprint is 15D5 952E FCF4 2D07 F6FE 209E F50D AD38 E194 6AB7

To claim this, I am signing this object:

@TheDeadCode
TheDeadCode / RaphaelJS Helper.coffee
Created December 8, 2015 19:27
RaphaelJS Helper
class Path
constructor: (@startX, @startY) ->
@path = []
@string = null
@moveTo @startX, @startY
pop: ->
@path.pop()
@string = null
this