Skip to content

Instantly share code, notes, and snippets.

@ratazzi
ratazzi / duplicate_xcode_project_target.rb
Last active December 22, 2022 14:09
Duplicate Xcode Project Target with Ruby
#!/usr/bin/env ruby
require 'rubygems'
require 'xcodeproj'
name = 'test_copy'
proj = Xcodeproj::Project.open('test.xcodeproj')
src_target = proj.targets.find { |item| item.to_s == 'test' }
@poindextrose
poindextrose / gcloud-signed-url.js
Last active December 4, 2020 00:32
Example on how to create a signed URL using Node.js for uploading a file to Google Cloud Storage
var gcloud = require('gcloud');
var uuid = require('uuid');
// Google Cloud Storage Bucket Name
const BUCKET_NAME = 'bucket-name';
// Google Developer Console project ID
const PROJECT_ID = 'project-1234';
/* Google Developer Console -> API Manager -> Credentials ->
Add credentials -> Service account -> JSON -> Create */
const KEY_FILENAME = 'project-0d3d97832ca7.json' // relative path