Skip to content

Instantly share code, notes, and snippets.

View artlantis's full-sized avatar

Oğuz Çelikdemir artlantis

View GitHub Profile
@artlantis
artlantis / Windows Defender Exclusions for Developer.ps1
Created November 6, 2024 08:02 — forked from nerzhulart/Windows Defender Exclusions for Developer.ps1
Adds Windows Defender exclusions for developers (Visual Studio, JetBrains Rider, IntellIJ Idea, Git, MsBuild, dotnet, mono etc.)
$userPath = $env:USERPROFILE
$pathExclusions = New-Object System.Collections.ArrayList
$processExclusions = New-Object System.Collections.ArrayList
$pathExclusions.Add('C:\Windows\Microsoft.NET') > $null
$pathExclusions.Add('C:\Windows\assembly') > $null
$pathExclusions.Add($userPath + '\AppData\Local\Microsoft\VisualStudio') > $null
$pathExclusions.Add('C:\ProgramData\Microsoft\VisualStudio\Packages') > $null
$pathExclusions.Add('C:\Program Files (x86)\MSBuild') > $null
$pathExclusions.Add('C:\Program Files (x86)\Microsoft Visual Studio 14.0') > $null
@artlantis
artlantis / .editorConfig
Created January 28, 2024 14:26 — forked from RealDotNetDave/.editorConfig
.editorConfig by David (dotNetDave) McCarter - dotNetTips.com
# dotNetDave's (David McCarter) Editor Config - dotNetTips.com
# Updates to this file are posted quarterly at: https://bit.ly/EditorConfig5
# Updated August 2023
# dotNetDave's books available at: http://bit.ly/RockYourCodeBooks
# Rockin' the Code World with dotNetDave (weekly live show): https://www.c-sharpcorner.com/live/rockin-the-code-world-with-dotnetdave
root = true
# All Files
[*]
@artlantis
artlantis / download_all_branches.sh
Last active January 10, 2020 06:50 — forked from doulmi/download_all_branches.sh
Download All branches
#!/bin/bash
# Steps to clone all branchs from remote repository to local directory
#
# mkdir repo-name
# cd repo-name
# git clone --bare remote-repository-url .git
# git config --unset core.bare
# git reset --hard
# git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
# git remote update
@mixin for-size($range) {
$phone-upper-boundary: 600px;
$tablet-portrait-upper-boundary: 900px;
$tablet-landscape-upper-boundary: 1200px;
$desktop-upper-boundary: 1800px;
@if $range == phone-only {
@media (max-width: #{$phone-upper-boundary - 1}) { @content; }
} @else if $range == tablet-portrait-up {
@media (min-width: $phone-upper-boundary) { @content; }
@mixin for-size($size) {
@if $size == phone-only {
@media (max-width: 599px) { @content; }
} @else if $size == tablet-portrait-up {
@media (min-width: 600px) { @content; }
} @else if $size == tablet-landscape-up {
@media (min-width: 900px) { @content; }
} @else if $size == desktop-up {
@media (min-width: 1200px) { @content; }
} @else if $size == big-desktop-up {
@artlantis
artlantis / varnish.tokyo.vcl
Last active September 1, 2015 19:04 — forked from kimlindholm/varnish.tokyo.vcl
Varnish configuration example
# VCL configuration file for Varnish
# Define which IP addresses or hosts have access to files that are
# blocked from the public internet
acl internal {
"localhost";
}
# Define origin servers
backend web { .host = "1.2.3.4"; .port = "80"; }
@artlantis
artlantis / local.xml
Last active August 29, 2015 14:24 — forked from SchumacherFM/local.xml
<?xml version="1.0"?>
<config>
<global>
<skip_process_modules_updates>1</skip_process_modules_updates>
</global>
</config>
@artlantis
artlantis / README.md
Last active August 29, 2015 14:23 — forked from addyosmani/README.md

CSS Layout Debugger

A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.

One-line version to paste in your DevTools

Use $$ if your browser aliases it:

~ 108 byte version

@artlantis
artlantis / gist:cbb1e72a4ac20cb40747
Last active February 8, 2016 10:58 — forked from ryaan-anthony/gist:6290973
Magento - Generate product by MySQL stored procedure.
# Sample usage
# this command will generate 10 category and 100000 product
# mysql > call build_catalog(10,100000);
delimiter ;;
drop procedure if exists build_catalog;;
create procedure build_catalog(IN categories INT, IN products INT)
begin
SET @category_count = 1;
SET @CATNAMEPREFIX = "Category ";