Skip to content

Instantly share code, notes, and snippets.

View davidcorbin's full-sized avatar
🔮
Magic

David Corbin davidcorbin

🔮
Magic
View GitHub Profile
@davidcorbin
davidcorbin / commands.sh
Created July 26, 2019 12:30
Ubuntu Kubernetes disable swap
sudo vim /etc/fstab
# Comment out lines that have the word swap on them
sudo reboot
@davidcorbin
davidcorbin / RabbitMQ in docker localhost connection issue
Created July 6, 2019 17:08
RabbitMQ in docker localhost connection issue
epmd -kill
@davidcorbin
davidcorbin / gist:577dd4d9e54eaf995b5630a43544cffb
Created October 2, 2018 02:19
Create printable PDF from C file
enscript file.c --line-numbers --highlight=c --color=1 -o - | ps2pdf - output.pdf
#!/bin/bash
set -x
pwd
#cd ~
mkdir temp
mkdir temp/stuff
mkdir temp/stuff/things
mkdir -p temp/stuff/things/orange/apple/pear/grape
@davidcorbin
davidcorbin / test.java
Created January 26, 2018 13:36
Example of NullPointerException cause by failure to instantiate objects
//
// An example of a NullPointerException caused by a not initializing objects before using them
//
import java.util.ArrayList;
class test {
// An ArrayList is like a vector in c++
// This ArrayList hold Strings
public ArrayList<String> listOfStrings;

Keybase proof

I hereby claim:

  • I am davidcorbin on github.
  • I am davidcorbin (https://keybase.io/davidcorbin) on keybase.
  • I have a public key ASAbzxZYzplD0i_FQnXMiVXt4zFuqed689hQE0K1DKb2hQo

To claim this, I am signing this object:

❯ make
[build] alure i686-w64-mingw32.static
Failed to build package alure for target i686-w64-mingw32.static!
------------------------------------------------------------
/Volumes/Passport/mxe/tmp-alure-i686-w64-mingw32.static/alure-1.2/include/main.h:61:19: warning: 'BigEndian' defined but not used [-Wunused-variable]
static const bool BigEndian = !LittleEndian;
^
make[3]: *** [CMakeFiles/ALURE32-static.dir/all] Error 2
make[2]: *** [all] Error 2
@davidcorbin
davidcorbin / doc.md
Created May 2, 2016 14:11
Installing extensions in Vivaldi browser

Installing extensions in Vivaldi browser

In Vivaldi, go to the Chrome Web Store.

Select and install an extension just like you would in Chrome.

Enabling and disabling extensions in Vivaldi

In Vivaldi, go to vivaldi://extensions.

@davidcorbin
davidcorbin / django.sh
Created April 6, 2016 16:22
Install and test django web server
#!/bin/bash
red='\e[0;31m'
NC='\e[0m'
#Check for root privledges
if [ "$UID" -ne 0 ]
then echo -e "${red}Root privledges required. Type 'su', type enter, then input your password.${NC}"
exit
fi
@davidcorbin
davidcorbin / zlib.md
Created February 9, 2016 05:43
How to fix missing ZLIB_LIBRARY and ZLIB_INCLUDE_DIR cmake error on Windows

How to fix missing ZLIB_LIBRARY and ZLIB_INCLUDE_DIR cmake error on Windows

Install ZLIB

Download ZLIB for Windows from Sourceforge and install it on your Windows machine. Works with x86/x64

Find ZLIB install directory

Currently, the ZLIB installer from Sourceforge (above) installs in C:/Program Files (x86)/GnuWin32.