Skip to content

Instantly share code, notes, and snippets.

View fapestniegd's full-sized avatar

James S White fapestniegd

View GitHub Profile
_t_u_m_b_l_e_f_i_s_h_.
search it up
[search ]
last week's hot shit
_P_a_g_e_ _N_o_t_ _F_o_u_n_d_ _-_ _i_T_n_e_w_s_._c_o_m_._a_u
_M_o_s_t_ _U_n_u_s_u_a_l_ _I_m_a_g_e_ _O_f_ _T_h_e_ _N_i_g_h_t_ _:_ _A_B_C_ _3_3_/_4_0_ _W_e_a_t_h_e_r_ _B_l_o_g
_f_a_p_e_s_t_n_i_e_g_d_/_s_m_e_g_f_l_i_x_ _-_ _G_i_t_H_u_b
_t_o_r_r_e_n_t_s_._t_h_e_p_i_r_._._.
_W_a_t_e_r_ _C_o_o_l_e_r_ _R_A_I_D_ _|_ _F_l_i_c_k_r_ _-_ _P_h_o_t_o_ _S_h_a_r_i_n_g_!
_t_u_m_b_l_e_f_i_s_h_.
search it up
[search ]
last week's hot shit
_P_a_g_e_ _N_o_t_ _F_o_u_n_d_ _-_ _i_T_n_e_w_s_._c_o_m_._a_u
_M_o_s_t_ _U_n_u_s_u_a_l_ _I_m_a_g_e_ _O_f_ _T_h_e_ _N_i_g_h_t_ _:_ _A_B_C_ _3_3_/_4_0_ _W_e_a_t_h_e_r_ _B_l_o_g
_f_a_p_e_s_t_n_i_e_g_d_/_s_m_e_g_f_l_i_x_ _-_ _G_i_t_H_u_b
_t_o_r_r_e_n_t_s_._t_h_e_p_i_r_._._.
_W_a_t_e_r_ _C_o_o_l_e_r_ _R_A_I_D_ _|_ _F_l_i_c_k_r_ _-_ _P_h_o_t_o_ _S_h_a_r_i_n_g_!
#!/usr/bin/perl -w
use Data::Dumper;
open(DATA,'/tmp/wordcloud');
while($line=<DATA>){
@words=split(/\s+/,$line);
foreach $word (@words){
$word=~s/[\.!,?:;]+$//; # strip off punctuation
$count->{$word}++; } # increment the count of each word
}
9731: the
7577: to
6593: a
5214: I
4696: it
4606: and
3937: that
3911: you
3573: is
3358: of
Ajax:
-------------------------
var menu;
$.ajax({
url: '/contextmenu/'
async : false,
dataType: 'json',
success: function (){ menu = data; }
});
alert( typeof(menu) );
Once we know how many nodes of what size and type we're talking about, we'll want to phase it out:
We have a few options along the way.
All hardware prices below are list (no tax included) as of 20100615, and deals could undoubtedly be found.
"server" prices are estimates for Dell 2970s with DRAC boards, redundant power supplies
Costs for : server racks,
cabling,
patch panels,
power distribution units,
breaker boxes,
uninterruptible power supplies,
/bin/cat<<EONSS>/etc/nsswitch.conf
passwd: files ldap
shadow: files ldap
group: files ldap
hosts: files dns
bootparams: files
ethers: files
netmasks: files
networks: files
protocols: files ldap
/bin/cat<<EOLDC>/etc/ldap.conf
base dc=eftdomain,dc=net
uri ldaps://maxwell.eftdomain.net:636 ldaps://faraday.eftdomain.net:636
timelimit 120
bind_timelimit 120
idle_timelimit 3600
tls_cacert /etc/ssl/ca.cert
ssl on
#ssl start_tls
tls_reqcert allow
/bin/cat<<EOPPA>/etc/pam.d/password-auth
#%PAM-1.0
# This file is auto-generated.
# User changes will be destroyed the next time authconfig is run.
auth required pam_env.so
auth sufficient pam_unix.so likeauth nullok
auth sufficient pam_ldap.so use_first_pass
auth requisite pam_succeed_if.so uid >= 500 quiet
auth required pam_deny.so
#!/bin/bash
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
grep "deb http://www.debian-multimedia.org etch main" /etc/apt/sources.list||\
echo "deb http://www.debian-multimedia.org etch main" >> /etc/apt/sources.list
grep "deb-src http://www.debian-multimedia.org etch main" /etc/apt/sources.list || echo "deb-src http://www.debian-multimedia.org etch main" >> /etc/apt/sources.list
gpg --keyserver hkp://wwwkeys.eu.pgp.net --recv-keys 07DC563D1F41B907
gpg --armor --export 07DC563D1F41B907 | apt-key add -
apt-get update