Skip to content

Instantly share code, notes, and snippets.

@cduruk
cduruk / Dockerfile
Created July 7, 2021 05:17 — forked from mveytsman/Dockerfile
Dockerfile for postgis on fly.io
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 . .
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
@cduruk
cduruk / deletion.log
Created February 10, 2018 01:20
An oral history
➜ 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
@cduruk
cduruk / data.json
Last active August 29, 2015 14:10
Sprongo
"{\"total\":1079,\"current_page\":1,\"per_page\":15,\"total_pages\":72,\"tickets\":[{\"id\":3910792,\"subject\":\"Feedback\",\"replies_count\":0,\"agent_replies_count\":0,\"comments_count\":0,\"last_activity_at\":\"2014-11-28T18:42:07Z\",\"created_at\":\"2014-11-28T18:42:07Z\",\"unanswered\":true,\"archived\":false,\"private\":false,\"spam\":false,\"trash\":false,\"summary\":\"can I copy a playlist that has already been created and paste under a different team?\",\"draft\":false,\"source\":{\"web\":\"sprongo-support@supportbeemail.com\"},\"labels\":[],\"content\":{\"html\":\"can I copy a playlist that has already been created and paste under a different team?<br>\",\"text\":\"can I copy a playlist that has already been created and paste under a different team?\n\",\"truncated\":false,\"attachments\":[{\"id\":1187638,\"created_at\":\"2014-11-28T18:42:04Z\",\"filename\":\"user.txt\",\"size\":603,\"content_type\":\"application/octet-stream\",\"cid\":null,\"url\":{\"original\":\"https://sprongo.supportbee.com/att
@cduruk
cduruk / keybase.md
Created August 13, 2014 21:18
keybase.md

Keybase proof

I hereby claim:

  • I am cduruk on github.
  • I am cduruk (https://keybase.io/cduruk) on keybase.
  • I have a public key whose fingerprint is 757B 80B7 C7BE E441 E519 9DA4 D859 787C FA7C 1ACB

To claim this, I am signing this object:

@cduruk
cduruk / units.swift
Created June 11, 2014 22:05 — forked from 74hc595/units.swift
foo
// Playground - noun: a place where people can play
import Cocoa
protocol UnitBase {
class var unitLabel:String { get }
}
// T: the unit
// U: its inverse
@cduruk
cduruk / madness.txt
Created December 6, 2013 04:02
Bower Install
➜ 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
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",
➜ 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
@cduruk
cduruk / textmate_crash.log
Created August 30, 2013 18:17
Textmate Crash Log.
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)