Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View zeeshangulzar's full-sized avatar

Zeeshan Gulzar zeeshangulzar

  • Lahore, Pakistan
View GitHub Profile
@zeeshangulzar
zeeshangulzar / Activate Office 2019 for macOS VoL.md
Created November 8, 2023 13:20 — forked from zthxxx/Activate Office 2019 for macOS VoL.md
crack activate office on mac with license file

Activate MS Office 2019/2016 for macOS - Microsoft_Office_2019_VL_Serializer

Office 2019 above

2019-06-03

Note that Office2019 DO NOT support activate via simple copy/paste plist license file which is the simplest way to activate Office 2016. Fortunately, you can also use the VL Serializer tool, just install Office 2019 and Serializer, then run Serializer to activate.

Ref

Mysql2::Error: Cannot add or update a child row: a foreign key constraint fails (`yamltranslator_backup`.`#sql-5bb_180`, CONSTRAINT `document_tokens_ibfk_10` FOREIGN KEY (`header_id`) REFERENCES `document_tokens` (`id`) ON DELETE SET NULL): ALTER TABLE `document_tokens` ADD CONSTRAINT `document_tokens_ibfk_10` FOREIGN KEY (`header_id`) REFERENCES `document_tokens` (`ID`)ON DELETE SET NULL;
/www/projects/omni/yamltranslator/db/migrate/20200820125748_update_document_token_footer_and_header_foreign_keys.rb:5:in `change'
/Users/xeeshan/.rbenv/versions/2.7.0/bin/bundle:23:in `load'
/Users/xeeshan/.rbenv/versions/2.7.0/bin/bundle:23:in `<main>'
Caused by:
ActiveRecord::InvalidForeignKey: Mysql2::Error: Cannot add or update a child row: a foreign key constraint fails (`yamltranslator_backup`.`#sql-5bb_180`, CONSTRAINT `document_tokens_ibfk_10` FOREIGN KEY (`header_id`) REFERENCES `document_tokens` (`id`) ON DELETE SET NULL): ALTER TABLE `document_tokens` ADD CONSTRAINT `document_tokens_ibfk_10` FOREIGN KEY (`header
@zeeshangulzar
zeeshangulzar / api_authentication_controller.rb
Last active November 18, 2020 06:26
api_authentication_controller.rb
require 'authentication/token_authentication'
class ApiAuthenticationController < ApplicationController
before_filter :authenticate_request
private
def authenticate_request
if request && request.headers && request.headers['Authorization']
@zeeshangulzar
zeeshangulzar / accounts_controller.rb
Created July 19, 2020 15:47
accounts_controller.rb
class Api::AccountsController < ApiAuthenticationController
LOG_TAG = 'API_ACCOUNTS'
INVALID_PRODUCT = 'INVALID_PRODUCT'
CREATING = 'creating'
OPEN = 'open'
DISCARDED = 'discarded'
CLOSED = 'closed'
@zeeshangulzar
zeeshangulzar / Rspec Sample code
Created January 4, 2018 19:07
Rspec Sample Code
require 'rails_helper'
describe "S9 Study Detail", :type => :feature do
include PauseHelpers
include UiHelpers
include UserAccountHelpers
include AuditHelpers
include WaitForAjaxHelper
@zeeshangulzar
zeeshangulzar / sidekiq.service
Last active January 22, 2018 17:24
Sidekiq as a service for Cent OS/ Ubuntu
# cd /usr/lib/systemd/system
[Unit]
Description=sidekiq1
After=syslog.target network.target
[Service]
Type=simple
WorkingDirectory=/var/www/vhosts/lakeproguides.com/staging.lakeproguides.com
@zeeshangulzar
zeeshangulzar / block_cyber_transaction.diff
Created December 15, 2017 04:36
Bitcoin block cyber transaction
# In this example we're sending some test bitcoins from an address we control to a brand new test
# address. We'll be sending the coins using the following address, public and private keys (please
# don't abuse).
# address : mtWg6ccLiZWw2Et7E5UqmHsYgrAi5wqiov
# public : 03bb318b00de944086fad67ab78a832eb1bf26916053ecd3b14a3f48f9fbe0821f
# private : 1af97b1f428ac89b7d35323ea7a68aba8cad178a04eddbbf591f65671bae48a2
# 1. generate a one-shot dummy address we're going to send money to
$ curl -X POST http://api.blockcypher.com/v1/btc/test3/addrs
{
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/Users/macbookpro/.rvm/rubies/ruby-2.2.4/bin/ruby -r ./siteconf20170214-42763-ido94y.rb extconf.rb
checking for gcc... yes
checking for Magick-config... no
checking for pkg-config... yes
checking for outdated ImageMagick version (<= 6.4.9)... no
checking for Ruby version >= 1.8.5... yes
checking for stdint.h... yes
checking for sys/types.h... yes