Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
set -eux
hdiutil create -o /tmp/ventura -size 16384m -volname ventura -layout SPUD -fs HFS+J
hdiutil attach /tmp/ventura.dmg -noverify -mountpoint /Volumes/ventura
sudo /Applications/Install\ macOS\ Ventura\.app//Contents/Resources/createinstallmedia --volume /Volumes/vent\
ura --nointeraction
hdiutil eject -force /Volumes/Install\ macOS\ Ventura
hdiutil convert /tmp/ventura.dmg -format UDTO -o ~/Desktop/ventura.cdr
mv ~/Desktop/ventura.cdr ~/Desktop/ventura.iso
@src256
src256 / create_macos_ventura_beta_iso.sh
Last active August 30, 2022 05:10
macOS Venturaベータ版のISOファイルを作成
#!/bin/sh
hdiutil create -o /tmp/ventura -size 16384m -volname ventura -layout SPUD -fs HFS+J
hdiutil attach /tmp/ventura.dmg -noverify -mountpoint /Volumes/ventura
sudo /Applications/Install\ macOS\ Ventura\ beta.app//Contents/Resources/createinstallmedia --volume /Volumes/ventura --nointeraction
hdiutil eject -force /Volumes/Install\ macOS\ Ventura\ beta
hdiutil convert /tmp/ventura.dmg -format UDTO -o ~/Desktop/ventura.cdr
mv ~/Desktop/ventura.cdr ~/Desktop/ventura.iso
@src256
src256 / pukiwiki_paraedit.patch
Created March 30, 2022 05:26
pukiwiki 1.5.3 paraedit patch
diff -u -r --exclude=cache --exclude=wiki --exclude=pukiwiki.ini.php --new-file pukiwiki-1.5.3_utf8/lib/convert_html.php pukiwiki/lib/convert_html.php
--- pukiwiki-1.5.3_utf8/lib/convert_html.php 2020-02-09 09:21:33.000000000 +0900
+++ pukiwiki/lib/convert_html.php 2022-03-30 14:04:39.000000000 +0900
@@ -273,8 +273,11 @@
function toString()
{
- return $this->msg_top . $this->wrap(parent::toString(),
- 'h' . $this->level, ' id="' . $this->id . '"');
+// return $this->msg_top . $this->wrap(parent::toString(),
#!/bin/sh
if [ $# -ne 1 ]; then
echo "Please specify path to macOS Install application."
exit 1
fi
installer_path="$1"
#echo "attach ${installer_path}"
@src256
src256 / progress.10s.sh
Created April 27, 2018 13:23 — forked from aurorabbit/progress.10s.sh
Bitbar timely progress bar
#!/bin/sh
# add this to your bitbar directory
# don't forget to chmod +x
# width and characters for the progress bars
# feel free to configure these
width=30
fill_char="█"
empty_char="▁"
defaults write com.apple.screencapture name "s"
defaults write com.apple.screencapture location ~/Desktop
defaults write com.apple.screencapture disable-shadow -boolean true
killall SystemUIServer
@src256
src256 / install-patched-ruby-1.8.7-p375.sh
Last active November 21, 2015 08:28 — forked from hyoshida/install-patched-ruby-1.8.7-p375.sh
path for ruby-build error
--- ext/openssl/ossl_pkey_ec.c 2010-06-21 04:18:59.000000000 -0500
+++ ext/openssl/ossl_pkey_ec.c 2013-12-10 13:30:18.919963527 -0600
@@ -757,8 +757,10 @@
method = EC_GFp_mont_method();
} else if (id == s_GFp_nist) {
method = EC_GFp_nist_method();
+ #if !defined(OPENSSL_NO_EC2M)
} else if (id == s_GF2m_simple) {
method = EC_GF2m_simple_method();
+ #endif
# Xcode (from gitignore.io)
# http://qiita.com/ikuwow/items/4fae81a099bf82f44749
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
@src256
src256 / new_gist_file
Created June 7, 2013 12:01
this is test
if foo
print bar
end