2014/09/13

MySQL Multi configuration

Example configuration of a mysqld instance in Slackware 14

root@trax:/etc/rc.d# cat /etc/my.cnf
[client]port=3307
socket=/tmp/mysql.sock2

[mysqld_multi]
mysqld     = /usr/bin/mysqld_safe
mysqladmin = /usr/bin/mysqladmin
user       = mysql
password   = mysql

[mysqld2]
socket     = /tmp/mysql.sock2
port       = 3307
pid-file   = /usr/local/mysql/var2/hostname.pid2
datadir    = /usr/local/mysql/var2
language   = /usr/local/share/mysql/english
user       = mysql

mkdir /usr/local/mysql/var2
cd /usr/local/mysql/
chown mysql.mysql var2

cd /usr
mysql_install_db --user=mysql --datadir=local/mysql/var2 --basedir=/usr

if needed copy mysqld.server.multi to /etc/rc.d

/etc/rc.d/mysql_multi start N

mysqladmin -uroot password --socket=/tmp/mysql.sock --port=PORT

mysql -uroot -p --socket=/tmp/mysql.sock --port=PORT

and allow root access if needed

2014/05/17

Must Have Firefox Addons

No Script: because it doesn't really matter if there's a hole in the newest  JavaScript  version for firebox. Link

Ad Block Plus: get rid of most nasty ads. Link

Cookie Monster: site cookies can store information on your browser about your preferences, but can also used to track you on the Internet.  Link

DTA (Download Them All): I'm not a mass downloader but this Addon is a must with Unplug. Link

Firebug: a must have for web hacking. Link

Lazarus: after typing 10 times the same form, you end up installing this.  Link

Skip Feedsportal: some RSS Feeds create a special formated url to keep a track of the sites you visit. If you don't want that, this Addon is for you. Link

Stylish: Check on my other posts to see what can you do with it. Link

Tabs on Bottom: as firefox user since version 1 I like the old style more than the new one. Link

Unplug: Extract media from web pages like Youtube. Link

User Agent Switcher: In some cases, if a web pages is acting weird, you can force them to believe you are using a different browser.  Link


2014/04/30

A bit more anonymous way for Youtube browsing


If you use Google productos like blogger or gmail, you will notice that entering in Youtube automatically use your google credentials on the site. Which means all videos you search and browse are registered in your Google Account.

If you want to avoid that, you need Firefox and Cookie Monster. Once installed you will have a new Icon with the letters CM, go to youtube, click on the icon and select Cookie Access (site level) and select Reject Cookies. You will notice that even if you use gmail or blogger or even google it wont log you out from those sites.

2014/04/23

How to get rid of "Try the new Twitter profile" box on Twitter

EDIT 20140603: this post is outdated since Twitter forced the new style on every account

ORIGINAL POST:

same thing as this post, You need Firefox, Stylish and create a new style for the domain.

@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document domain("twitter.com") {
.ProfilePreviewBanner

{background:none !important;display:none !important}

}


Edit: Added screenshoots as example. notice the icon in the left lower corner:




@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document domain("twitter.com") {
.ProfilePreviewBanner

{background:none !important;display:none !important}

}
@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document domain("twitter.com") {
.ProfilePreviewBanner

{background:none !important;display:none !important}

}

2014/04/20

Slackware: post installation

this page is going to be a reminder to myself about thing that should be done after installing Slackware. I'm not posting quite obvious things like running xorgconf.

Adding cdrom, printer and audio rights to the normal user I should normally use.

usermod -G lp,audio,cdrom username

Adding a line in /etc/rc.d/rc.local_shutdown to remove all the files in /etc/udev/rules.d, helps a lot when the underlying hardware changes or when having more than one Ethernet card with the same chipset.

If you plan to use squid, don't forget to add a rc.local_shutdown line to shut it down or it might break the cache on the process.

If the cache becomes a problem, create an script to stop it, remove the cache and restart it.

if situation allows it, going for ethernet bonding is a must.

http://www.sgvulcan.com/network-interface-bonding-in-slackware-version-13-1/

create a personal bin directory for scripts in your home dir

mkdir ~/bin
echo export PATH=$PATH:~/bin >~/.bash_profile



