This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ARG PG_VERSION=12.5 | |
ARG VERSION=dev | |
FROM golang:1.16 as flyutil | |
ARG VERSION | |
WORKDIR /go/src/github.com/fly-examples/postgres-ha | |
COPY . . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
echo "Commit message:" | |
read | |
git add . | |
git commit -avm "$REPLY" | |
git push origin master | |
jekyll | |
rsync -ave ssh _site/ pistone.dreamhost.com:blog.duruk.net |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
client = Twitter::REST::Client.new do |config| | |
config.consumer_key = CONSUMER_KEY | |
config.consumer_secret = CONSUMER_SECRET | |
config.access_token = OAUTH_TOKEN | |
config.access_token_secret = OAUTH_TOKEN_SECRET | |
end | |
def remove_friendships(client) | |
begin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ tw git:(master) ruby delete.rb | |
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- twitter (LoadError) | |
from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' | |
from delete.rb:2:in `<main>' | |
➜ tw git:(master) rvm | |
zsh: command not found: rvm | |
➜ tw git:(master) gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB | |
gpg: key 105BD0E739499BDB: "Piotr Kuczynski <piotr.kuczynski@gmail.com>" not changed | |
gpg: key 3804BB82D39DC0E3: 81 signatures not checked due to missing keys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ Code npm install -g bower | |
npm http GET https://registry.npmjs.org/bower | |
npm http 200 https://registry.npmjs.org/bower | |
npm http GET https://registry.npmjs.org/bower/-/bower-1.2.8.tgz | |
npm http 200 https://registry.npmjs.org/bower/-/bower-1.2.8.tgz | |
npm http GET https://registry.npmjs.org/bower-config | |
npm http GET https://registry.npmjs.org/bower-endpoint-parser | |
npm http GET https://registry.npmjs.org/bower-logger | |
npm http GET https://registry.npmjs.org/bower-json | |
npm http GET https://registry.npmjs.org/bower-registry-client |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kMDItemAlternateNames = ( | |
"Screen Shot 2013-08-31 at 10.05.35 PM.png" | |
) | |
kMDItemBitsPerSample = 40 | |
kMDItemColorSpace = "RGB" | |
kMDItemContentCreationDate = 2013-09-01 05:05:43 +0000 | |
kMDItemContentModificationDate = 2013-09-01 05:05:43 +0000 | |
kMDItemContentType = "public.png" | |
kMDItemContentTypeTree = ( | |
"public.png", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ pup.xcodeproj git:(can/Clu) ✗ touch ~/Library/Logs/TextMate.log | |
➜ pup.xcodeproj git:(can/Clu) ✗ tail -f ~/Library/Logs/TextMate.log | |
2013-08-30 11:47:05.748 TextMate[96310:c07] Project file not found at file path /Users/cduruk/Repos/pup/3rdparty/JNWCollectionView/JNWCollectionView.xcodeproj | |
2013-08-30 11:47:05.749 TextMate[96310:c07] ( | |
0 CoreFoundation 0x00007fff8bc5eb06 __exceptionPreprocess + 198 | |
1 libobjc.A.dylib 0x00007fff9247c3f0 objc_exception_throw + 43 | |
2 CoreFoundation 0x00007fff8bc5e8dc +[NSException raise:format:] + 204 | |
3 XcodeEditor.dylib 0x0000000102df6b4a -[XCProject initWithFilePath:] + 296 | |
4 XcodeEditor.dylib 0x0000000102df6a04 +[XCProject projectWithFilePath:] + 68 | |
5 OakFileBrowser 0x0000000102bc8e9a -[FSXcodeProjectDataSource itemsForGroup:withBasePath:inProject:] + 1631 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Process: TextMate [95279] | |
Path: /Users/USER/Downloads/TextMate.app/Contents/MacOS/TextMate | |
Identifier: com.macromates.TextMate.preview | |
Version: 2.0-alpha.9475 (9475) | |
Code Type: X86-64 (Native) | |
Parent Process: launchd [154] | |
User ID: 501 | |
Date/Time: 2013-08-30 11:15:05.625 -0700 | |
OS Version: Mac OS X 10.8.4 (12E55) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> var myList = document.querySelectorAll('.story-item'); | |
undefined | |
> myList | |
myList | |
[ | |
<div class="story-item">...</div> | |
, | |
<div class="story-item">...</div> | |
, | |
[...] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getRandomInt(min, max) { | |
return Math.floor(Math.random() * (max - min + 1)) + min; | |
} | |
function getRandomChild() { | |
return { | |
gender: getRandomInt(0, 1), | |
dayOfBirth: getRandomInt(0, 6) | |
} | |
} |
NewerOlder