Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am d0d0 on github.
  • I am d0d0 (https://keybase.io/d0d0) on keybase.
  • I have a public key whose fingerprint is 7817 8D7C B46D BD47 9C21 F540 8EEB D7AC A6C1 6C49

To claim this, I am signing this object:

@d0d0
d0d0 / .htaccess
Created September 5, 2017 15:12 — forked from rudowastaken/.htaccess
ModRewrite for Laravel project deployment @ websupport.skUse in the application root
DirectorySlash Off
Options +FollowSymlinks -Indexes -MultiViews
AddDefaultCharset utf-8
DirectoryIndex /public/index.php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^(.*)$ /public/$1 [L,QSA]
@d0d0
d0d0 / ValetSwitchPHP.md
Created July 2, 2018 18:34 — forked from bgarrant/ValetSwitchPHP.md
How to Switch PHP Version in Laravel Valet between PHP 7.1 and PHP 5.6

Valet switch PHP version with these commands

Install PHP 5.6 and switch Valet to PHP 5.6

valet stop
brew unlink php71
brew install php56
brew install php56-mcrypt
brew link php56
valet start
@d0d0
d0d0 / lala
Created May 1, 2019 09:54
vafa
94 19125
95 6885
98 22950
99 8500
115 16983
125 23000
127 16000
129 12000
131 31000
165 10000
{"ps4": [
{"name": "Horizon Zero Dawn™: Complete Edition", "titleId": "CUSA10211_00"},
{"name": "Spyro Reignited Trilogy", "titleId": "CUSA12085_00"},
{"name": "Crash™ Team Racing Nitro-Fueled", "titleId": "CUSA14876_00"}
]}
@d0d0
d0d0 / mount_qcow2.md
Created January 11, 2021 12:26 — forked from shamil/mount_qcow2.md
How to mount a qcow2 disk image

How to mount a qcow2 disk image

This is a quick guide to mounting a qcow2 disk images on your host server. This is useful to reset passwords, edit files, or recover something without the virtual machine running.

Step 1 - Enable NBD on the Host

modprobe nbd max_part=8
import time
import traceback
import requests
while True:
try:
with open('token', 'r') as f:
token = f.read().strip()