ターミナルのタイトルバーも更新する。
export PS1="^[]2;$(id -n -u)@$(hostname) \${PWD}^G^[[32m$(id -n -u)@$(hostname) ^[[33m\${PWD}^[[0m
$ "
ただし、 ^[ は C-v + C-q + C-[ (C- はコントロールを押しながらを意味する) と入力。
| #!/bin/sh | |
| # https://www.ibm.com/support/knowledgecenter/ja/SS7K4U_liberty/com.ibm.websphere.wlp.zseries.doc/ae/rwlp_loose_applications.html | |
| # put its content into apps/application-name.war.xml | |
| TMDIR=$(cd dirname $0; echo $PWD) | |
| cat <<EOF | |
| <?xml version="1.0" encoding="UTF-8"?> |
| #!/bin/env python3 | |
| # run like this: `find ~/Desktop/exporting/*.{mp4,mov} | python3 ~/bin/splitmovies.py` | |
| import fileinput | |
| import subprocess | |
| import math | |
| SPLIT_SECONDS = 180 |
| autocmd FileType xml map <Space>f :%!python -c "from xml.dom import minidom; import sys, io; istr=io.TextIOWrapper(sys.stdin.buffer, encoding='utf-8'); print(minidom.parse(istr).toprettyxml(indent=' '))" |
| # Name: Makefile | |
| # Author: <insert your name here> | |
| # Copyright: <insert your copyright message here> | |
| # License: <insert your license reference here> | |
| # This is a prototype Makefile. Modify it according to your needs. | |
| # You should at least check the settings for | |
| # DEVICE ....... The AVR device you compile for | |
| # CLOCK ........ Target AVR clock rate in Hertz | |
| # OBJECTS ...... The object files created from your source files. This list is |
| // project/pugins.sbt: | |
| // addSbtPlugin("io.gatling" % "sbt-plugin" % "1.0") | |
| name := "gatling example" | |
| version := "1.0" | |
| scalaVersion := "2.10.4" | |
| libraryDependencies ++= Seq( |
| #define IR_RECV_PIN 2 | |
| #define IR_TIMEOUT_USEC 1000000 | |
| void setup() | |
| { | |
| Serial.begin(115200); | |
| pinMode(IR_RECV_PIN, INPUT); | |
| } | |
| void loop() |
| (ns cl1.core) | |
| (defn prod-digits | |
| [ps] | |
| (->> ps | |
| (map #(reduce * %1)) | |
| (map #(cond | |
| (> %1 9) (- %1 9) | |
| :else %1)) | |
| (reduce +))) |
push しちゃった場合は、普通の push ができません。でも、 git push -f がちょっとやだなーという人は、
Rebase on github branch
にあるように、 rebase してからプルリクエストを送るためのブランチを作ってしまうのがきっと良い。