Skip to content

Instantly share code, notes, and snippets.

@Kunkgg
Kunkgg / Update git fork with tags.sh
Created November 5, 2022 12:03 — forked from Saissaken/Update git fork with tags.sh
Update git fork with tags
# Repo: someuser/myframework
# Fork: superteam/myframework
# Track:
git clone https://github.com/superteam/myframework.git
cd myframework
git remote add upstream https://github.com/someuser/myframework.git
# Update:
git fetch upstream
@Kunkgg
Kunkgg / vue-cli-django.md
Last active June 25, 2022 14:41 — forked from lsapan/vue-cli-django.md
Using Vue CLI to start a Vue frontend for use with a Django backend

Using Vue CLI to start a Vue frontend for use with a Django backend

Note: This guide has been updated for use with @vue/cli version 4! Please make sure you're using the latest version of @vue/cli.

When it comes to starting new Vue projects, you can't really beat Vue CLI. The Vue team has done a phenomenal job of making an easy-to-use tool for getting started with reasonable defaults. If you're using Django though, you may not have the easiest time getting its static system and webpack to play well together.

A good chunk of this is applicable to any webpack-compiled frontend and Django, but we'll focus specifically on the steps involved with Vue CLI.

As a quick heads up: this tutorial assumes you're creating your Vue project in a folder named frontend inside of your Django project folder. If you want it named something else, or want it in a different folder, just update the paths accordingly.

@Kunkgg
Kunkgg / clean-up-arch-linux.md
Created January 7, 2022 03:23 — forked from rumansaleem/clean-up-arch-linux.md
Instructions to clean up Arch Linux (Manjaro)

Contents

  • Clean pkg cache
  • Remove unused packages (orphans)
  • Clean cache in /home
  • remove old config files
  • Find and Remove
    • duplicates
    • empty files
    • empty directories
  • broken symlinks
Reported Date Total Dead and Missing Location Coordinates
October 07, 2019 28 35.210549549164, 12.180541076066
October 06, 2019 1 25.900890221875, -97.525930965196
October 04, 2019 1 36.778630672371, -2.499724435320
October 04, 2019 1 26.396783686456, -99.078156497984
October 03, 2019 1 17.887207400000, -95.138674200000
October 03, 2019 1 27.435807331497, -99.495251713848
October 02, 2019 1 28.025147800000, -99.548918700000
October 01, 2019 2 45.158752305501, 19.339737369364
September 30, 2019 1 33.369970400000, -7.585723100000
@Kunkgg
Kunkgg / LICENSE
Created April 13, 2021 06:57 — forked from curran/LICENSE
Simplemaps: World Cities Database
This license is a legal document designed to protect your rights and the rights of the Pareto Software, LLC, the owner of Simplemaps.com. Please read it carefully. Purchasing or downloading a data product constitutes acceptance of this license.
Description of Product and Parties: This license is a contract between you (hereafter, the Customer) and Pareto Software, LLC (hereafter, the Provider) regarding the use and/or sale of an collection of geographic data (hereafter, the Database).
Ownership of Database: All rights to the Database are owned by the Provider. The Database is a cleaned and curated collection of geographic facts and the Provider retains all rights to the Database afforded by the law. Ownership of any intellectual property generated by the Provider while performing custom modifications to the Database for a Customer (with or without payment) is retained by the Provider.
License: Customers who purchase a license are allowed to use the database for projects that benefit their organization or t
#include <stdio.h>
#include <string.h>
#include <pulse/pulseaudio.h>
// Field list is here: http://0pointer.de/lennart/projects/pulseaudio/doxygen/structpa__sink__info.html
typedef struct pa_devicelist {
uint8_t initialized;
char name[512];
uint32_t index;
char description[256];