Skip to content

Instantly share code, notes, and snippets.

Camilo clsource

Block or report user

Report or block clsource

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@clsource
clsource / repo-reset.md
Created Nov 23, 2018 — forked from heiswayi/repo-reset.md
GitHub - Delete commits history with git commands
View repo-reset.md

First Method

Deleting the .git folder may cause problems in our git repository. If we want to delete all of our commits history, but keep the code in its current state, try this:

# Check out to a temporary branch:
git checkout --orphan TEMP_BRANCH

# Add all the files:
git add -A
View git-tag-delete-local-and-remote.sh
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
View Template-README-for-containers.md

Docker Container Name

A one paragraph description about the container.

Getting Started

These instructions will cover usage information and for the docker container

Prerequisities

@clsource
clsource / README-Template.md
Created Sep 28, 2018 — forked from PurpleBooth/README-Template.md
A template to make good README.md
View README-Template.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

View Good-CONTRIBUTING.md-template.md

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a
View keybase.md

Keybase proof

I hereby claim:

  • I am clsource on github.
  • I am clsource (https://keybase.io/clsource) on keybase.
  • I have a public key ASBQSg_8J0u5uKo62oT8m5PpJoV0gZXp9fnuvXVnNhzjOAo

To claim this, I am signing this object:

@clsource
clsource / stardewvalley-1.2-items.json
Last active Oct 17, 2017
Stardew Valley 1.2 Item List and Bundles
View stardewvalley-1.2-items.json
This file has been truncated, but you can view the full file.
{
"data": {
"title": "Stardew Valley Items and Bundles",
"version": "1.2",
"bundles": {
"en": [{
"uid": "185b35ec7502ad3bdbe2c850331964e4",
"raw": "Pantry\/0",
"id": 0,
@clsource
clsource / Debug.php
Created Dec 8, 2015
Processwire Debug Helper
View Debug.php
<?php
/**
* Copyright (c) 2015 - CLSource
* Helps with the debug log.
* see: https://processwire.com/talk/topic/4550-debugging-tips/
*
* @author : clsource <camilo@ninjas.cl>
* @license : MIT https://opensource.org/licenses/MIT
*
* usage:
@clsource
clsource / substring.m
Last active Aug 29, 2015
Implement a Substring Closure within a Range in Objective C
View substring.m
// Substring Closure
// Similar for what found in other languages
// Usage
// substring(@"my-string", 2, 4);
// => -st
NSString * ( ^ substring ) (NSString *, int , int);
substring = ^(NSString * string, int from, int to) {
@clsource
clsource / 401-response.php
Created Jul 30, 2014
Helper for Creating REST Web Services with ProcessWire
View 401-response.php
<?php
/*
* 401 Response
*
* Sends a 401 Response Unauthorized
*
* @author Camilo Castro
*
* @date 29/07/2014
You can’t perform that action at this time.