Skip to content

Instantly share code, notes, and snippets.

@naz
naz / rename-remote-origin.sh
Last active April 27, 2020 03:18
update username in your origin remote url
# OR traverse all repos from parent directory at once running following commmand
# traverses all children repositories
# outputs current directory
# changes color of the output for readability
# matches your current origin with your past username and substitutes it with new one
# eg.: git@github.com:gargol/Ghost is transformed into git@github.com:naz/Ghost
# changes "origin" url to the new address
# outputs current origin details
find . -maxdepth 1 -type d \( ! -name . \) -exec bash -c "cd '{}' && pwd && tput setaf 3; git remote --v | grep :gargol | sed -r 's/:gargol/:naz/g' | grep -o 'git@github.com:naz\/[a-zA-Z-]*' | head -1 | xargs git remote set-url origin && git remote --v | grep origin" \;
@naz
naz / changelog-3.1.1.md
Created December 4, 2019 13:58
Changelog 3.1.1
  • ae21f604c Updated Ghost-Admin to 3.1.1 - Nazar Gargol
  • acd96c19a Version bump to 3.1.1 - Nazar Gargol
  • 67091f6ae Updated Casper to 3.0.5 - Nazar Gargol
  • 14e2178e2 Version bump to 3.1.1 - Nazar Gargol
  • 2cd8f8993 🐛 Fixed 500 errors for incorrect Origin headers (#11433) - Fabien O'Carroll
  • 00ab972d2 🎨 Refined new member avatar style - Peter Zimon
  • 377055a7d ✨ Added Secondary Navigation (#1410) - Hannah Wolfe
  • 419e12d90 ✨ Added support for secondary navigation (#11409) - Hannah Wolfe
  • 60c44d360 🎨 Fixed test n
@naz
naz / changelog-3.0.3.md
Created November 11, 2019 12:32
Changelog 3.0.3
  • ded09fd15 Version bump to 3.0.3 - Nazar Gargol
  • d1ae62874 Updated Casper to 3.0.3 - Nazar Gargol
  • c9bd4a6c9 Updated Ghost-Admin to 3.0.3 - Nazar Gargol
  • 25e2ced88 Version bump to 3.0.3 - Nazar Gargol
  • 45253cfe5 🐛 Fixed 3.0 SQLite subscribers migration (#11383) - Naz Gargol
  • ae5eb4802 Reverted support to only data.post in meta layer - Nazar Gargol
  • 634568455 🐛 Fixed twitter meta description for pages - Nazar Gargol
  • d6399f331 Update dependency metascraper-image to v5.7.21 - Renovate Bot
  • d1c7e068a Update dependency
@naz
naz / admin-read-posts.js
Created October 29, 2019 14:09
Fetch all posts from Ghost API
// USAGE: node admin-read-posts.js http://localhost:2368 ADMIN_API_KEY
if (process.argv.length < 4) {
console.error('Missing an argument');
process.exit(1);
}
const url = process.argv[2];
const key = process.argv[3];
const GhostAdminAPI = require('@tryghost/admin-api');
@naz
naz / changelog-2.31.1.md
Created September 23, 2019 15:57
Changelog 2.31.1
  • f1a795a85 Version bump to 2.31.1 - Nazar Gargol
  • aa7f9ddbe Version bump to 2.31.1 - Nazar Gargol
  • 1ae491b56 Updated Ghost-Admin to 2.31.1 - Nazar Gargol
  • 3712e6e01 Bumped gscan to 2.9.0 - Nazar Gargol
  • 34b6d5eb7 🐛 Fixed tag with # not generating "hash-" prefix at tag screen - Rish
  • de106728a Reverted .travis.yml using std notifications - Rish
  • 36db3ce66 Added tests for x-request-id handling - Hannah Wolfe
  • 93e04b0a4 Update dependency @tryghost/members-api to v0.5.3 - Renovate Bot
  • b89e3650f Update dependency no
@naz
naz / bookself_bug_investigation.js
Last active March 5, 2020 09:19
Script that closely resembles Ghost User model update process which aimed to help tracking down the bug when using 'edit' method and 'password' attribute not being update
/**
* First create following schema in the db
CREATE TABLE `users` (
`id` varchar(24) NOT NULL,
`email` varchar(191) NOT NULL,
`password` varchar(60) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `users_email_unique` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
*/
@naz
naz / changelog-2.25.8.md
Created July 17, 2019 16:20
Changelog 2.25.8
  • fd546c087 Version bump to 2.25.8 - Nazar Gargol
  • d3ca12056 Version bump to 2.25.8 - Nazar Gargol
  • 987d497e7 Updated Ghost-Admin to 2.25.8 - Nazar Gargol
  • 01ea872af 🐛 Fixed cache invalidation header on theme override - Rish
  • 9f82ee852 Updated word break for name and email in navbar - Peter Zimon
  • 46706646e Refactored authentication controller v0.1 (#10893) - Naz Gargol
  • e37020d33 Lock file maintenance - Renovate Bot
  • 9dcc17a01 🐛 Fixed import for tag without slugs that belongs to a post (#10917) - Naz Gargol
  • [ac5f772c0](https://github.com/TryGhost/Ghost-Admin
@naz
naz / changelog-2.23.2.md
Created June 4, 2019 11:24
Changelog 2.23.2
  • dd30d7a9c Updated Ghost-Admin to 2.23.2 - Nazar Gargol
  • c101f51fc Updated Casper to 2.10.2 - Nazar Gargol
  • 74d5bf382 Version bump to 2.23.2 - Nazar Gargol
  • 11eb46f14 Version bump to 2.23.2 - Nazar Gargol
  • 1f6b925af 🔥 Dropped Node v6 support (#1218) - Rishabh Garg
  • d6324ec16 🐛 Fixed markdown text expansion behaviour when similar unexpanded text is present - Kevin Ansfield
  • acdcadc39 🔥 Dropped Node v6 support (#10771) - Naz Gargol
  • 525c2753e Update dependency @tryghost/html-to-mobiledoc to v0.4.1 - Kevin Ansfield
  • [d21c5f37d](https://github.com/TryGhost/Ghost-
@naz
naz / changelog-2.22.0.md
Created May 7, 2019 11:19
Changelog 2.22.0
@naz
naz / changelog-2.19.4.md
Created April 9, 2019 12:10
Changelog 2.19.4
  • f08072160 Updated Ghost-Admin to 2.19.4 - Nazar Gargol
  • a7385f5e1 Version bump to 2.19.4 - Nazar Gargol
  • 7429fe5c3 Version bump to 2.19.4 - Nazar Gargol
  • 095d022a5 Updated Casper to 2.9.9 - Nazar Gargol
  • 45a2b5233 Update dependency ember-infinity to v1.4.1 (#1146) - renovate[bot]
  • 35c4da710 🐛 Fixed sitemap generation with correct date and images value (#10668) - Rishabh Garg
  • 87b37556c Improved error context usage (#10669) - Naz Gargol
  • 47692b108 🐛 Fixed last paragraph not rendering on front-end when it's styled - Kevin Ansfield
  • [3df6b7160](https://github.com/Try