Skip to content

Instantly share code, notes, and snippets.

View kmusiclife's full-sized avatar

Yuta Konishi kmusiclife

View GitHub Profile
You are ChatGPT, a large language model based on the GPT-5 model and trained by OpenAI.
Knowledge cutoff: 2024-06
Current date: 2025-08-08
Image input capabilities: Enabled
Personality: v2
Do not reproduce song lyrics or any other copyrighted material, even if asked.
You're an insightful, encouraging assistant who combines meticulous clarity with genuine enthusiasm and gentle humor.
Supportive thoroughness: Patiently explain complex topics clearly and comprehensively.
Lighthearted interactions: Maintain friendly tone with subtle humor and warmth.
# Extension package to add on Ubuntu 14.04
sudo apt-get install libxml2-dev libbz2-dev libmcrypt-dev libreadline-dev libxslt1-dev autoconf -y
# Extension package to add on Ubuntu 18.04
sudo apt-get install libssl-dev
# Extension package to add on Ubuntu 20.04
sudo apt install -y pkg-config libssl-dev libsqlite3-dev libbz2-dev libxml2-dev libcurl4-openssl-dev libonig-dev libpq-dev libreadline-dev libxslt1-dev libzip-dev libsodium-dev libwebp-dev
# +apxs2
sudo apt-get install apache2-dev -y
@brtriver
brtriver / update2.2to2.3.md
Last active December 18, 2015 01:29
Symfony2.3にあげるときにはまったこと

Symfony を 2.2 から 2.3 にアップしたときのメモ

  • updateするときのお話。新規でcreate-projectするなら何も困らない

  • php composer.phar update する前に以下をチェック

  • composer.jsonの修正

  • http://symfony.com/blog/symfony-2-3-0-the-first-lts-is-now-available

  • キャッシュファイルは事前にrmしておく

  • icuが4.4以上でないと怒られるので、事前にインストールしているicuのバージョンをチェックしておくこと

  • composer.jsonでバージョン指定すれば回避可能 http://php-sql-gdgd.jugem.jp/?eid=104

すぐれた PHP ライブラリとリソース

Awesome PHP の記事をフォークして翻訳したものです (2013年4月25日)。おどろくほどすごい PHP ライブラリ、リソースやちょっとした情報のリストです。

【訳者コメント】 PHP 入門者のかたにはクィックリファレンスとして PHP: The Right Way 、セキュリティに関しては2011年3月に出版された 体系的に学ぶ 安全なWebアプリケーションの作り方 をおすすめします。

Composer

@boucher
boucher / gist:1750375
Created February 6, 2012 07:09 — forked from siddarth/gist:1379745
Stripe PHP simple example
<?php
require 'path-to-Stripe.php';
if ($_POST) {
Stripe::setApiKey("YOUR-API-KEY");
$error = '';
$success = '';
try {
if (!isset($_POST['stripeToken']))
throw new Exception("The Stripe Token was not generated correctly");
@yagihiro
yagihiro / HttpConnectionWrapper.h
Created April 10, 2011 02:56
Objective-C で簡単に HTTP 通信を取り扱うことができるようにするクラス
//
// HttpConnectionWrapper.h
//
// Created by Hiroki Yagita on 11/04/09.
// Copyright 2011 Hiroki Yagita. All rights reserved.
//
/*! @file */
#import <Foundation/Foundation.h>
@rummelonp
rummelonp / hello.c
Created January 25, 2011 04:19
C言語で"Hello, World!"
// $ gcc -o hello hello.c
// $ ./hello
#include <stdio.h>
int main(void)
{
printf("Hello, World!\n");
return 0;
}
@rummelonp
rummelonp / init.el
Created October 28, 2010 04:00
twittering-modeでreply/directmessageが来たときにgrowlを出す設定
;; growl
(setq growl-program "/usr/local/bin/growlnotify")
(defun growl (title message &optional app)
(start-process "Growl" "*Growl*" growl-program
"-t" title
"-m" message
"-a" app))
;; twittering mode
(require 'twittering-mode)