Skip to content

Instantly share code, notes, and snippets.

Avatar

Daiki Suganuma DaikiSuganuma

View GitHub Profile
@DaikiSuganuma
DaikiSuganuma / smb.conf
Last active Mar 6, 2019
my samba config file for centos7
View smb.conf
# This is the main Samba configuration file. For detailed information about the
# options listed here, refer to the smb.conf(5) manual page. Samba has a huge
# number of configurable options, most of which are not shown in this example.
#
# The Official Samba 3.2.x HOWTO and Reference Guide contains step-by-step
# guides for installing, configuring, and using Samba:
# http://www.samba.org/samba/docs/Samba-HOWTO-Collection.pdf
#
# The Samba-3 by Example guide has working examples for smb.conf. This guide is
# generated daily: http://www.samba.org/samba/docs/Samba-Guide.pdf
@DaikiSuganuma
DaikiSuganuma / aipo
Created Apr 22, 2016
startup script for aipo.
View aipo
#!/bin/sh
#
# Aipo Startup script.
#
# chkconfig: - 86 15
# description: aipo start/stop script.
export PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
# move to project root directory
@DaikiSuganuma
DaikiSuganuma / conf.d|01_hoge.conf
Last active Nov 3, 2020
Nginx Configuration Files for WordPress. Nginx is installed by YUM. @see:https://codex.wordpress.org/Nginx
View conf.d|01_hoge.conf
server {
listen 80;
server_name dev.hoge.jp;
return 301 https://dev.hoge.jp$request_uri;
#root /home/httpd/hoge/wordpress;
# WordPress Setting
#include conf.d/global/wordpress_restrictions.conf;
#include conf.d/global/wordpress_dev.conf;
@DaikiSuganuma
DaikiSuganuma / 0_reuse_code.js
Last active Aug 29, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View main.js
function cleanUp() {
//
// Settings
//
// Enter # of days before messages are moved to trash
var days = 7;
// List of labels which you want to remove
var filters = [];
filters.push('label:notification-mailmagazine');
View Gruntfile.js
module.exports = function(grunt){
// Load plugins
grunt.loadNpmTasks("grunt-contrib-jshint");
grunt.loadNpmTasks("grunt-contrib-watch");
grunt.initConfig({
options: {
livereload: true,
},
jshint: {
View redmine
#!/bin/sh
#
# Redmine Startup script for unicorn.
#
# chkconfig: - 86 15
# description: redmine on unicorn start/stop script.
export PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
# load rbenv
View route53DynDNS.bash
#!/bin/bash
#
# This script requires xpath to parse part of the dnscurl.pl output
# on CentOS/RedHat/Amazon Linux:
#
# sudo yum install perl-XML-XPath
#
# also, dnscurl.pl (from http://aws.amazon.com/code/Amazon-Route-53/9706686376855511)
# expects your secrets to be in ~/.aws-secrets
# using a file format like this (from http://dmz.us/wp/wp-content/uploads/r53/aws-secrets.txt)
You can’t perform that action at this time.