Skip to content

Instantly share code, notes, and snippets.

View Dragod's full-sized avatar
🎲
Ma le spegnene?

Fabio Dragod

🎲
Ma le spegnene?
View GitHub Profile
@Dragod
Dragod / .bashrc
Last active July 24, 2019 09:15
Personalized .bashrc -- path: C:\Users\fabio\.bashrc
View .bashrc
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
# Path to the bash it configuration
export BASH_IT="/c/Users/fabio/.bash_it"
@Dragod
Dragod / vsbuild.bat
Created February 21, 2019 17:14
Build unity with msbuild, run IISExpress and open localhost on firefox. If it doesn't work please check folders path inside the batch and make sure you got installed vs 2017
View vsbuild.bat
@ECHO OFF
CD /D "C:\gitrepos\sd-unity-4-0"
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat"
call "msbuild"
start firefox -devTools http://localhost:49797/index.aspx
CD /D "C:\Program Files (x86)\IIS Express"
iisexpress /path:C:\gitrepos\sd-unity-4-0\ /port:49797 /clr:v4.0
CMD
@Dragod
Dragod / fabio.theme.bash
Last active July 24, 2019 09:51
Personalized bash theme using bash_it (https://github.com/Bash-it/bash-it)
View fabio.theme.bash
#!/usr/bin/env bash
SCM_THEME_PROMPT_PREFIX=""
SCM_THEME_PROMPT_SUFFIX=""
SCM_THEME_PROMPT_DIRTY=" ${bold_red}✗${normal}"
SCM_THEME_PROMPT_CLEAN=" ${bold_green}✓${normal}"
SCM_GIT_CHAR="${bold_green}±${normal}"
SCM_SVN_CHAR="${bold_cyan}⑆${normal}"
SCM_HG_CHAR="${bold_red}☿${normal}"
# THEME_CLOCK_FORMAT=${THEME_CLOCK_FORMAT:-"%I:%M:%S"}
@Dragod
Dragod / run-vpn.bat
Last active July 24, 2019 09:52
Run AWS VPN from command line
View run-vpn.bat
@ECHO OFF
openvpn --config C:/Users/fabio/OpenVPN/config/fabio-awsorig/fabio-awsorig.ovpn
CMD
@Dragod
Dragod / grunt-config.json
Last active July 24, 2019 09:50
Grunt json configuration for building scripts (colors.sh & core-colors.sh)
View grunt-config.json
{
"css": ["C:/gitrepos/sd-unity-4-0/css"],
"assets": ["C:/gitrepos/sd-unity-4-0/assets"]
}
@Dragod
Dragod / core-colors.sh
Created April 26, 2019 10:33
Build core and colors on sd-unity
View core-colors.sh
#!/usr/bin/env bash
# Sass build only skin colors
# Use: type "colors" in bash console, or npm run colors,
# make sure eithe .bashrc or npm scripts are set up for this to work
# No Color
white='\e[1;37m'
@Dragod
Dragod / colors.sh
Created April 26, 2019 10:33
Build colors for a specific skin in sd-unity
View colors.sh
#!/usr/bin/env bash
# Sass build only skin colors
# Use: type "colors" in bash console, or npm run colors,
# make sure eithe .bashrc or npm scripts are set up for this to work
# No Color
white='\e[1;37m'
@Dragod
Dragod / copy.sh
Created May 2, 2019 09:27
Copy and paste sdcore.min.js from dist folder to sd-unity-4-0/sdcore folder
View copy.sh
#!/bin/bash
# Copy and paste sdcore.min.js from dist folder to sd-unity-4-0/sdcore folder
function copyjs()
{
cd C:/gitrepos/sdcore/dist
for f in *.js
do
cp -v "$f" C:/gitrepos/sd-unity-4-0/sdcore/${f%.js}.js
done
@Dragod
Dragod / profiles.json
Last active November 29, 2020 18:14
Windows Terminal settings and files
View profiles.json
// This file was initially generated by Windows Terminal 1.0.1401.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
@Dragod
Dragod / sdBuild.bat
Last active July 24, 2019 09:47
Build unity with msbuild tools 2019, run IISExpress and open localhost on firefox. If it doesn't work please check folders path inside the batch. Visual Studio is not required to run this.
View sdBuild.bat
@ECHO OFF
CD /D "C:\gitrepos\sd-unity-4-0"
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\Common7\Tools\VsDevCmd.bat"
msbuild
start firefox -devTools http://localhost:49797/index.aspx
CD /D "C:\Program Files (x86)\IIS Express"
iisexpress /path:C:\gitrepos\sd-unity-4-0\ /port:49797 /clr:v4.0
CMD