Skip to content

Instantly share code, notes, and snippets.

View ravi-poonia's full-sized avatar
🏠
🥱🧑‍💻

Ravi Poonia ravi-poonia

🏠
🥱🧑‍💻
  • Freelancer
  • India
View GitHub Profile
# this was created be used in bitbucket CI pipeline
# simple ruby script to update IOS Build number using ruby script
# we use ruby and cfpropertylist to parse and update the CFBundleVersion key for info.plist
# you can use the same logic to update the version code as well
#!/usr/bin/env ruby
require "plist"
require "cfpropertylist"
fileDir = File.join(__dir__,relative_path_to_info.plist)
image: ravipoonia/fastlane-android:1.1
pipelines:
pull-requests:
develop:
- step:
name: "Build on docker and push to firebase using fastlane -DEV"
size: 2x
deployment: staging
caches:
FROM alvrme/alpine-android:android-30-jdk11-v2021.02.18
LABEL maintainer "ravipoonia <ravipoonia7@gmail.com>"
ARG VCS_REF
LABEL org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="e.g. https://github.com/microscaling/microscaling"
ENV LANG "en_US.UTF-8"
ENV LANGUAGE "en_US.UTF-8"
ENV LC_ALL "en_US.UTF-8"
function addAttributes(user, context, callback) {
try {
const ID_APP_MAP = {
<AUTH0 APP Client ID> : 'agent', //app label
<AUTH0 APP Client ID> : 'dashboard', //app label
<AUTH0 APP Client ID> : 'user', //app label
};
//Roles Per app
const ROLES_PER_APP = {
@ravi-poonia
ravi-poonia / gist:9561a37d32ea5bf9983fa33bcd320647
Created September 27, 2020 19:41
nginx vhost config for laravel project
server {
listen 80;
server_name example.com;
root /var/www/example/public;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options "nosniff";
index index.html index.htm index.php;