This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
apt-get update | |
apt-get upgrade -y | |
adduser pinfort | |
chmod 701 /home/pinfort | |
mkdir /home/pinfort/.ssh | |
chmod 700 /home/pinfort/.ssh | |
chown pinfort:pinfort /home/pinfort/.ssh | |
vi /home/pinfort/.ssh/authorized_keys | |
chmod 600 /home/pinfort/.ssh/authorized_keys |
I hereby claim:
- I am pinfort on github.
- I am pinfort (https://keybase.io/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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ "name":"John", "age":30, "car":null } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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),)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
<IfModule mod_negotiation.c> | |
Options -MultiViews -Indexes | |
</IfModule> | |
RewriteEngine On | |
RewriteCond %{HTTPS} off | |
RewriteRule ^(.*)$ https://どめいん/$1 [R=302,L] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace zonuexe\ZoProxy; | |
// サブドメインで公開する場合、このパスが一階層変わります。 | |
require_once(dirname(__FILE__).'/../../railsinstaller/php/vendor/autoload.php'); | |
use GuzzleHttp\Client as HttpClient; | |
use GuzzleHttp\Psr7; |
- 新幹線チケット
- 名刺
- パソコン
- スマホ
- 充電器
- さいふ
- モバブ
- あとなに?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
else: | |
return models.BigIntegerField().db_type(connection=connection) | |
class PositiveBigIntegerField(PositiveBigIntegerRelDbTypeMixin, models.BigIntegerField): |
NewerOlder