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 / 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.

❯ 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

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:

@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;
#!/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 / 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
@davidcorbin
davidcorbin / RabbitMQ in docker localhost connection issue
Created July 6, 2019 17:08
RabbitMQ in docker localhost connection issue
epmd -kill
@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

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@davidcorbin
davidcorbin / test.py
Last active August 3, 2019 18:44
Setup Jupyter for graphing
## Plot theme
%matplotlib inline
import matplotlib.pyplot as plt
plt.style.use('Solarize_Light2')
#plt.style.available
## High quality plot
%config InlineBackend.figure_format = 'svg'