Skip to content

Instantly share code, notes, and snippets.

View yousan's full-sized avatar
💻
I must work everyday

Yousan_O yousan

💻
I must work everyday
View GitHub Profile
@freddiefujiwara
freddiefujiwara / file0.txt
Last active September 15, 2017 05:41
phpMyAdminをphp-fpmをやめてNGINX Unitで動かす  ref: http://qiita.com/freddiefujiwara/items/9bd4d94cfe8f7e89de25
$ wget http://nginx.org/keys/nginx_signing.key
$ sudo apt-key add nginx_signing.key
$ sudo su
# echo 'deb http://nginx.org/packages/mainline/ubuntu/ xenial nginx' >> /etc/apt/sources.list.d/nginx.list
# echo 'deb-src http://nginx.org/packages/mainline/ubuntu/ xenial nginx' >> /etc/apt/sources.list.d/nginx.list
# apt-get update
# apt-get install unit
見出し部分。ここをクリック。**見出し部分のMarkdown太文字は不可**
*divの下に行を空けないで書くとMarkdownは変換されない*

ここが隠れてる部分。

中身には色々書ける。

@butlerblog
butlerblog / functions.php
Last active March 24, 2026 17:46
SMTP using wp-config.php for settings #smtp #wp_mail
<?php // Don't use this line.
/*
* Add the script below to wherever you store custom code snippets
* in your site, whether that's your child theme's functions.php,
* a custom plugin file, or through a code snippet plugin.
*/
/**
* This function will connect wp_mail to your authenticated
@ollieparanoid
ollieparanoid / busybox-extras-install.txt
Created May 5, 2017 19:56
Alpine Linux: busybox-extras install/uninstall
Related to this pull-request:
https://github.com/alpinelinux/aports/pull/1092
Steps:
1. upgrade busybox to the one, which has busybox-extras
2. telnet does not exist anymore
3. add busybox-extras
4. telnet exists
5. uninstall busybox-extras and re-install busybox
6. telnet does not exist anymore
@floriankraft
floriankraft / ajax-with-promise.ts
Created January 15, 2017 11:33
HTTP Request with Promises in Typescript
getRequest(url: string): Promise<any> {
return new Promise<any>(
function (resolve, reject) {
const request = new XMLHttpRequest();
request.onload = function () {
if (this.status === 200) {
resolve(this.response);
} else {
reject(new Error(this.statusText));
}
@Viitainen
Viitainen / Tools.php
Created December 12, 2016 18:00
CakePHP random password
class Tools {
/*
* Generate random integer between $min and $max
* @param [type] $min [description]
* @param [type] $max [description]
* @return [type] [description]
*/
public static function secureRandomInt($min, $max) {
$max++;
@miya0001
miya0001 / contact-form-7.feature
Last active August 10, 2017 11:24
Behat + PhantomJS + WordPress Examples
Feature: WordPress Admin
Scenario: Showing the Homepage with PC
Given the screen size is 1440x900
And I login as "admin" with password "admin"
When I am on "/wp-admin/plugin-install.php"
And I fill in "s" with "contact-form-7"
And I wait for 10 seconds
Then I should see "Just another contact form plugin."
@nnja
nnja / gist:9136152c163091614e70defcf3753d06
Created May 26, 2016 20:25
How to access the raw markdown source for a github wiki page
https://raw.github.com/wiki/user/repo/page.md?login=login&token=token
@fujimaki-k
fujimaki-k / Releaseflow.md
Last active March 12, 2024 03:03
リリースまでの流れ

リリースまでの流れ

1. フィーチャーブランチの作成

  • develop ブランチから新たに作成する機能のためのフィーチャーブランチを作成します。
git branch feature/new_feature develop

2. プログラムの開発とテスト

@bastman
bastman / docker-cleanup-resources.md
Created March 31, 2016 05:55
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm