Skip to content

Instantly share code, notes, and snippets.

@bulfaitelo
bulfaitelo / get-win7-productkey.vbs
Created April 1, 2019 11:53 — forked from eyecatchup/get-win7-productkey.vbs
VBS Script to get the Windows(R) 7 Product Key from a PC's registry.
' VBS Script to get the Windows(R) 7 Product Key from a PC's registry.
'
' Save the VBScript as "getWin7Key.vbs" somewhere on your Windows7 PC.
' Now, when you double-click the local script file an alertbox pops up
' displaying the product key stored in the machine's Windows registry.
Set WshShell = WScript.CreateObject("WScript.Shell")
KeyPath = "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId"
MsgBox ExtractKey(WshShell.RegRead(KeyPath))
@bulfaitelo
bulfaitelo / exempo.blade.php
Last active June 14, 2017 11:57
Diferença entre {{ }} e {!! !!} Blades Laravel
<?php
$new = htmlspecialchars("<a href='test'>Test</a>", ENT_QUOTES);
echo $new; // &lt;a href=&#039;test&#039;&gt;Test&lt;/a&gt;
// laravel exemplo:
{{ <a href='test'>Test</a> }}
//Retorna:
// &lt;a href=&#039;test&#039;&gt;Test&lt;/a&gt;
@bulfaitelo
bulfaitelo / theme-color.html
Last active June 8, 2017 11:14
Color theme Chrome Google
<!-- Theme Color Chrome -->
<meta content='#CD2122' name='theme-color'/>
<!-- Theme Color Chrome FIM -->
<!-- Atualizado, adicionado outros navegadores! -->
<!-- Windows Phone -->
<meta name="msapplication-navbutton-color" content="#4285f4">
<!-- Windows Phone FIM -->
@bulfaitelo
bulfaitelo / OneSignal_Bulfaitelo-Project.html
Created June 2, 2017 12:56
OneSignal Configuração PT-br
<!-- OneSignal Push -->
<script async='async' src='https://cdn.onesignal.com/sdks/OneSignalSDK.js'></script>
<script>
var OneSignal = window.OneSignal || [];
OneSignal.push(["init", {
appId: "Aqui entra o OneSignal App ID",
subdomainName: 'bulfaitelo-project',
httpPermissionRequest: {
enable: true,
modalTitle: 'Grato pela assinatura',
@extends('layouts.app')
@section('menu')
<ul>
<li><a href="#">HOME</a></li>
<li><a href="#">Laravel</a></li>
<li><a href="#">Bulfaitelo</a></li>
</ul>
@endsection
@bulfaitelo
bulfaitelo / app.blade.php
Last active May 3, 2017 12:56
Tutorial Laravel para iniciantes - Parte 08 [Entendendo view com @extends, @yield e @section]
<!-- Stored in resources/views/layouts/app.blade.php -->
<html>
<head>
<title>App Name - @yield('title')</title>
</head>
<body>
@section('menu')
This is the master sidebar.
@endsection
@bulfaitelo
bulfaitelo / app.blade.php
Created May 3, 2017 10:47
Tutorial Laravel para iniciantes - Parte 08 [Entendendo view com @extends, @yield e @section]
<!DOCTYPE html>
<html lang="{{ config('app.locale') }}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">
@bulfaitelo
bulfaitelo / listar.blade.php
Last active May 1, 2017 19:41
Tutorial Laravel para iniciantes - Parte 07 [Criando uma Camada de autenticação]
@extends('layouts.app')
@section('content')
<div class="container">
<h1>Lista de mensagens</h1>
<hr />
<table class="table table-striped">
<thead>
<tr>
@bulfaitelo
bulfaitelo / listar.blade.php
Created April 29, 2017 19:00
Tutorial Laravel para iniciantes - Parte 06 [Relacionando models com o Eloquent ORM, criando migrations e seeds]
<!DOCTYPE html>
<html>
<head>
<title>Bullfaitelo Form test</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
</head>
<body>
<div class=”container”>
@bulfaitelo
bulfaitelo / welcome.blade.php
Last active April 25, 2017 20:35
Tutorial Laravel para iniciantes - Parte 06 [Relacionando models com o Eloquent ORM, criando migrations e seeds]
<!DOCTYPE html>
<html>
<head>
<title>Bullfaitelo Form test</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
</head>
<body>
<div class="container">
<h1>Bullfaitelo Form test</h1>
<hr />