Skip to content

Instantly share code, notes, and snippets.

View jonaharagon's full-sized avatar
✈️
I am out of town until June 19th

Jonah Aragon jonaharagon

✈️
I am out of town until June 19th
View GitHub Profile
@jonaharagon
jonaharagon / logcleaner.bat
Last active August 29, 2015 14:20
Simple batch file to clear the massive logs of UCS - Cleaner by lotus10190, modified by deysmacro.
@echo off
tasklist /FI "IMAGENAME eq ucs.exe" | findstr "ucs.exe" >nul
if %ERRORLEVEL% == 1 goto runcode1
goto runcode2
:runcode1
start /min ucs.exe ...
timeout /t 14400
taskkill /f /im ucs.exe
timeout /t 1
@jonaharagon
jonaharagon / restart_ucs.exe
Created April 26, 2015 22:33
Restart ucs.exe every 12 hours
@echo off
:loop
start ucs.exe ...
timeout /t 43200 >null
taskkill /f /im ucs.exe >nul
goto loop
@jonaharagon
jonaharagon / gist:da98971ee50a4212d5c8
Created September 13, 2014 23:10
mChat Problem D:
SQL ERROR [ mysql4 ]
Table 'jda_phpbb.MCHAT_CONFIG_TABLE' doesn't exist [1146]
SQL
SELECT * FROM MCHAT_CONFIG_TABLE
BACKTRACE
@jonaharagon
jonaharagon / MobiRedirect
Created September 1, 2014 16:11
Redirect Mobile Websites
<script>
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent) ) {
window.location = "CHANGE THIS TO MOBILE SITE";
}
</script>
<script>// <![CDATA[
if (screen.width <= 800) {
document.location = "CHANGE THIS TO MOBILE SITE";
}