Skip to content

Instantly share code, notes, and snippets.

View felipepodesta's full-sized avatar
👨‍💻
Stairway To Heaven

Felipe Podestá felipepodesta

👨‍💻
Stairway To Heaven
View GitHub Profile
@felipepodesta
felipepodesta / Alert.vue
Created October 25, 2016 18:02 — forked from laracasts/Alert.vue
Alert .vue example.
<template>
<div class="Alert Alert--{{ type | capitalize }}">
<slot></slot>
</div>
</template>
<script>
export default {
props: {
type: {
@felipepodesta
felipepodesta / Security.php
Created October 11, 2016 11:30 — forked from iangcarroll/Security.php
Expose (a PHPIDS fork) middleware for Laravel. Assumes it's already included via composer.
<?php namespace App\Http\Middleware;
use Closure;
use Monolog\Logger;
use Monolog\Handler\StreamHandler;
use Log;
class Security {
/**
@felipepodesta
felipepodesta / Windows 10 Disable Services.bat
Created October 6, 2016 11:20 — forked from 2510/Windows 10 Disable Services.bat
Disable unused services (for me) on Windows 10
REM Windows Search
sc config WSearch start=disabled
REM SSDP Discovery
sc config SSDPSRV start=disabled
REM Geolocation Service
sc config lfsvc start=disabled
REM ActiveX Installer
sc config AXInstSV start=disabled
REM AllJoyn Router Service
sc config AJRouter start=disabled
net stop "Application Layer Gateway Service"
net stop "Cryptographic Services"
net stop "Error Reporting Service"
net stop "Help and Support"
net stop "Indexing Service"
net stop "IMAPI CD-Burning COM Service"
net stop "Media Center Extender Service"
net stop "Media Center Receiver Service"
net stop "Media Center Scheduler Service"
net stop "Remote Registry"
@felipepodesta
felipepodesta / awesm.md
Created October 6, 2016 11:12 — forked from matula/awesm.md
Awesome PHP stuff in one Gist
// Jquery exists function
/**
* jQuery exists() method can check if a selector matches or not
* @return {boolean}
*/
jQuery.fn.exists = function() {
return this.length;
}
/**
* jQuery afterTime() method is simply setTimeout() function that can be used to chain with jQuery selectors
* @param {ms} sec [the callback will excute after]
* @param {function} callback [the function to excute]
* @return {jQuery selectors}
*/
jQuery.fn.extend({
afterTime: function (sec, callback) {
that = $(this);
setTimeout(function () {
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\*\shell\runas]
[HKEY_CLASSES_ROOT\*\shell\runas]
@="Take Ownership"
"Icon"="C:\\Windows\\System32\\imageres.dll,-78"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\*\shell\runas\command]
@echo off
cls
set x86="%SYSTEMROOT%\System32\OneDriveSetup.exe"
set x64="%SYSTEMROOT%\SysWOW64\OneDriveSetup.exe"
echo Closing OneDrive process.
echo.
taskkill /f /im OneDrive.exe > NUL 2>&1
ping 127.0.0.1 -n 5 > NUL 2>&1