Skip to content

Instantly share code, notes, and snippets.

View ataliba's full-sized avatar
🎯
Focusing

cybernetus@xda ataliba

🎯
Focusing
View GitHub Profile
@ataliba
ataliba / migra-sqlite.txt
Created October 16, 2012 20:03
Migrating sqlite2 to sqlite3
sqlite2 /path/to/mysqlite2.db .dump > backupfile
sqlite3 /path/to/mynewsqlite3.db < backupfile
@ataliba
ataliba / exim_mailqueue.sh
Created November 18, 2012 01:15
Exim Mailqueue edited
#!/bin/sh
###############################################
#
# Nagios script to check Exim mail queue status
#
# Copyright 2007, 2008 Ian Yates
#
# NOTE: Depending on your config, the nagios user will probably be
# needed to be added to the exim group for this script to function correctly
#
@ataliba
ataliba / gpuf.sh
Created December 4, 2012 00:31
gpuf
gpuf () {
# git pull -f $1
remote=${1:?"need remote to force pull from"}
current_branch=$(git symbolic-ref -q HEAD)
current_branch=${current_branch##refs/heads/}
current_branch=${current_branch:-HEAD}
if [ $current_branch = 'HEAD' ] ; then
echo
echo "On a detached head. Exiting..."
server {
listen 80;
listen [::]:80 default ipv6only=on;
server_name chat.ataliba.net;
rewrite ^ https://$server_name$request_uri? permanent;
add_header Strict-Transport-Security max-age=31536000;
location / {
%% Hostname
{hosts, ["chat.ataliba.net"]}.
%% Logging
{loglevel, 0}.
{listen,
[
{5222, ejabberd_c2s, [
{access, c2s},
/* Configuration */
// Domain name to connect to for XMPP.
var defaultDomain = 'chat.ataliba.net'
// Address of the XMPP MUC server.
var defaultConferenceServer = 'conference.chat.ataliba.net'
// BOSH is served over an HTTPS proxy for better security and availability.
var defaultBOSH = 'https://chat.ataliba.net/http-bind/'
#!/system/bin/sh
sleep 60
PPID=$(pidof com.estrongs.android.safer)
echo "-17" &gt; /proc/$PPID/oom_adj
#!/system/bin/sh
sleep 60
PPID=$(pidof com.estrongs.android.safer)
renice -17 $PPID
#!/bin/sh
echo "Installing Vmware Tools on your system ... "
yum -y install perl
mkdir /mnt/cdrom
mount /dev/cdrom /mnt/cdrom
cp /mnt/cdrom/VMwareTools-*.tar.gz /tmp
umount /mnt/cdrom
tar -zxf /tmp/VMwareTools-*.tar.gz -C /tmp

Keybase proof

I hereby claim:

  • I am ataliba on github.
  • I am cybernetus (https://keybase.io/cybernetus) on keybase.
  • I have a public key whose fingerprint is 904A 79E0 D8DC 704D 1EF1 BC86 3AF9 FA8D 5940 55A3

To claim this, I am signing this object: