Skip to content

Instantly share code, notes, and snippets.

On university

pinfort pinfort

On university
Block or report user

Report or block pinfort

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am pinfort on github.
  • I am pinfort ( on keybase.
  • I have a public key whose fingerprint is 7230 149F 6DC9 FE66 AFF5 1AA8 86F7 0972 CD95 0D8C

To claim this, I am signing this object:



test > test > test

pinfort / example.json
Created Mar 27, 2019
example json file
View example.json
{ "name":"John", "age":30, "car":null }
# -*- coding: utf8 -*-
import os
import time
username = raw_input("input new user name\n>>")
os.system("useradd %s" % unicode(username))
os.system("passwd %s" % unicode(username))
os.system("chmod 701 /home/%s" % unicode(username))
os.system("mkdir /home/%s/.ssh" % unicode(username))
os.system("chmod 700 /home/%s/.ssh" % (unicode(username),))
View htaccessForRailsOnXserver.htaccess
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://どめいん/$1 [R=302,L]
View PHPproxy.php
namespace zonuexe\ZoProxy;
// サブドメインで公開する場合、このパスが一階層変わります。
use GuzzleHttp\Client as HttpClient;
use GuzzleHttp\Psr7;
pinfort /
Last active Jun 2, 2018
  • 新幹線チケット
  • 名刺
  • パソコン
  • スマホ
  • 充電器
  • さいふ
  • モバブ
  • あとなに?
pinfort /
Last active Jul 4, 2019
Django database fields for using unsigned bigint column
from django.db import models
class PositiveBigIntergerRelDbTypeMixin(models.PositiveIntegerRelDbTypeMixin):
def rel_db_type(self, connection):
if connection.features.related_fields_match_type:
return self.db_type(connection)
return models.BigIntegerField().db_type(connection=connection)
class PositiveBigIntegerField(PositiveBigIntegerRelDbTypeMixin, models.BigIntegerField):
import os
import tweepy
class Tweet(object):
use tweepy
def __init__(self):
consumer_key = os.environ.get("TWITTER_CONSUMER_KEY")
consumer_secret = os.environ.get("TWITTER_CONSUMER_SECRET")
pinfort /
Created Sep 25, 2017
# -*- coding: utf-8 -*-
import os
import shutil
import sys
path = '/mnt/hdd1/nas/picture/smartphone/rei/20170909/pictures/Twitter'
files = os.listdir(path)
# ファイル移動
You can’t perform that action at this time.