Skip to content

Instantly share code, notes, and snippets.

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

Uen's Qurus

🏠
Working from home
  • Uen Media
  • Frankfurt am Main
View GitHub Profile
@Qurus
Qurus / README.MD
Created September 7, 2023 17:27 — forked from artistro08/README.MD
How to setup a LEMP Development Environment with WSL2 & Valet Linux
@Qurus
Qurus / search-form.js
Created January 24, 2023 10:20 — forked from awojtczyk/search-form.js
Shopify ajax search
$(function() {
var currentAjaxRequest = null;
var searchForms = $('form[action="/search"]').css('position', 'relative').each(function() {
var input = $(this).find('input[name="q"]');
input.attr('autocomplete', 'off').bind('keyup change', function() {
var term = $(this).val();
var form = $(this).closest('form');
var searchURL = '/search?type=product&q=*' + term + '*';
var resultsList = $('.search-results');
resultsList.perfectScrollbar({
@Qurus
Qurus / INSTALL-SHOPWARE-SIX.md
Created February 10, 2022 12:16 — forked from MadMikeyB/INSTALL-SHOPWARE-SIX.md
Shopware 6 - Laravel Valet Driver

Install Shopware 6 (For Development)

cd ~/sites
valet park
# clone shopware
git clone -b 6.1 https://github.com/shopware/development.git shopware
# change directory
cd shopware
# install dependencies
@Qurus
Qurus / creative-cloud-disable.md
Created May 2, 2020 15:24 — forked from andreibosco/creative-cloud-disable.md
disable creative cloud startup on mac
@Qurus
Qurus / dokku_add_new_ssh_key.sh
Created February 5, 2018 21:16 — forked from adastreamer/dokku_add_new_ssh_key.sh
Dokku add new ssh key
#!/bin/bash
cat /path/to/public_key | ssh root@yourdokkuinstance "sudo sshcommand acl-add dokku [description]"
@Qurus
Qurus / file-structure
Created October 16, 2017 13:43 — forked from azat-co/file-structure
Instagram Gallery: A demo app build with Storify API and Node.js http://storify.com/storifydev/instagram-gallery/
- index.js
- package.json
- public/js/main.js
- public/index.html
- css/bootstrap-responsive.min.css
- css/flatly-bootstrap.min.css
@Qurus
Qurus / multi-git.md
Created September 23, 2017 23:04 — forked from rosswd/multi-git-win.md
Setting up a Github and Bitbucket account on the same computer.

Setting up github and bitbucket on the same computer

Github will be the main account and bitbucket the secondary.

Create SSH Keys

ssh-keygen -t rsa -C "github email"

Enter passphrase when prompted. If you see an option to save the passphrase in your keychain, do it for an easier life.

@Qurus
Qurus / .gitlab_ci.yml
Created September 22, 2017 15:29 — forked from agalisteo/.gitlab_ci.yml
Deploy from Gitlab CI to Dokku
variables:
DOKKU_HOST: 'dokku.host.es'
IP_DOKKU_HOST: '1.2.3.4'
SSH_DOKKU_PORT: '22'
PROJECT_NAME: 'project_name'
stages:
- deploy_to_dokku
deploy_dokku:
@Qurus
Qurus / 0_reuse_code.js
Created September 15, 2017 14:21
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

Download Udemy course videos using youtube-dl

$ youtube-dl --list-extractors | grep udemy

Steps

  1. Get link to the course to download. e.g. https://www.udemy.com/course-name/
  2. Login into udemy website, save the cookie from chrome using Chrome (Cookie.txt)[1] export extension. Save it to file udemy-cookies.txt
  3. Get the link of the video that you want to download. usually in format. Use the command provided below where you have to replace the {course_link} and {path_to_cookies_file} with respective paths.

# $ youtube-dl {course_link} --cookies {path_to_cookies_file}