Skip to content

Instantly share code, notes, and snippets.

View Alicannklc's full-sized avatar
😇
Focusing

Alicannklc

😇
Focusing
View GitHub Profile
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
require_once 'Mobile_Detect.php';
$detect = new Mobile_Detect;
if ($detect->isMobile())
{
header('Location: Mobil Urlsi');
}
@Alicannklc
Alicannklc / cloudSettings
Last active December 30, 2019 10:10 — forked from SelmanKahya/cloudSettings
VSCode settings
{"lastUpload":"2019-12-30T10:10:38.690Z","extensionVersion":"v3.4.3"}
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use File;
class MakeViewCommand extends Command
{
/**
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
gem 'sqlite3', git: "https://github.com/larskanis/sqlite3-ruby", branch: "add-gemspec"
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
{
"editor.fontFamily": "Fira Code, monospace",
"editor.renderLineHighlight": "none",
"editor.renderWhitespace": "none",
"editor.fontSize": 16,
"editor.detectIndentation": false,
"editor.tabSize": 4,
"eslint.autoFixOnSave": true,
// Set the default
"editor.formatOnSave": true,
@Alicannklc
Alicannklc / wp-db.tutorial.php
Created April 4, 2019 00:06 — forked from benbalter/wp-db.tutorial.php
WordPress DB Tutorial
<?php
//absolute path to wp-load.php, or relative to this script
//e.g., ../wp-core/wp-load.php
include( 'trunk/wp-load.php' );
//grab the WPDB database object, using WP's database
//more info: http://codex.wordpress.org/Class_Reference/wpdb
global $wpdb;
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
choco feature enable -n allowGlobalConfirmation
choco install vscode -fy
choco install 7zip -fy
choco install nodejs-lts -fy
choco install yarn -fy