This file contains hidden or 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
use wsl for all local terminal when running in windows. | |
never hardcode .env variables in dockerfiles or code. | |
User query: {base_task} --keep it simple | |
Context from Previous Research (if available): | |
Key Facts: | |
{key_facts} |
This file contains hidden or 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
cache: | |
paths: | |
- /cache/composer | |
stages: | |
- composer | |
- deploy | |
build: | |
stage: composer |
This file contains hidden or 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
<?php | |
/** | |
* @file | |
* Secure password hashing functions for user authentication. | |
* | |
* Based on the Portable PHP password hashing framework. | |
* @see http://www.openwall.com/phpass/ | |
* | |
* An alternative or custom version of this password hashing API may be |
This file contains hidden or 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
<?php | |
/** | |
* @file | |
* Secure password hashing functions for user authentication. | |
* | |
* Based on the Portable PHP password hashing framework. | |
* @see http://www.openwall.com/phpass/ | |
* | |
* An alternative or custom version of this password hashing API may be |
This file contains hidden or 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
# Reference from: http://joemaller.com/908/how-to-install-git-on-a-shared-host/ | |
cd ~/ | |
mkdir src | |
cd src | |
wget https://disq.us/url?url=https%3A%2F%2Fgithub.com%2Fgit%2Fgit%2Farchive%2Fv2.7.1.tar.gz%3AjzsEsE2o87ggi9eYC6afeNAp3mU&cuid=607892 | |
wget https://disq.us/url?url=https%3A%2F%2Fcurl.haxx.se%2Fdownload%2Fcurl-7.47.1.tar.gz%3AovmyKiggP-YrYEKui_1swJbhMgk&cuid=607892 | |
tar -xzvf v2.7.1.tar.gz | |
tar -xzvf curl-7.47.1.tar.gz | |
cd git-2.7.1/ |
This file contains hidden or 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
'use strict'; | |
var gulp = require('gulp'); | |
var sass = require('gulp-sass'); | |
var sourcemaps = require('gulp-sourcemaps'); | |
var autoprefixer = require('gulp-autoprefixer'); | |
var importer = require('node-sass-globbing'), | |
livereload = require('gulp-livereload'), | |
ifElse = require('gulp-if-else'), |
This file contains hidden or 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
// -------------- USE IN THE SOURCE -------------- | |
$ = $ || jQuery; | |
if(!$) { console.log("You need to have jQuery installed"); return; } | |
var getSelectedItems = function(holderSelector) { | |
var struct = []; | |
$(holderSelector).find('input[type="checkbox"]:checked').each(function() { | |
struct.push({id: $(this).prop('id')}); | |
}) | |
return JSON.stringify(struct); |
This file contains hidden or 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
$._data( $("#my_element")[0], "events" ) |
This file contains hidden or 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
for x in `gem list --no-versions`; do gem uninstall $x -a -x -I; done |
This file contains hidden or 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
ssh -L [your_new_port:]:address_on_remote:port_on_remote user_on_remote@remoteserver | |
i.e: | |
ssh -L 35729:127.0.0.1:35729 dev@dev.vagrant | |
ssh -L 8090:127.0.0.1:8080 dev@tomcat.local (then access your localhost:8089) | |
NewerOlder