Skip to content

Instantly share code, notes, and snippets.

Avatar
🌚
Waiting for the next full moon

Önder Ceylan onderceylan

🌚
Waiting for the next full moon
View GitHub Profile
@onderceylan
onderceylan / ci_scripts_deploy_01_hockey_app
Created Mar 16, 2018
CI scripts for hybrid mobile apps - Deploy your application to HockeyApp
View ci_scripts_deploy_01_hockey_app
#!/bin/bash
echo "Deploying QA build to HockeyApp"
commit_message=$(git log --oneline -5)
message=''
strategy='add'
commit_sha=`git rev-parse HEAD`
notify='0'
build_server_url='your-build-plan-url'
@onderceylan
onderceylan / ci_scripts_setup_02_codesigning_preparation
Last active Mar 16, 2018
CI scripts for hybrid mobile apps - Code signing preparation
View ci_scripts_setup_02_codesigning_preparation
#!/bin/bash
# Setup custom keychain
## Create a new keychain
security create-keychain -p "your-keychain-password-here" your-custom-keychain.keychain
security set-keychain-settings ~/Library/Keychains/your-custom-keychain.keychain-db
## Set default keychain
security default-keychain -s ~/Library/Keychains/your-custom-keychain.keychain-db
View ci_scripts_setup_01_install_system_dependencies
#!/bin/bash
# Install homebrew
if ! which -s brew > /dev/null; then
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
# Install yarn
if ! which -s yarn > /dev/null; then
curl -o- -L https://yarnpkg.com/install.sh | bash
@onderceylan
onderceylan / convertToInternationalTurkishNumber.applescript
Created Oct 2, 2016
AppleScript code for adding Turkish international phone prefix to every phone item in Apple Contacts
View convertToInternationalTurkishNumber.applescript
tell application "Contacts"
repeat with i from 1 to (count every person)
set phoneProperties to properties of phones of person i
repeat with j from 1 to (count of phoneProperties)
if value of item j of phoneProperties does not contain "+" then
set oldPhone to value of item j of phoneProperties
set value of item j of phones of person i to "+9" & oldPhone
end if
end repeat
end repeat
View gwd-handlers.js
<script type="text/javascript" gwd-events="handlers">gwd.handleExpand_buttonAction=function(){window.frameElement.style.height='415px';gwd.actions.gwdGenericad.goToPage("gwd-ad","expanded-page")};gwd.handleClose_buttonAction=function(){window.frameElement.style.height='90px';gwd.actions.gwdGenericad.goToPage("gwd-ad","banner-page")};gwd.auto_Gwd_taparea_1Action=function(event){gwd.actions.gwdGenericad.exit("gwd-ad","http://adclick.g.doubleclick.net/aclk?sa=l&ai=CHCeMcIr5VdCpM8m4b5HzvLgDAQB7EAEguWAoBIgBAZABAMABA...",true)}</script>