Skip to content

Instantly share code, notes, and snippets.

View geocine's full-sized avatar
🫠
지식은 행동으로 번성하고, 게으르면 시들어간다.

Aivan Monceller geocine

🫠
지식은 행동으로 번성하고, 게으르면 시들어간다.
View GitHub Profile
@geocine
geocine / PagedListSample.cs
Last active December 21, 2015 08:18
PagedList Sample on Controller
public ActionResult Data(string s, string f, string q, int? p)
{
ViewBag.CurrentSort = s;
ViewBag.UsernameSortParm = String.IsNullOrEmpty(s) ? "username_desc" : "";
ViewBag.DateSortParm = s == "date" ? "date_desc" : "date";
ViewBag.HoursSortParm = s == "hours" ? "hours_desc" : "hours";
ViewBag.AlertSortParm = s == "alert" ? "alert_desc" : "alert";
if (q != null)
{
@geocine
geocine / PagedListSample.cshtml
Created August 20, 2013 03:30
PagedList Sample on View
<div class="box">
<div class="form-head box-title">
<h3><i class="icon-th-list"></i>Time Entry Status</h3>
</div>
<div>
@using (Html.BeginForm("Data", "Status", FormMethod.Get))
{
<div class="control-group search">
<div class="input-xxlarge">
@Html.TextBox("q", ViewBag.CurrentFilter as string, new { placeholder = "Search here..." })
package com.webileapps.myrtprofile;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.widget.Button;
/**
*
@geocine
geocine / gist_tag.rb
Last active December 25, 2015 02:49 — forked from fresky/gist_tag.rb
# A Liquid tag for Jekyll sites that allows embedding Gists and showing code for non-JavaScript enabled browsers and readers.
# by: Brandon Tilly
# Source URL: https://gist.github.com/1027674
# Post http://brandontilley.com/2011/01/31/gist-tag-for-jekyll.html
#
# Example usage: {% gist 1027674 gist_tag.rb %} //embeds a gist for this plugin
require 'cgi'
require 'digest/md5'
require 'net/https'
@geocine
geocine / startxampp
Created December 5, 2013 07:06
Take control of port 80 and 443 then start xampp
@ECHO OFF
sc stop W3SVC
sc stop ReportServer$SQLEXPRESS
start /b D:\xampp\apache\bin\httpd.exe
start /b D:\xampp\mysql\bin\mysqld --defaults-file=D:\xampp\mysql\bin\my.ini --standalone --console
@geocine
geocine / README.md
Last active February 4, 2021 02:49 — forked from pasela/README.md

A pastel color theme for mintty

screenshot

Settings

Merge mintty-color-pastel-rc into your .minttyrc

or

@geocine
geocine / .bashrc
Created March 20, 2014 20:40
cygwin bash configuration
# If not running interactively, don't do anything
[[ "$-" != *i* ]] && return
# add clear function
alias clear='printf "\033c"'
# Lowercase username
uname=`echo "$USERNAME" | tr "[A-Z]" "[a-z]"`
# Lowercase hostname
hname=`echo "$HOSTNAME" | tr "[A-Z]" "[a-z]"`
@geocine
geocine / equipment.md
Last active August 29, 2015 14:06
Equipment

Overview

  • Windows 8.1 Pro 64 Bit (6.3, Build 9600)
  • Z97MX-Gaming 5 Motherboard
  • Intel i7-4790K 4.0 GHz CPU
  • 16GB RAM
  • Asus GTX 760 Direct CU II
  • Dual Monitor Asus VX239H
  • 240 GB SSD (OS)
  • Microsoft Lifecam HD-5000 Webcam
@geocine
geocine / git-flow.md
Last active September 24, 2019 06:06

Git can be used in a variety of ways which is cool. But still, when working within a team, it is good to have a consensus on a common, shared approach in order to avoid conflicts. This article quickly explains how we implemented the "git flow" pattern in one of our projects.

Git-flow...

...is a popular strategy which works around the master branch, but in a less "aggressive" way (than the GitHub flow pattern for instance). You have two main branches:

  • master branch contains the latest production code that has been deployed, and versioned with appropriate tags for each release.

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname