Skip to content

Instantly share code, notes, and snippets.

View chrisheckey's full-sized avatar

Chris Heckey chrisheckey

View GitHub Profile
@myusuf3
myusuf3 / delete_git_submodule.md
Created November 3, 2014 17:36
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
@boredstiff
boredstiff / Maya2016VisualStudio2015.txt
Created January 21, 2016 03:40
Maya 2016 + Visual Studio 2015
MayaPluginWizard never works. Here's setting up a project from scratch.
File > New Project > Visual C++ > Win32 > Win 32 Project > Name it.
Win32 Application Wizard > Next > DLL
Additional Options > Empty Project checked > Finish
Main Window
Right-click Source Files > Create an empty .cpp file
@phoe
phoe / lzma_sample.cpp
Created July 7, 2017 10:55 — forked from Treeki/lzma_sample.cpp
simple LZMA SDK compression/decompression example
// note: -D_7ZIP_ST is required when compiling on non-Windows platforms
// g++ -o lzma_sample -std=c++14 -D_7ZIP_ST lzma_sample.cpp LzmaDec.c LzmaEnc.c LzFind.c
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <memory>
#include "LzmaEnc.h"
#include "LzmaDec.h"
@syntaqx
syntaqx / cloud-init.yaml
Last active July 23, 2024 12:16
cloud init / cloud config to install Docker on Ubuntu
#cloud-config
# Option 1 - Full installation using cURL
package_update: true
package_upgrade: true
groups:
- docker
system_info:
@pdxjohnny
pdxjohnny / .gitignore
Last active May 30, 2024 16:41
Setting Up k3s for Serverless (knative) on a $5 DigitalOcean Droplet Using k3d
.terraform/
*.pem
*.tf
*.tfstate
*.yaml
*.backup
istio-*/
cert-manager-*/
*.swp
env
@vtrifonov-esfiddle
vtrifonov-esfiddle / cloud-init.yaml
Last active January 5, 2024 17:42
cloud-init config for ubuntu host with docker & docker-compose
#cloud-config
groups:
- docker
users:
- default
# the docker service account
- name: docker-service
groups: docker
package_upgrade: true
packages:
@maaft
maaft / subscription.go
Created December 9, 2020 10:31
modified GraphQL subscription client (from https://github.com/hasura/go-graphql-client)
package subscription
import (
"context"
"encoding/json"
"fmt"
"io"
"strings"
"sync"
"time"