Skip to content

Instantly share code, notes, and snippets.

View edwinheij's full-sized avatar
😊
Keep smiling

Edwin Heij edwinheij

😊
Keep smiling
View GitHub Profile
@edwinheij
edwinheij / gist:9ab3558948e8f53688fb
Created January 20, 2016 23:17
angular scope's
for(var cs = scope.$$childHead; cs; cs = cs.$$nextSibling) {
// cs is child scope
console.log(cs);
}
sudo apt-get install lib32stdc++6 lib32z1 (fouten met aapt tijdens builden van app)
# Composer toevoegen aan path
export PATH=$PATH:/home/edwin/.composer/vendor/bin
# Android stuff
export ANDROID_HOME=/home/edwin/android/sdk
export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform_tools
# JAVA
@edwinheij
edwinheij / gist:4dd4eef5f5d250fb3b4b
Last active June 17, 2016 09:24
Including .composer bin to path
place this in .profile @ ~/ (user's home)
if [ -d "$HOME/.composer/vendor/bin" ] ; then
PATH="$PATH:$HOME/.composer/vendor/bin"
fi
of..... onderaan je .profile:
export PATH=$PATH:/home/edwin/.composer/vendor/bin
(werkt beter @ ubuntu)
@edwinheij
edwinheij / gist:724b40edac3773d4d87f
Created October 5, 2015 22:39
laravel serviceprovider only in development @ localhost
public function register()
{
if ($this->app->environment() == 'local') {
$this->app->register('Laracasts\Generators\GeneratorsServiceProvider'); // for example ;)
}
}
@edwinheij
edwinheij / gist:e3b4d3196254f03b41a7
Created October 4, 2015 00:16
alias vm no fingerprint
alias vm="ssh -o StrictHostKeyChecking=no [email protected] -p 2222"
) Clear NPM's cache:
sudo npm cache clean -f
2) Install a little helper called 'n'
sudo npm install -g n
3) Install latest stable NodeJS version
@edwinheij
edwinheij / gist:100ef388bbff48ac1548
Last active October 2, 2015 09:22
https @ localhost certificate problem
cURL error 60: SSL certificate problem: unable to get local issuer certificate
If you see this issue then you're likely running Windows. The fix to this is:
Download file: curl.haxx.se/ca/cacert.pem
Update your `php.ini` to include the following:
curl.cainfo = "[path_to_location]\cacert.pem"
Restart your web server
First make sure you have Python (https://www.python.org/download/) and pip (http://pip.readthedocs.org/en/latest/installing.html) installed, then install the filesystem observer with:
python -m pip install F5NoMore"
C:\Python34\python.exe -m f5nomore
Now add the F5NoMore extension from the Google Chrome webstore and you're good to go: https://chrome.google.com/webstore/detail/f5nomore/bgkkcdjaonlbjoopncdpdgchdohaieap
@edwinheij
edwinheij / global-homestead.sh
Created September 23, 2015 22:12 — forked from taylorotwell/global-homestead.sh
Global Homestead Without Composer
alias homestead='function __homestead() { (cd ~/Code/Homestead && vagrant $*); unset -f __homestead; }; __homestead'
# Usage
homestead up
homestead halt
# etc...
@edwinheij
edwinheij / command_prompt_here.cmd
Created September 1, 2015 10:16
Command prompt here
@%COMSPEC% /K