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
[*]
/*
* Thanks to Eric Leschinski
* https://stackoverflow.com/a/20081410/147437
*/
// find out the directories that you want to remove
find . -type d -name ".git" \
&& find . -name ".gitignore" \
&& find . -name ".gitmodules"
@artlantis
artlantis / get-all-remote-branchs.sh
Last active August 19, 2021 09:54
Get all remote branchs then create an archive in local folder
#!/bin/bash
# Steps to clone all branchs from remote repository to local directory
#
# mkdir work-dir-name
# cd work-dir-name
# git clone --bare remote-repository-url repo-name && cd repo-name
# git config --bool core.bare false
# git reset --hard
# change the 'grep -E' filter with appropiate repository names that you want to download
# change the target directory name in tar command
@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 / color.js
Last active June 15, 2017 14:49
Animated Background Color
/**
* Animated Background Color
* Author : Joan Claret
* URL : https://github.com/JoanClaret/html5-canvas-animation
*/
var colors = new Array(
[62,35,255],
[60,255,60],
@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"; }