Skip to content

Instantly share code, notes, and snippets.

View nolili's full-sized avatar
:octocat:

NORITAKA KAMIYA nolili

:octocat:
View GitHub Profile
@okanon
okanon / fuckin_nvidia.md
Last active November 20, 2022 08:16
グラボをNvidia Storeから個人輸入する際にハマった

グラボをNvidia Storeから個人輸入する際にハマった

結論

  • 無事購入できました:joy:
  • 代理店価格(日本価格)より1~2万円ほど安く購入できる
  • 初めて購入するときは結構沼るので注意が必要
  • 必ず在庫通知がメールに届くようにする
  • 万が一キャンセルされたときに、早く返金が欲しいならPaypal決済かつ銀行口座からの引き落としを使え

そんなところです

@stevemoser
stevemoser / IncompatibleAppsList.plist
Created June 20, 2019 19:38
List of 235 apps incompatible with macOS Catalina 10.15
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IncompatiblePaths</key>
<array>
<dict>
<key>Application Name</key>
<string>Sxs Memory Card Driver</string>
<key>Blurb</key>
@firatkucuk
firatkucuk / delete-slack-messages.js
Last active July 1, 2024 15:26
Deletes slack public/private channel messages, private chat messages and channel thread replies.
#!/usr/bin/env node
// Channel ID is on the the browser URL.: https://mycompany.slack.com/messages/MYCHANNELID/
// Pass it as a parameter: node ./delete-slack-messages.js CHANNEL_ID
// CONFIGURATION #######################################################################################################
const token = 'SLACK TOKEN';
// Legacy tokens are no more supported.
// Please create an app or use an existing Slack App
@alloy
alloy / gist:10481169a3acfeeeba3f7c23c5b1b400
Created September 26, 2016 12:09
Run on iOS 10 device from Xcode 7.
cp -R /Applications/Xcode8.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0\ \(14A345\) \
/Applications/Xcode7.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
@niw
niw / wgsimlte1-ios9.mobileconfig
Last active August 29, 2015 15:25
iOS 9 でも使える Wireless Gate 用の構成プロファイルです。
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<dict>
<key>AutoJoin</key>
<true/>
<key>EncryptionType</key>
@akisute
akisute / UILabel+AKiOS6Compatibility.m
Created October 2, 2014 08:24
You will no longer be suffered by iOS 6 Hiragino fonts.
- (NSString *)text6Compatible
{
return self.text;
}
- (void)setText6Compatible:(NSString *)text6Compatible
{
self.text = text6Compatible;
if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(7)) {
@hinovana
hinovana / yoall.sh
Created July 2, 2014 03:16
コマンドの実行が終わったらYOをするシェルスクリプト
#!/bin/sh
#
# コマンドの実行が終わったらYOをするシェルスクリプト
#
# (1) APIユーザを作ってトークンを取得する
# http://yoapi.justyo.co/
#
# (2) APIユーザをフォローする
# APIユーザと普通のユーザは別なので気をつけて
#
@niw
niw / create_yosemite_bootable_disk.sh
Last active April 1, 2019 04:13
How to create a bootable install disk image from Install OS X 10.10 Developer Preview.app
# Since Contents/Resources/createinstallmedia command doesn't work, we need to manually create an disk image.
# Mount InstallESD.dmg
hdiutil mount /Applications/Install\ OS\ X\ 10.10\ Developer\ Preview.app/Contents/SharedSupport/InstallESD.dmg
# Create a temporary writable BaseSystem image.
hdiutil convert /Volumes/OS\ X\ Install\ ESD/BaseSystem.dmg -format UDRW -o rw.dmg
# Get required sectors for packages.
# You'll get these numbers.
@miyaki
miyaki / configure_liblo_iphone.sh
Last active June 11, 2017 11:07 — forked from mikewoz/configure_liblo_iphone.sh
configure static liblo for armv7, armv7s, arm64 (iOS7)
./configure \
--host="arm-apple-darwin" \
--enable-static \
--disable-shared \
--disable-dependency-tracking \
CC=`xcrun -f --sdk iphoneos clang` \
CXX=`xcrun -f --sdk iphoneos clang++` \
AR=`xcrun -f --sdk iphoneos ar` \
RANLIB=`xcrun -f --sdk iphoneos ranlib` \
NM=`xcrun -f --sdk iphoneos nm` \
@edom18
edom18 / file0.m
Last active October 18, 2015 19:04
カスタムContainer View Controllerを作る ref: http://qiita.com/edo_m18/items/8b6b457f82b185ab1f6a
- (void)displayContentController:(UIViewController *)content
{
// 自身のビューコントローラ階層に追加
// 自動的に子ViewControllerの`willMoveToParentViewController:`メソッドが呼ばれる
[self addChildViewController:content];
// 子ViewControllerの`view`を自身の`view`階層に追加
[self.view addSubview:content.view];
// 子ViewControllerに追加が終わったことを通知する