When you use docker with "multiple commands", you will write scripts like this:
run.sh
#!/bin/sh -e
pip install --upgrade poetry
poetry config settings.virtualenvs.create false
poetry install
{ | |
"workbench.startupEditor": "newUntitledFile", | |
"workbench.colorTheme": "One Dark Pro", | |
"editor.fontSize": 12, | |
"editor.rulers": [80], | |
"editor.tabSize": 2, | |
"[python]": { | |
"editor.tabSize": 4 | |
}, | |
"atomKeymap.promptV3Features": true, |
[検閲済み]
I hereby claim:
To claim this, I am signing this object:
[email protected] | |
[email protected] | |
[email protected] | |
[email protected] | |
[email protected] | |
[email protected] | |
[email protected] | |
[email protected] | |
[email protected] | |
[email protected] |
#!/usr/bin/env python | |
# coding=utf-8 | |
"""View test base.""" | |
from urllib import parse | |
from django.conf import settings | |
from django.contrib.auth import authenticate, get_user_model, get_user | |
from django.core.urlresolvers import reverse, resolve |
# Your snippets | |
# | |
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to | |
# expand the prefix into a larger code block with templated values. | |
# | |
# You can create a new snippet in this file by typing "snip" and then hitting | |
# tab. | |
# | |
# An example CoffeeScript snippet to expand log to console.log: | |
# |
g.task "third_party", -> | |
prefix = "app/home/static/third_party" | |
files = [ | |
"#{prefix}/angular/angular.js" | |
"#{prefix}/angular-animate/angular-animate.js" | |
"#{prefix}/angular-aria/angular-aria.js" | |
"#{prefix}/angular-messages/angular-messages.js" | |
"#{prefix}/angular-resource/angular-resource.js" | |
"#{prefix}/angular-material/angular-material.js" | |
] |
#!/bin/sh | |
# How to use it: include this file from shell rc file. | |
# e.g. source .konsole_blur_effect | |
# Blur Active Konsolw window | |
service="org.kde.konsole" | |
windows=($(qdbus ${service} 2>null| grep -E '^/konsole/MainWindow_[0-9]+$')) | |
for window in ${windows}; do | |
is_active="$(qdbus ${service} ${window} org.qtproject.Qt.QWidget.isActiveWindow)" |
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
from hashlib import sha1 | |
from hmac import new | |
from time import time | |
import base64 | |
import json | |
def generate_msg(secret, _id, username, email): | |
json_str = json.dumps({ |