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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chmod 600 ~/.ssh/authorized_keys && chmod 700 ~/.ssh/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def jobName = "JOB NAME" | |
def job = Jenkins.instance.getItem(jobName) | |
job.getBuilds().each { it.delete() } | |
job.nextBuildNumber = 1 | |
job.save() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-key adv --keyserver ha.pool.sks-keyservers.net --recv-keys <NO_PUBKEY> |