Skip to content

Instantly share code, notes, and snippets.

View ar-to's full-sized avatar
🤔
scheming my next project

Ari ar-to

🤔
scheming my next project
View GitHub Profile
@ar-to
ar-to / .htaccess
Created January 14, 2017 03:04
Collection of code to use inside root or directories of websites in Apache servers
#disable Directory Browsing
Options -Indexes
#Call 404 error and file.html to use; further customizing of this file is recommended
ErrorDocument 404 /notfound.html
@ar-to
ar-to / gist:55d4a639dc9ab60b9b5a150515720267
Created January 20, 2017 17:27
Maintenance Mode with .htaccess
# serve custom 503 response
ErrorDocument 503 /503.html
# alternate response without custom page
# ErrorDocument 503 "Coming soon!"
#enables mod_rewrite
RewriteEngine On
# If the IP address does not match this one
@ar-to
ar-to / clearfix.sass
Created January 28, 2017 00:31
Sass & Scss mixing & extend for clearfix hack
//==SASS
//==SASS extend
.clearfix
content: ""
display: table
clear: both
//Use
.row:before
@ar-to
ar-to / boxstarter1
Last active July 8, 2018 06:52
My Boxstarter Script
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar
cinst notepadplusplus.install
cinst visualstudiocode
cinst Brackets
cinst chocolatey
cinst chocolatey-core.extension
cinst dropbox
cinst filezilla
cinst Firefox
@ar-to
ar-to / visualstudiosettings
Last active October 22, 2020 19:34
Visual Studio Settings
//add these to the settings.json in Visual studio
// Place your settings in this file to overwrite the default settings
{
"editor.minimap.enabled": true, // Controls if the minimap is shown
"editor.renderIndentGuides": true, // Controls whether the editor should render indent guides
// The path of the shell that the terminal uses on Windows. When using shells shipped with Windows (cmd, PowerShell or Bash on Ubuntu), prefer C:\Windows\sysnative over C:\Windows\System32 to use the 64-bit versions.
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
//"terminal.integrated.shell.windows": "C:\\Windows\\Sysnative\\WindowsPowerShell\\v1.0\\powershell.exe",
//"terminal.integrated.shell.windows": "C:\\Windows\\Sysnative\\cmd.exe",
"editor.renderWhitespace": "all",//show dots as whitespace characters +
@ar-to
ar-to / npm -g i <pkgs>
Last active April 10, 2017 04:26
multiple NPM global package installs
npm i -g gulp-cli bower yo pug-cli gulp-cli
@ar-to
ar-to / .gitconfig
Last active October 31, 2017 17:12
Git aliases
[user]
name = ar-to
email = #add github email
[core]
excludesfile = ~/.gitignore_global
[alias]
c = commit -m
co = checkout
pm = push mangree
@ar-to
ar-to / packages.config
Last active April 20, 2017 02:39
Chocolatey xml file to install multiple packages at once
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="git.install " />
<package id="filezilla" />
<package id="dropbox" />
<package id="Brackets" />
<package id="notepadplusplus.install " />
<package id="chocolatey-core.extension" />
<package id="Firefox" />
<package id="git.install" />
@ar-to
ar-to / mac_setup.txt
Last active April 30, 2021 22:33
Mac Dev setup checklist
New Mac setup
check for xcode command tools:
$ xcode-select -p or gcc
$ xcode-select --install. -- install
SHELL
.bash_profile or install zsh (http://ohmyz.sh)
@ar-to
ar-to / vsc_extensions
Last active September 1, 2022 01:50
List of useful VSC extensions for web development
Projet Manager https://marketplace.visualstudio.com/items?itemName=alefragnani.project-manager
React-native: https://marketplace.visualstudio.com/items?itemName=vsmobile.vscode-react-native
Git project manager : https://marketplace.visualstudio.com/items?itemName=felipecaputo.git-project-manager
sass: https://marketplace.visualstudio.com/items?itemName=robinbentley.sass-indented