バックアップは必ず取っておくこと。
losetup --partscan $(losetup -f) /home/your/images/imagefile.org.img
losetup -l| #!/bin/zsh | |
| read "__token?Input your API Token: " | |
| curl -X POST "https://api.sendgrid.com/v3/api_keys" \ | |
| --header "Authorization: Bearer ${__token}" \ | |
| --header "Content-Type: application/json" \ | |
| --data '{"name": "HogeHoge", "scopes": ["teammates.create","teammates.delete","teammates.read","teammates.update"]}' |
| #!/bin/bash | |
| device_id=$( xinput | grep -i touchpad | sed -nre '/Touchpad/s/.*id=([0-9]*).*/\1/p' ) | |
| state=$( xinput list-props "$device_id" | grep -i "device enabled" | grep -o "[01]$" ) | |
| if test $state = '1' | |
| then | |
| xinput disable "$device_id" && notify-send -i input-touchpad "Toggle Touchpad" "Disabled" | |
| else | |
| xinput enable "$device_id" && notify-send -i input-touchpad "Toggle Touchpad" "Enabled" |
| @SpringBootApplication | |
| class Application | |
| fun main(args: Array<String>) { | |
| // SpringApplication.run(*args) | |
| SpringApplicationBuilder(Application::class.java) | |
| // ここで起動時に追加したい Initializer を渡す | |
| .initializers(CustomContextInitializer()) | |
| .run(*args) | |
| } |
| Exception: | |
| Traceback (most recent call last): | |
| File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 215, in main | |
| status = self.run(options, args) | |
| File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 353, in run | |
| wb.build(autobuilding=True) | |
| File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 749, in build | |
| self.requirement_set.prepare_files(self.finder) | |
| File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 380, in prepare_files | |
| ignore_dependencies=self.ignore_dependencies)) |
| response = requests.post( | |
| u'https://api.hipchat.com/v2/room/%s/notification' % os.environ['ROOM_ID'], | |
| data=_payload( | |
| sender=os.environ['SENDER_NAME'], | |
| notify=True, | |
| color=notify_color, | |
| message_format=u'html', | |
| message=message_body), | |
| headers=_header(os.environ['AUTH_TOKEN'])) |
| def _header(auth_token): | |
| return { | |
| u'Content-Type': u'application/json', | |
| u'Authorization': u'Bearer %s' % auth_token | |
| } | |
| def _payload(sender, notify, color, message_format, message): | |
| return json.dumps({ | |
| u'from': sender, |
| package org.grim3lt.example.Hogehoge; | |
| import lombok.Cleanup; | |
| import java.io.*; | |
| import java.util.Arrays; | |
| public class Hogehoge { | |
| public static void main(String[] args) { | |
| Hogehoge hogehoge = new Hogehoge(); |
| class Application { | |
| fun doExecute(model: DataModel){ | |
| model.id = 1 | |
| model.description = "hoge" | |
| } | |
| } | |
| fun main(args: Array<String>) { | |
| val app = Application() | |
| app.doExecute(DataModel()) |