Skip to content

Instantly share code, notes, and snippets.

@v-thomp4
v-thomp4 / Compile_Bitcoin_on_Ubuntu_14_04
Last active February 19, 2017 09:15 — forked from kostaz/Compile_Bitcoin_on_Ubuntu_14_04
Compile Bitcoin on Ubuntu 14.04
Assuming the username of the Ubuntu user is "theusername".
Preparation
-----------
```
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential libtool autotools-dev autoconf pkg-config libssl-dev
@v-thomp4
v-thomp4 / gist:9b65c18117384cb75a5a07b9863870eb
Created February 23, 2017 07:12
Can't locate object method "new" via package "Gnome2::Vte::Terminal" Pac ssh manager
1/ Install dependency
apt-get install libvte-dev libextutils-depends-perl libextutils-pkgconfig-perl
2/ Install dh-make-perl
apt-get install dh-make-perl apt-file
apt-file update
3/ Build Vte
dh-make-perl --cpan Gnome2::Vte --build
4/ Install the package
dpkg -i libgnome2-vte-perl_0.11-1_amd64.deb
@v-thomp4
v-thomp4 / supervisord.sh
Created March 1, 2017 02:39 — forked from danmackinlay/supervisord.sh
an init.d script for supervisord
#! /bin/sh
### BEGIN INIT INFO
# Provides: supervisord
# Required-Start: $remote_fs
# Required-Stop: $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Example initscript
# Description: This file should be used to construct scripts to be
# placed in /etc/init.d.

How To Clone Scrypt Based Altcoins for Fun and Profit

Wait a second, why would you want to give out the secrets?!? Because its not a secret anymore and besides, why shouldn't everyone and their neighbors be able to create a plethora of these useless yet exciting math bits? The information in this article took me a few weeks to compile and what works for me is not guaranteed to work for you. Please use this guide as a starting point to learn a bit about C programming and compiling software.

Edit /etc/sysconfig/iptables:
vi /etc/sysconfig/iptables
Find the following two lines:
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
Add the following lines(marked in bold letters) between the above two lines.
:FORWARD ACCEPT [0:0]
@v-thomp4
v-thomp4 / gist:951b333a37ee2adb0d3ac557bd75aba4
Created April 13, 2017 03:15
nginx universal links apple-app-site-association
location = /apple-app-site-association {
proxy_pass http://static.example.com/apple-app-site-association;
proxy_hide_header Content-Type;
add_header Content-Type "application/json";
}
or
location = apple-app-site-association {
default_type application/json;
@v-thomp4
v-thomp4 / gist:253a8ad3f9355e3c32a6b25727b062cc
Created May 4, 2017 10:21
State [purged] is not valid for process rancher
This should give you a list of the services that are stuck in service purgatory:
select id, state from service_expose_map where removed is null and instance_id in (select id from instance where state='purged');
update service_expose_map set removed=now(), state='removed' where id in ( SERVICE, ID's, HERE);
chmod 600 ~/.ssh/authorized_keys && chmod 700 ~/.ssh/
@v-thomp4
v-thomp4 / gist:6f0daa939804aad9bc14a371632606cc
Created May 24, 2017 07:26
clear my Jenkins/Hudson build history
def jobName = "JOB NAME"
def job = Jenkins.instance.getItem(jobName)
job.getBuilds().each { it.delete() }
job.nextBuildNumber = 1
job.save()
@v-thomp4
v-thomp4 / gist:ee87952bc7987a613c68bf84e6546644
Created May 26, 2017 02:30
fix missing GPG keys ubuntu
sudo apt-key adv --keyserver ha.pool.sks-keyservers.net --recv-keys <NO_PUBKEY>