Skip to content

Instantly share code, notes, and snippets.

View riteshgurung's full-sized avatar
🏠
Working from home

Ritesh Gurung riteshgurung

🏠
Working from home
View GitHub Profile
@riteshgurung
riteshgurung / XCDFakeCarrier.m
Created November 17, 2017 08:40 — forked from youngshook/XCDFakeCarrier.m
Hack to choose the displayed carrier name in the iOS simulator
//
// Copyright (c) 2012-2015 Cédric Luthi / @0xced. All rights reserved.
//
#import <Foundation/Foundation.h>
#if TARGET_OS_SIMULATOR
static const char *fakeCarrier;
static const char *fakeTime;
@riteshgurung
riteshgurung / AppleCertDisplay.ruby
Created November 17, 2017 08:40 — forked from youngshook/AppleCertDisplay.ruby
A Ruby Script Display Apple Cert
require 'spaceship'
Spaceship.login('AppleDevID')
Spaceship.select_team
Spaceship.certificate.all.each do |cert|
cert_type = Spaceship::Portal::Certificate::CERTIFICATE_TYPE_IDS[cert.type_display_id].to_s.split("::")[-1]
puts "Cert id: #{cert.id}, name: #{cert.name}, expires: #{cert.expires.strftime("%Y-%m-%d")}, type: #{cert_type}"
end
if [ "${ACTION}" = "build" ]
then
INSTALL_DIR=${SRCROOT}/Products/${PROJECT_NAME}.framework
DEVICE_DIR=${BUILD_ROOT}/${CONFIGURATION}-iphoneos/${PROJECT_NAME}.framework
SIMULATOR_DIR=${BUILD_ROOT}/${CONFIGURATION}-iphonesimulator/${PROJECT_NAME}.framework
if [ -d "${INSTALL_DIR}" ]
then
rm -rf "${INSTALL_DIR}"
fi
mkdir -p "${INSTALL_DIR}"
@riteshgurung
riteshgurung / README.md
Created June 15, 2016 07:48 — forked from oodavid/README.md
Deploy your site with git

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/
@riteshgurung
riteshgurung / tmux-cheatsheet.markdown
Created March 31, 2016 17:53 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@riteshgurung
riteshgurung / 0_reuse_code.js
Created June 28, 2014 17:40
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@riteshgurung
riteshgurung / behat.yml
Last active August 29, 2015 14:03
checker.feature
default:
paths:
features: 'features'
extensions:
Behat\MinkExtension\Extension:
goutte: ~
selenium2: ~
base_url: http://google.co.in
Drupal\DrupalExtension\Extension:
blackbox: ~