Skip to content

Instantly share code, notes, and snippets.

View shalakolee's full-sized avatar

Shalako Lee shalakolee

  • Florida
View GitHub Profile
@shalakolee
shalakolee / script.sh
Created April 25, 2017 23:12
Linux Hosting Backup Shell Script
#!/bin/bash
# A Temporary Location to work with files , DO NOT END THE DIRECTORY WITH BACKSLASH !
TMP_DIR=/var/www/backups/tmp
SOURCE_DIR=/var/www/561media.com/prod
TARGET_DIR=/var/www/backups
# Hostname
HOST="561media.com"
MAIL="slee@561media.com"
@shalakolee
shalakolee / sublime3_context_menu.bat
Created April 25, 2017 23:12
Sublime 3 Open Folder Context Menu
@echo off
SET st3Path=C:\Program Files\Sublime Text 3\sublime_text.exe
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st3Path% \"%%1\"" /f
rem add it for folders
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f
@shalakolee
shalakolee / something.php
Created April 25, 2017 23:13
byme php sublime text keymap
{ "keys": ["ctrl+1"], "command": "insert_snippet", "args": {"contents": "/**\n* \n* coded by:\n* ▄▄▄ █ █░▓█████ ██████ ▒█████ ███▄ ▄███▓▓█████ ██ ▄█▀ ▒█████ \n*▒████▄ ▓█░ █ ░█░▓█ ▀ ▒██ ▒ ▒██▒ ██▒▓██▒▀█▀ ██▒▓█ ▀ ██▄█▒ ▒██▒ ██▒\n*▒██ ▀█▄ ▒█░ █ ░█ ▒███ ░ ▓██▄ ▒██░ ██▒▓██ ▓██░▒███ ▓███▄░ ▒██░ ██▒\n*░██▄▄▄▄██ ░█░ █ ░█ ▒▓█ ▄ ▒ ██▒▒██ ██░▒██ ▒██ ▒▓█ ▄ ▓██ █▄ ▒██ ██░\n* ▓█ ▓██▒░░██▒██▓ ░▒████▒▒██████▒▒░ ████▓▒░▒██▒ ░██▒░▒████▒▒██▒ █▄░ ████▓▒░\n* ▒▒ ▓▒█░░ ▓░▒ ▒ ░░ ▒░ ░▒ ▒▓▒ ▒ ░░ ▒░▒░▒░ ░ ▒░ ░ ░░░ ▒░ ░▒ ▒▒ ▓▒░ ▒░▒░▒░ \n**/ \n\n"}},
@shalakolee
shalakolee / snippet.js
Created April 25, 2017 23:13
Javascript - Sorting Objects Function
/**
* This javascript function will sort an object of objects by converting it to an array, ordering it, and pushing it back into an object
* usage: mySortedObject = customObjectSort(object,"objectKey");
*/
function customObjectSort(data, attr) {
var arr = [];
for (var prop in data) {
if (data.hasOwnProperty(prop)) {
@shalakolee
shalakolee / script.cmd
Created April 25, 2017 23:13
Change Office 2016 x64 to KMS
@echo off
:ADMIN
openfiles >nul 2>nul ||(
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
"%temp%\getadmin.vbs" >nul 2>&1
goto:eof
)
del /f /q "%temp%\getadmin.vbs" >nul 2>nul
@shalakolee
shalakolee / script.cmd
Created April 25, 2017 23:14
Change Office 2016 x86 to KMS
@echo off
:ADMIN
openfiles >nul 2>nul ||(
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
"%temp%\getadmin.vbs" >nul 2>&1
goto:eof
)
del /f /q "%temp%\getadmin.vbs" >nul 2>nul
@shalakolee
shalakolee / instructions
Created April 25, 2017 23:15
Remote Desktop Not Working Fix
delete everything here but the default setting
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\RCM\GracePeriod
Only leaving the default.
@shalakolee
shalakolee / byme.aspx
Created April 25, 2017 23:16
By me vb.net
' coded by:
' ▄▄▄ █ █░▓█████ ██████ ▒█████ ███▄ ▄███▓▓█████ ██ ▄█▀ ▒█████
'▒████▄ ▓█░ █ ░█░▓█ ▀ ▒██ ▒ ▒██▒ ██▒▓██▒▀█▀ ██▒▓█ ▀ ██▄█▒ ▒██▒ ██▒
'▒██ ▀█▄ ▒█░ █ ░█ ▒███ ░ ▓██▄ ▒██░ ██▒▓██ ▓██░▒███ ▓███▄░ ▒██░ ██▒
'░██▄▄▄▄██ ░█░ █ ░█ ▒▓█ ▄ ▒ ██▒▒██ ██░▒██ ▒██ ▒▓█ ▄ ▓██ █▄ ▒██ ██░
' ▓█ ▓██▒░░██▒██▓ ░▒████▒▒██████▒▒░ ████▓▒░▒██▒ ░██▒░▒████▒▒██▒ █▄░ ████▓▒░
' ▒▒ ▓▒█░░ ▓░▒ ▒ ░░ ▒░ ░▒ ▒▓▒ ▒ ░░ ▒░▒░▒░ ░ ▒░ ░ ░░░ ▒░ ░▒ ▒▒ ▓▒░ ▒░▒░▒░
' ▒ ▒▒ ░ ▒ ░ ░ ░ ░ ░░ ░▒ ░ ░ ░ ▒ ▒░ ░ ░ ░ ░ ░ ░░ ░▒ ▒░ ░ ▒ ▒░
' ░ ▒ ░ ░ ░ ░ ░ ░ ░ ░ ░ ▒ ░ ░ ░ ░ ░░ ░ ░ ░ ░ ▒
' ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░░ ░ ░ ░
@shalakolee
shalakolee / webhook.php
Created April 25, 2017 23:16
Git WebHook (windows/linux)
<?php
/**
*
* coded by:
* ▄▄▄ █ █░▓█████ ██████ ▒█████ ███▄ ▄███▓▓█████ ██ ▄█▀ ▒█████
*▒████▄ ▓█░ █ ░█░▓█ ▀ ▒██ ▒ ▒██▒ ██▒▓██▒▀█▀ ██▒▓█ ▀ ██▄█▒ ▒██▒ ██▒
*▒██ ▀█▄ ▒█░ █ ░█ ▒███ ░ ▓██▄ ▒██░ ██▒▓██ ▓██░▒███ ▓███▄░ ▒██░ ██▒
*░██▄▄▄▄██ ░█░ █ ░█ ▒▓█ ▄ ▒ ██▒▒██ ██░▒██ ▒██ ▒▓█ ▄ ▓██ █▄ ▒██ ██░
* ▓█ ▓██▒░░██▒██▓ ░▒████▒▒██████▒▒░ ████▓▒░▒██▒ ░██▒░▒████▒▒██▒ █▄░ ████▓▒░
* ▒▒ ▓▒█░░ ▓░▒ ▒ ░░ ▒░ ░▒ ▒▓▒ ▒ ░░ ▒░▒░▒░ ░ ▒░ ░ ░░░ ▒░ ░▒ ▒▒ ▓▒░ ▒░▒░▒░
@shalakolee
shalakolee / list.asp
Created April 25, 2017 23:17
Classic ASP Directory Browser
<%@ Language=VBScript %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<%
' ***** Which Folder to Share?
' ********** ********** **********
sDirectory = "/foldertoshare/"
' ********** ********** **********
AllowExt = "all"