Skip to content

Instantly share code, notes, and snippets.

View eftikharEmad's full-sized avatar

eftikhar eftikharEmad

  • remodeling
  • jordan
View GitHub Profile
{
"openapi": "1.0.0",
"info": {
"title": "Google Ads API Web Service",
"version": "1.0"
},
"servers": [
{ "url": "https://api.server.test/v1" }
],
"paths": {
version: '3'
networks:
services_development:
external: true
services:
rmdc_app:
container_name: rmdc_app
build:
context: .
dockerfile: Dockerfile.dev
ImagePicker.openPicker({
width: 200,
height: 200,
cropping: true,
cropperCircleOverlay: true,
}).then(image => {
let options = {
headers: {
Accept: "application/json",
"Content-Type": "multipart/form-data",
@eftikharEmad
eftikharEmad / gist:74b3b481b09315a9e8195d669e61ba25
Created October 17, 2019 13:35
after_create only see the last added record
class Endpoint < ApplicationRecord
#:user_id,:user_type, :devise_id, :signed_in
belongs_to :user
after_create :set_as_signed_in
def set_as_signed_in
device_endpoints = Endpoint.where(device_id: device_id)
device_endpoints.update_all(signed_in: false) if device_sns_endpoints.count > 1
update_column(:signed_in, true)
1) locate your jdk bin folder:
`/usr/libexec/java_home`
2) navigate to your jdk bin folder
`cd /usr/libexec/java_home`
3) to generate a signing key
`sudo keytool -genkey -v -keystore my-release-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000`
-- will ask you to add password and information