Skip to content

Instantly share code, notes, and snippets.

@Marfjeh
Marfjeh / nginx config for icecast2
Created September 7, 2021 21:45 — forked from highgain86j/nginx config for icecast2
nginx configuration for reverse-proxying icecast2 streaming server.
server {
listen 80;
listen [::]:80;
server_name radio.example.com;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Real-IP $remote_addr;
location / {
@Marfjeh
Marfjeh / virtual_keyboard.lua
Created July 7, 2021 09:51 — forked from intrntbrn/virtual_keyboard.lua
awesomewm virtual keyboard for tablet (hackable alpha version)
-- Dependency: xdotool
--
-- Usage:
-- 1. Save as "virtual_keyboard.lua" in ~/.config/awesome/
-- 2. Add a virtual_keyboard for every screen:
-- awful.screen.connect_for_each_screen(function(s)
-- ...
-- local virtual_keyboard = require("virtual_keyboard")
-- s.virtual_keyboard = virtual_keyboard:new({ screen = s } )
-- ...
@Marfjeh
Marfjeh / Firefox Userstyle.css
Created March 20, 2021 21:20
Firefox Userstyle
@namespace "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
/* Hide close button on tabs */
#tabbrowser-tabs .tabbrowser-tab .tab-close-button { display:none !important; }
#TabsToolbar, .tabbrowser-tab {
max-height: 20px !important;
font-size: 11px;
}
@Marfjeh
Marfjeh / Home.md
Created October 21, 2020 07:43
Home

Oh hi there, I'm Marf

This is my Github page. There is not much to see here. x)

My github is only used for some hobby projects that probably never completes anyways :D And some projects are a bit really sarcastic. As you may not know I really really really hate wordpress.

I do have intrest in embedded devices, but started as simple devices as Arduino.

But, There is not alot activity because i mainly work on a private git server, and the projects here are just random stuff I made or was trying something new

@Marfjeh
Marfjeh / tutorial.md
Created October 17, 2019 14:01 — forked from Hengjie/tutorial.md
How to passthrough SATA drives directly on VMWare ESXI 6.5 as RDMs

How to passthrough SATA drives directly on VMWare EXSI 6.5 as RDMs

There aren't many tutorials about this, the only tutorials I've found were about passing through entire PCIe cards to VMs, or refered to old ESXI versions (below 6.5) that used a more comprehensive desktop client instead of the web app. In v6.5, the web app was introduced and the desktop client was deprecated. You used to be able to setup RDMs in the desktop client, but with the introduction of the web console, this is no longer the case. This tutorial shows you how to pass SATA HDDs to the virtual machine on VMWare ESXI 6.5. This tutorial is partially based on VMWare's own KB and the now deprecated Forza IT blog post.

A word about VMWare ESXI 6.7

There is now an option while editing your VM's settings to add a New raw disk when you click `Add ha

127.0.0.1 10.rarbg.com
127.0.0.1 11.rarbg.com
127.0.0.1 2006.sxsw.com
127.0.0.1 2007.sxsw.com
127.0.0.1 209.50.48.13
127.0.0.1 80.190.151.40
127.0.0.1 9.rarbg.com
127.0.0.1 94.75.205.147
127.0.0.1 a.scarywater.net
127.0.0.1 alanb.yi.org
0.0.0.0 graph.facebook.com
0.0.0.0 graph.whatsapp.com
0.0.0.0 graph.instagram.com
0.0.0.0 apps.facebook.com
0.0.0.0 connect.facebook.net
0.0.0.0 facebook.com
0.0.0.0 fbcdn.com
0.0.0.0 fbsbx.com
0.0.0.0 fbcdn.net
0.0.0.0 graph.facebook.com
0.0.0.0 login.facebook.com
0.0.0.0 s-static.ak.facebook.com
0.0.0.0 static.ak.connect.facebook.com
<style>
@media print {
.no-print { display: none; }
}
@media screen {
.print-only { display: none; }
}
</style>
<p class="no-print">Press Ctrl+P to print</p>
@Marfjeh
Marfjeh / hosts
Last active June 28, 2021 04:52
Marf's hosts file - I'm using this to make it easy for myself to copy hosts between systems. as you can see, I REALLY REALLY REALLY hate ads.
127.0.0.1 media-match.com
127.0.0.1 adclick.g.doublecklick.net
127.0.0.1 www.googleadservices.com
127.0.0.1 pagead2.googlesyndication.com
127.0.0.1 desktop.spotify.com
127.0.0.1 googleads.g.doubleclick.net
127.0.0.1 pubads.g.doubleclick.net
127.0.0.1 audio2.spotify.com
127.0.0.1 www.omaze.com
127.0.0.1 omaze.com