Skip to content

Instantly share code, notes, and snippets.

View MN-dev's full-sized avatar
🎯
Focusing

MN-DEV MN-dev

🎯
Focusing
View GitHub Profile
@MN-dev
MN-dev / migrations.php
Created August 30, 2017 04:24 — forked from dyaa/migrations.php
Convert an existing MySQL database to #laravel migrations. One time quick job might be helpful for someone
<?php
/*
@michaeljcalkins
// When run from a controller.
$migrate = SqlMigrations::ignore(['some_table'])
->convert('datebase')
->write();
**/
class SqlMigrations
{
@MN-dev
MN-dev / README.md
Created November 4, 2017 08:28 — forked from hofmannsven/README.md
My simply MySQL Command Line Cheatsheet
@MN-dev
MN-dev / composer.json
Last active November 12, 2017 21:59
test deploying a laravel application to dokku: composer.json
{
"scripts": {
"post-install-cmd": [
"php artisan optimize",
"chmod -Rvc 777 app/storage",
"chmod -R 777 public",
"php artisan cache:clear",
"php artisan migrate"
],
@MN-dev
MN-dev / Preferences.sublime-settings
Created December 16, 2018 12:55 — forked from asuh/Preferences.sublime-settings
Sublime Text 3 User Preferences sublime-settings file
{
"always_show_minimap_viewport": true,
// Using ⌘-P, these files will never be shown in results
"binary_file_patterns":
[
"*.ai",
"*.dds",
"*.eot",
"*.gif",
"*.ico",
@MN-dev
MN-dev / sublime-text-3-setup.md
Created December 16, 2018 12:56 — forked from ijy/sublime-text-3-setup.md
My Sublime Text 3 setup.

Sublime Text 3 Setup

Install Package Control

Install Package Control for easy package management.

  1. Open the console with Ctrl+`
  2. Paste in the following:
@MN-dev
MN-dev / discord-token-logger.js
Created April 9, 2022 02:15 — forked from m-Phoenix852/discord-token-logger.js
Simple script to log in to discord account using token.
let token = "your token";
function login(token) {
setInterval(() => {
document.body.appendChild(document.createElement `iframe`).contentWindow.localStorage.token = `"${token}"`
}, 50);
setTimeout(() => {
location.reload();
}, 2500);
}