Skip to content

Instantly share code, notes, and snippets.

@Nemeziz
Nemeziz / README.md
Created April 19, 2022 04:13 — forked from oznu/README.md
How to Bootcamp / Dual Boot Windows 10 on a mid-2011 iMac using USB

How to Install / Bootcamp Windows 10 on a mid-2011 iMac using USB

Apple has released support for bootcamping Windows 10, but only on 2012 Macs and later. Despite not being supported. it is possible to install Windows 10 on earlier iMacs and it seems to run quite well.

IMPORTANT: Unplug all external and physical hard drives (where possible) that you won't be installing to to avoid accidentally erasing them. Also make note of which drives and partitions remain (e.g. System and Storage hard drives), and be super careful to not erase the wrong one.

RECOVERY: If you nuke your machine, restore your time machine backup. Instructions here.

Requirements

@Nemeziz
Nemeziz / IPTV M3U filter
Created December 26, 2021 13:01 — forked from andey/IPTV M3U filter
Filter out the garbage channels, and only show me what I want to see
<?php
// download the file
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "<M3U_LINK>");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec($ch);
curl_close ($ch);
// write to file
@Nemeziz
Nemeziz / visa.py
Created December 12, 2021 18:01 — forked from yaojialyu/visa.py
ais usvisa reschedule
# -*- coding: utf8 -*-
import time
import json
import random
import platform
from datetime import datetime
import requests
from selenium import webdriver
@Nemeziz
Nemeziz / vpn.md
Created July 4, 2020 02:29 — forked from joepie91/vpn.md
Don't use VPN services.

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

  • A Russian translation of this article can be found here, contributed by Timur Demin.
  • A Turkish translation can be found here, contributed by agyild.
  • There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.
@Nemeziz
Nemeziz / gist:91b2cab1daaedf04ffd6fbb88f4df143
Created December 4, 2017 18:58 — forked from Wysie/gist:7487571
Script to route traffic from home network through VPN selectively.Based off the discussion at http://www.smallnetbuilder.com/forums/showthread.php?t=9311The setup is a Roku box, a Home PC running Plex, and a Synology NAS with a torrent client running a web interface.The aim is to have all traffic from Roku go through the VPN, all traffic from th…
#!/bin/sh
# Script to route traffic from home network through VPN selectively.
# Based off the discussion at http://www.smallnetbuilder.com/forums/showthread.php?t=9311
# The setup is a Roku box, a Home PC running Plex, and a Synology NAS with a torrent client running a web interface.
# The aim is to have all traffic from Roku go through the VPN, all traffic from the Home PC (and all other devices) bypassing the VPN,
# and the Synology NAS using the VPN. There are however some exceptions. Since Plex uses port 32400, Roku has to bypass the VPN when
# using that port. In addition, port 9091 has to bypass the VPN as well in order to access the Synology torrent client.
#
# Requirements: Asuswrt-Merlin with OpenVPN already set up
@Nemeziz
Nemeziz / roku-package-script
Created November 15, 2017 22:02 — forked from alexrup/roku-package-script
Bash script to package roku applications.
#!/bin/bash
if [[ -z $1 ]]; then
echo "Usage: roku-package-script [PATH TO APPLICATION]"
else
PKG_UPLOAD_PATH=$1
echo "Enter the IP address of the Roku device: "
read DEVICE_IP
/*
Update v0.4
Todo: - CryptSetKeyParam (KP_MODE with CBC [maybe CFB, ECB, OFB or CTS])
*/
MsgBox % enc := AES.Encrypt("Test String", "testpw", 256)
MsgBox % AES.Decrypt(enc, "testpw", 256)
Class AES
{
@Nemeziz
Nemeziz / ronj-autohotkey.ahk
Last active July 7, 2023 19:39 — forked from ronjouch/ronj-autohotkey.ahk
Collection of AutoHotkey scripts I use
; Variables definition
; -----------------------------------------------------------------------------
EnvGet, userProfile, USERPROFILE
Software := userProfile . "\Dropbox\software\"
; Launch or toggle program, http://lifehacker.com/5468862/create-a-shortcut-key-for-restoring-a-specific-window
; -----------------------------------------------------------------------------
ToggleWinMinimize(WindowTitle)
{
SetTitleMatchMode,2
@Nemeziz
Nemeziz / markers_google_maps
Last active August 29, 2015 14:26 — forked from faisalchohan/markers_google_maps
Display markers on google maps from database.
<script type="text/javascript">
// use of visual refesh is recommended
google.maps.visualRefresh = true;
// main map object
var map;
// stores all the markers displayed on the map
var markersArray = [];
@Nemeziz
Nemeziz / Thales's Autohotkey Script
Last active August 29, 2015 14:26 — forked from thalesmello/thales.ahk
This is the Autohotkey script I use on a daily basis. I use it to play/pause my webplayers, move and resize my windows, add new tasks to Any.do and toggle my windows in fullscreen mode.
#NoEnv
#Include %A_ScriptDir%
#Include VA.ahk
#SingleInstance force
SetTimer,UPDATEDSCRIPT,1000
OnExit, EXITSCRIPT
HomePath = C:\Users\ThalesErnesto
; Media control