Skip to content

Instantly share code, notes, and snippets.

View kseta's full-sized avatar

SETA Keigo kseta

  • Shinjuku, Tokyo, Japan
View GitHub Profile
@mitchellh
mitchellh / merge_vs_rebase_vs_squash.md
Last active March 9, 2026 12:19
Merge vs. Rebase vs. Squash

I get asked pretty regularly what my opinion is on merge commits vs rebasing vs squashing. I've typed up this response so many times that I've decided to just put it in a gist so I can reference it whenever it comes up again.

I use merge, squash, rebase all situationally. I believe they all have their merits but their usage depends on the context. I think anyone who says any particular strategy is the right answer 100% of the time is wrong, but I think there is considerable acceptable leeway in when you use each. What follows is my personal and professional opinion:

@r3-yamauchi
r3-yamauchi / App.js
Last active March 3, 2022 16:07
aws-amplify-react の withAuthenticator HOC を日本語化する
import Amplify from 'aws-amplify';
import aws_exports from './aws-exports';
import { withAuthenticator } from 'aws-amplify-react';
import { I18n } from 'aws-amplify';
Amplify.configure(aws_exports);
const dict = {
'ja': {
'User does not exist.': "ユーザー名またはパスワードが正しくありません",
@ttskch
ttskch / style.scss
Created October 13, 2017 07:04
olを(1)形式にしつつulとolの位置関係を美しく揃えるcss
$list-margin-left: 3rem;
$ol-padding-left: 0.4rem;
ul {
margin-left: $list-margin-left;
padding-left: 0;
}
ol {
counter-reset: ol;
@shunirr
shunirr / criminal_jc.md
Last active June 21, 2025 08:07
女子中学生チケット詐欺事件

criminal_jc

@tristanlins
tristanlins / iconv.docker
Created October 10, 2015 15:41
Docker PHP extension recipes
FROM php:5.6-cli
RUN apt-get update \
&& apt-get install -y \
libfreetype6-dev \
&& rm -rf /var/lib/apt/lists/* \
&& docker-php-ext-install iconv \
&& apt-get remove -y \
libfreetype6-dev \
&& apt-get install -y \
@tjamps
tjamps / README.md
Last active August 25, 2025 17:35
Basic RESTful API with Symfony 2 + FOSRestBundle (JSON format only) + FOSUserBundle + FOSOauthServerBundle

Basic RESTful API with Symfony 2 + FOSRestBundle (JSON format only) + FOSUserBundle + FOSOauthServerBundle

The API we are creating in this gist will follow these rules :

  • The API only returns JSON responses
  • All API routes require authentication
  • Authentication is handled via OAuth2 with password Grant Type only (no need for Authorization pages and such).
  • API versioning is managed via a subdomain (e.g. v1.api.example.com)

The API will be written in PHP with the Symfony 2 framework. The following SF2 bundles are used :

@oppara
oppara / mailcatcher
Created May 17, 2014 10:43
mailcatcher chkconfig
#!/bin/sh
# chkconfig: 345 99 1
# description: mailcatcher
# processname: mailcatcher
start() {
echo -n "starting mailcatcher:"
/usr/local/rbenv/shims/mailcatcher --http-ip=0.0.0.0
return 0
}
<?php
namespace Acme\DemoBundle\Controller;
use Acme\DemoBundle\Form\Entity\Item;
use Acme\DemoBundle\Form\Entity\Tag;
use Acme\DemoBundle\Form\Type\ItemWithTagsType;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Request;
@phpfour
phpfour / AppController.php
Last active September 30, 2018 16:14
Amazon S3 with Symfony2 and Gaufrette
<?php
namespace LM\Bundle\CoreBundle\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
class AppController extends Controller
{

花火~ 最高な俺たちと糞コードの海

written by mizchi at 小物エンジニアの会.

最高の夏の花火について 花火

自己紹介