Skip to content

Instantly share code, notes, and snippets.

View nicobot's full-sized avatar

Nicolás Bottini nicobot

View GitHub Profile
@nicobot
nicobot / cline.prompt.txt
Created February 20, 2025 17:06 — forked from ruvnet/cline.prompt.txt
Custom Agentic Development Instructions
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}
@nicobot
nicobot / .gitlab-ci.yml
Created October 1, 2024 08:23 — forked from spoonerWeb/.gitlab-ci.yml
GitLab CI for building and deploying TYPO3 websites with deployer
cache:
paths:
- /cache/composer
stages:
- composer
- deploy
build:
stage: composer
@nicobot
nicobot / local.password.inc
Created November 13, 2018 18:28
Drupal 7 - Development settings
<?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
@nicobot
nicobot / local.password.inc
Created June 15, 2017 17:27
Drupal login with any user: password will always match
<?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
@nicobot
nicobot / option-with-curl
Created April 18, 2017 08:57
Installing portable git client (without sudo user)
# 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/
@nicobot
nicobot / gulpfile.js
Last active August 29, 2015 14:28
Drupal Omega 4 - Libsass config
'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'),
@nicobot
nicobot / copySelectedCheckboxes.js
Last active August 29, 2015 14:20
Copy the selected checkboxes from one page to other with console
// -------------- 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);
@nicobot
nicobot / gist:d946f4b1481d1a9055e6
Created August 6, 2014 13:14
jQuery: Get all events functions associated to an element
$._data( $("#my_element")[0], "events" )
@nicobot
nicobot / remove_gems.bash
Created July 29, 2014 23:31
Remove all gems
for x in `gem list --no-versions`; do gem uninstall $x -a -x -I; done
@nicobot
nicobot / forward port using ssh.sh
Created July 29, 2014 22:25
Forward port using SSH
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)