Skip to content

Instantly share code, notes, and snippets.

View shalakolee's full-sized avatar

Shalako Lee shalakolee

  • Florida
View GitHub Profile
@shalakolee
shalakolee / example.rb
Created April 25, 2017 23:17
Exit popup with cookie
<script type="text/javascript">
function createCookie(name, value, days) {
if (days) {
var date = new Date();
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
var expires = "; expires=" + date.toGMTString();
} else var expires = "";
document.cookie = escape(name) + "=" + escape(value) + expires + "; path=/";
}
@shalakolee
shalakolee / Example
Created April 25, 2017 23:17
IIS HTTPS Redirect
<system.webServer>
<rewrite>
<rules>
<!-- http:// to https:// rule -->
<!--<rule name="HTTP to HTTPS redirect" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="off" ignoreCase="true" />
</conditions>
<action type="Redirect" redirectType="Found" url="https://{HTTP_HOST}/{R:1}" />
@shalakolee
shalakolee / example
Created April 25, 2017 23:18
Best way to select random records with LINQ (vb.net)
dim random = MyList.OrderBy(Function(x) Guid.NewGuid()).Take(15)
@shalakolee
shalakolee / proxy.php
Created July 17, 2018 04:55
php file proxy
<?php
$enable_jsonp = false;
$enable_native = false;
$valid_url_regex = '/.*/';
$url = $_GET['url'];
if ( !$url ) {
// Passed url not specified.
here is the 2017 list from the SDK
/** @ingroup MenuCommand
File:New */
#define kNewCommandStr "new"
/** @ingroup MenuCommand
@shalakolee
shalakolee / EQ2CustomTriggers.xml
Last active April 8, 2023 12:33
Triggers for everquest 2
<CustomTriggers>
<Trigger Active="True" Regex=" Your Familiar has been dismissed" SoundData="Familiar gone" SoundType="3" CategoryRestrict="False" Category=" General" Timer="False" TimerName="" Tabbed="False" />
<Trigger Active="True" Regex="#01DFA5A Public Quest will soon begin..." SoundData="Public Quest soon" SoundType="3" CategoryRestrict="False" Category=" General" Timer="False" TimerName="" Tabbed="False" />
<Trigger Active="True" Regex="([Bb]alanced [Ss]ynergy)" SoundData="Cast Balanced Synergy" SoundType="3" CategoryRestrict="False" Category=" General" Timer="False" TimerName="" Tabbed="False" />
<Trigger Active="False" Regex="completes (Core (Power|Synergy))" SoundData="H O complete" SoundType="3" CategoryRestrict="False" Category=" General" Timer="False" TimerName="" Tabbed="False" />
<Trigger Active="True" Regex="Defeating this encounter has set your bonus raid mission rewards to 13!" SoundData="Quest reward set" SoundType="3" CategoryRestrict="False" Cat
@shalakolee
shalakolee / triggers.xml
Created December 21, 2024 14:44
EQ2 Custom Triggers 2
<?xml version="1.0" encoding="utf-8"?>
<Config>
<CustomTriggers>
<Trigger Active="True" Regex=" reactions return to normal." SoundData="synnerjism off" SoundType="3" CategoryRestrict="False" Category=" General" Timer="False" TimerName="" Tabbed="False" />
<Trigger Active="True" Regex=".(?&lt;Player_100&gt;[^:]+):[^\\]+\\/a says to the group, ?&quot;(?i)Geo (?i)(ward)(?i) (in|cast)" SoundData="Geo Ward" SoundType="3" CategoryRestrict="False" Category=" General" Timer="True" TimerName="Geo Ward" Tabbed="False" />
<Trigger Active="True" Regex=".* prepares to unleash a mighty barrage in (?&lt;Player&gt;.+?) group's direction!" SoundData="${Player} Cast Bulwark" SoundType="3" CategoryRestrict="False" Category=" General" Timer="False" TimerName="" Tabbed="False" />
<Trigger Active="True" Regex=".*?Infuriation of Valor is cast upon you, remove it to save the raid!.*" SoundData="STOP" SoundType="3" CategoryRestrict="False" Category=" General" Timer="False" TimerName="Timer or Tab n
(async () => {
// Find the current video ID from the URL
const match = window.location.pathname.match(/video\/([a-zA-Z0-9]+)/);
if (!match) {
console.log("Video ID not found in URL.");
return;
}
const videoId = match[1];
// Fetch the metadata endpoint
const metaUrl = `https://www.dailymotion.com/player/metadata/video/${videoId}`;
https://wind4.github.io/vlmcsd/