2013/08/08

compat32 on slackware 64

source:
http://alien.slackbook.org/dokuwiki/doku.php?id=slackware:multilib

http://slackware.com/~alien/multilib/


Here is a quick list of what to do. Pay attention to the version number of Slackware:

On a fresh dir, as root
lftp -c 'open http://slackware.com/~alien/multilib/ ; mirror 14.0'
cd 14.0

upgradepkg --reinstall --install-new *.t?z
upgradepkg --install-new *-compat32/*.t?z
and that's it.

2013/07/28

Email a Twitter

Correo que mandé a Twitter después de recibir respuesta por mi apelación (rellenar formulario). Solamente eliminé el email que uso para registrarme, el resto está intacto. si ven el texto al final verán el formulario que envié oportunamente. Estaba algo furioso al momento de redactarlo.



I understand all you said in the email and after doing a quick recheck I see no category in the rules which may apply to me. As I said I try to be nice and helpful to everyone as long as possible.

the real reason I got suppended it's because there's a group of people in argentina (Cyber K) doing a mass spam report on people who doesn't support the current government. I have seen this during the past weeks on many of the people I follow.

I have noticed suspensions goes for three days. I can live with that, but lifting the suspension now would be nice.

thank you.


On 07/08/2013 01:43 PM, Twitter Support wrote:
##- Please type your reply above this line -##
Twitter

Hello,

We understand that you're contesting an account suspension. Please be
sure to read this entire email; you will need to take further action in
order to reopen your ticket and trigger a review of your account.

Twitter suspends accounts for a variety of reasons:

• If your account was suspended for aggressive following behavior, you
should have received an email notification to the address associated
with your Twitter account. You'll need to confirm that you've removed
all prohibited following automation from your account, and will stop any
manual aggressive following behavior. To expedite your appeal process,
please review our Best Practices
<http://support.twitter.com/entries/68916> page if you haven't already,
and then reply to this ticket with a confirmation that you understand
our policies and will not engage in any prohibited following behavior.

• Please take a minute to review the Twitter Rules
<http://www.twitter.com/rules>.

• If you received an email from admin@twitter.com saying 'you're being
suspended' or that we're going delete your account, you're safe; the
email is fake. More information here
https://support.twitter.com/articles/204820-safety-fake-twitter-emails

• While we strive to avoid mistakes, it's also possible that your
account was suspended in error. If after reviewing the Rules, you have
no idea why your account was suspended, just reply to this email
indicating as much, and we'll take another look at your case. Our
apologies if the error turns out to be ours.

Thanks,

Twitter Support

----------------------------------------------------------------------------------
Responding to this email will reopen this ticket and put your ticket in
queue for support. If you do not reply, your case will be closed. Note
that you need to reply from the address this mail was sent to. If you
use an alias (such as username+alias@gmail.com) to manage your account,
ensure that your reply comes from the alias address or your ticket may
not be seen by our support staff.

Please note, we cannot accept email attachments at this time; please
include all information in the body of your request.

*Your request summary is:*


*RudyMartin, Jul 08 09:43 am (PDT):*

Regarding: Suspended account
Subject: suspended for no real reason
Description of problem: even considering the fact I talk in Spanish I
don't think I deserve this. I use twitter to talk about politics and
computing and I never meant to be disrespectful to anyone, even when
others don't treat me the same way, and even when I strongly disagree on
a given subject. Three years using twitter, first time suspended. I
would like an explanation. Thank you.
Full name: Martin Baeumler
Twitter username: @RudyMartin
Email address: X
Phone number (optional): n/a

Message-Id:K7V96WCK_51daec365104a_696f12c8868152351fc_sprut

Quiero poner énfasis en esta parte:
If you use an alias (such as username+alias@gmail.com) to manage your account,  ensure that your reply comes from the alias address or your ticket may not be seen by our support staff.
que traducido con http://translate.google.com quiere decir 
Si utiliza un alias (como nombre de usuario + alias@gmail.com) para administrar su cuenta, asegúrese de que su respuesta viene de la dirección de alias o el billete no se puede ver con nuestro personal de apoyo.
 (horrible traducción pero algo se entiende) . O sea, es importante usar el email correcto.