This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo ln -s /Applications/MAMP/tmp/mysql/mysql.sock /tmp/mysql.sock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.idea | |
# Android | |
native/platforms/android/assets/www | |
native/platforms/android/ant-build/ | |
native/platforms/android/ant-gen/ | |
native/platforms/android/res/xml/config.xml | |
# iOS | |
native/platforms/ios/build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
git ls-files -ci --exclude-standard -z | xargs -0 git rm --cached |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.wrapper{ | |
position: relative; | |
width: 50%; | |
overflow: hidden; | |
background: #4679BD; | |
} | |
.wrapper:before{ | |
content: ""; | |
display: block; | |
padding-top: 100%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require("gulp"); | |
var browserSync = require("browser-sync"); | |
gulp.task('browser-sync', function(){ | |
browserSync.init(["www/css/*.css", "www/js/*.js", "www/*.html"], { | |
server: { | |
baseDir: "www" | |
}, | |
logConnections: true, | |
ghostMode: false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul> | |
<li>1</li> | |
<li>2</li> | |
<li>3</li> | |
<li>4</li> | |
<li>5</li> | |
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#find disk | |
$ diskutil list | |
#unmount it (check the number) | |
$ diskutil unmountDisk /dev/disk2 | |
#format it (check the number) | |
$ sudo dd if=/dev/zero of=/dev/rdisk2 bs=1024 count=1 | |
#write image to it (check .img name and disk number) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scutil --set HostName name-of-host |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
open /Applications/Google\ Chrome\ Canary.app/ --args --disable-web-security |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Mount the installer image | |
hdiutil attach /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app | |
# Create the ElCapitan Blank ISO Image of 7316mb with a Single Partition - Apple Partition Map | |
hdiutil create -o /tmp/ElCapitan.cdr -size 7316m -layout SPUD -fs HFS+J | |
# Mount the ElCapitan Blank ISO Image | |
hdiutil attach /tmp/ElCapitan.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/install_build |
OlderNewer