Skip to content

Instantly share code, notes, and snippets.

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

Lakhveer Bawa lakhbawa

🏠
Working from home
View GitHub Profile
@tatsuyasusukida
tatsuyasusukida / !README-javascript-media-video.md
Last active June 24, 2024 14:25
🎥 How to record a video with JavaScript [demo video available]

🎥 How to record a video with JavaScript [demo video available]

Demo video: How to record a video with JavaScript

About this article

This article describes how to shoot a video from JavaScript using the MediaStream Recording API. The related resources are shown below.

@lakhbawa
lakhbawa / AnyVueComponent.vue
Created August 11, 2020 13:45
Vuex Design for better maintainability and reusability
this.$store
.dispatch('modules/auth/switchAccount', {
queryParams: {
new_account_type: newAccountType,
},
})
.then((response) => {
if (response.success) {
this.$buefy.toast.open({
message: response.message,
@manuelselbach
manuelselbach / README.md
Last active February 19, 2024 11:41
xdebug docker on macOS with PhpStorm

Use xdebug with docker on macOS and PhpStorm

To use xdebug with macOS and docker is quite, let´s call it tricky ;)

The following steps need to be proceed to get it working:

  1. use the config from the xdebug.ini wihtin your docker web container. Important: set remote_connect_back to off

UPDATE

1. Install bundle https://github.com/tehplague/swiftmailer-mailgun-bundle
2. Follow instructions to this bundle
cspoo_swiftmailer_mailgun:
key: "key-xxxxxxxxxx"
domain: "mydomain.com"
http_client: 'httplug.client'(This is required field)
# Swiftmailer Configuration
swiftmailer:
transport: "mailgun"
@mandiwise
mandiwise / Update remote repo
Last active June 21, 2024 13:14
Transfer repo from Bitbucket to Github
// Reference: http://www.blackdogfoundry.com/blog/moving-repository-from-bitbucket-to-github/
// See also: http://www.paulund.co.uk/change-url-of-git-repository
$ cd $HOME/Code/repo-directory
$ git remote rename origin bitbucket
$ git remote add origin https://github.com/mandiwise/awesome-new-repo.git
$ git push origin master
$ git remote rm bitbucket
@travisvalentine
travisvalentine / steps.md
Last active June 10, 2023 19:00
Setup Facebook app to test authentication locally (aka, setting up App Domain)

Note: I had issues with setting up my Facebook app so authentication would work. I'd receive the error at the bottom, and it took me a while to figure out what was wrong

Here are the steps I took:

  • Go to http://developers.facebook.com/, create, and setup your app
  • When inside the dashboard, click "Settings"
  • Click "Add Platform"
  • Choose website (for authentication via the web app)
  • Add http://localhost:3000/ as "Site URL" (and "Mobile URL" if necessary)
  • Add localhost to "App Domains" above
@smebberson
smebberson / .gitignore
Created January 9, 2012 06:46
Express simple authentication example
node_modules
*.swp