Skip to content

Instantly share code, notes, and snippets.

View harupong's full-sized avatar

Haruo Nakayama harupong

View GitHub Profile
@harupong
harupong / gist:be8bf22b121e0bc7ea93f7adb08e2495
Created April 2, 2024 03:11
Fix for Copy and paste between iPhone and Mac(a.k.a Universal clipboard) not working
```
$ defaults delete ~/Library/Preferences/com.apple.coreservices.useractivityd.plist ClipboardSharingEnabled
$ defaults write ~/Library/Preferences/com.apple.coreservices.useractivityd.plist ClipboardSharingEnabled 1
```
[Copy and paste from iPhone to MacOS not w… \- Apple Community](https://discussions.apple.com/thread/254811288?answerId=259970423022&sortBy=best#259970423022)
@harupong
harupong / gist:f8b30da847745bda21c0f16564cfe858
Created January 19, 2024 00:49
Adding new user and enable sudo on Debian based systems. I can never remember whether it is `adduser` or `useradd`
userid=<username>
adduser ${userid}
usermod -aG sudo ${userid}
@harupong
harupong / テストだよ.md
Created May 6, 2023 22:35
テストです

‎‎​

‎‎​

PHP Markdown Extra 仕様の全訳(意訳) http://michelf.ca/projects/php-markdown/extra/

Markdown拡張仕様であるExtraモードの上記仕様ページを日本語訳したものです。


PHP Markdown Extraは、通常のオリジナルMarkdown記法では利用できない、いくつかの特徴を加えて移植されたPHP Markdown記法の特別なバージョンです。PHP Markdown Extra は、PHP Markdown home pageからダウンロードできます。

このドキュメントでは、PHP Markdown Extraで採用し、Markdown記法に追加した機能や変更を説明しています。このドキュメントを読む前に、オリジナルのMarkdown記法のドキュメントの方に目を通しておくべきでしょう。

@harupong
harupong / gist:46fb8b4d8dd5825d7aa653a719087d1f
Created September 11, 2018 09:30
Quick and dirty PowerShell script to dedupe Google photos using rclone
$paths = @(
"google-drive:Google Photos\path1",
"google-drive:Google Photos\path2",
"google-drive:Google Photos\path3",
)
$paths | ForEach-Object -Process {
echo $_ ; .\rclone lsf $_ | Measure-Object –Line ; if($?) {.\rclone dedupe --dedupe-mode largest $_}
}
@harupong
harupong / five_minutes.yml
Created February 26, 2016 03:32 — forked from ryane/five_minutes.yml
five_minutes.yml
---
- hosts: all
vars:
UBUNTU_COMMON_ROOT_PASSWORD: 'xxxxx'
UBUNTU_COMMON_DEPLOY_PASSWORD: 'xxxxx'
UBUNTU_COMMON_LOGWATCH_EMAIL: user@example.com
ubuntu_common_deploy_user_name: deploy
ubuntu_common_deploy_public_keys:
- ~/.ssh/id_rsa.pub
@harupong
harupong / gist:2340e3d6fd380fc4d3a5
Last active January 5, 2016 05:17
crude one-liner to dowload latest GitBucket war file from GitHub
wget https://github.com/gitbucket/gitbucket/releases/download/$(curl -s https://api.github.com/repos/gitbucket/gitbucket/releases/latest | grep -Po '(?<="tag_name": ")[^"]*')/gitbucket.war -O gitbucket.war
@harupong
harupong / -
Last active December 30, 2015 02:49
tmux and mouse mode - Dan Lowe http://tangledhelix.com/blog/2012/07/16/tmux-and-mouse-mode/
tmux - Line wrap problems in Mac OS X terminal? http://comments.gmane.org/gmane.comp.terminal-emulators.tmux.user/651
-> http://stackoverflow.com/questions/2119942/how-to-wrap-git-commit-comments/6697519#6697519
-> git log -p した画面で ←→
@harupong
harupong / -
Created November 26, 2013 14:02
pandoc 1.11.1
Compiled with citeproc-hs 0.3.8, texmath 0.6.1.3, highlighting-kate 0.5.3.8.
Syntax highlighting is supported for the following languages:
actionscript, ada, apache, asn1, asp, awk, bash, bibtex, boo, c, changelog,
clojure, cmake, coffee, coldfusion, commonlisp, cpp, cs, css, curry, d,
diff, djangotemplate, doxygen, doxygenlua, dtd, eiffel, email, erlang,
fortran, fsharp, gnuassembler, go, haskell, haxe, html, ini, java, javadoc,
javascript, json, jsp, julia, latex, lex, literatecurry, literatehaskell,
lua, makefile, mandoc, matlab, maxima, metafont, mips, modula2, modula3,
monobasic, nasm, noweb, objectivec, objectivecpp, ocaml, octave, pascal,