tisdag 16 december 2014
Facebook test: how did you die in past life?
schyssta klubben
Have you ever wondered if you had a sixth sense? Well, now you know! In your past life, you were declared a witch and convicted to die on the stake. You actually had a very special gift and only meant well. Too bad people still don't realize that...
Glib error Firefox & Thunderbird
(process:30118): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed (thunderbird:30118): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::sm-connect after class was initialised (thunderbird:30118): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::show-crash-dialog after class was initialised (thunderbird:30118): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::display after class was initialised (thunderbird:30118): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::default-icon after class was initialised
#en del av lösningen$ sudo apt-get remove cinnamon-session libpolkit-qt-1-1 libqapt2-runtime lxde lxde-common lxde-core lxinput lxsession lxsession-logout
$ sudo chown -R user:user /home/user
Linux Thunderbird -safe-mode
$ cd usr/lib/thunderbird/thunderbird
$ thunderbird -safe-mode
$ echo "Hit the Enter key to continue"
$ thunderbird -safe-mode
$ echo "Hit the Enter key to continue"
Linux Bash search using firefox
$ read text
$ firefox -search "$text"
$ echo "Hit the Enter key to continue"
$ firefox -search "$text"
$ echo "Hit the Enter key to continue"
måndag 15 december 2014
xmlstarlet RSS Bash
#!/bin/bash
#!/usr/bin/python
clear
RSS_URL=http://blåljus.se/rss.aspx
wget ${RSS_URL} -O - 2>/dev/null | \
xmlstarlet sel -t -m "/rss/channel/item" \
-v "guid" -n -v "pubDate" -n -v "title" -n -v "description" -n -v "link" -n -n
# mitt första försök....
#wget -q -O- http://blåljus.se/rss.aspx| awk 'BEGIN{RS="<title>"}
#{
#gsub(/.*<description>|<\/description>.*/,"")
#gsub(/.*<rss version="2.0">|<\/rss>>.*/,"")
#gsub(/.*<channel>|<\/channel>.*/,"")
#gsub(/.*<link><\/link>.*/,"")
#gsub(/.*<language>|<\/language>.*/,"")
#gsub(/.*<pubDate>|<\/pubDate>.*/,"")
#print $0
#}'
#!/usr/bin/python
clear
RSS_URL=http://blåljus.se/rss.aspx
wget ${RSS_URL} -O - 2>/dev/null | \
xmlstarlet sel -t -m "/rss/channel/item" \
-v "guid" -n -v "pubDate" -n -v "title" -n -v "description" -n -v "link" -n -n
# mitt första försök....
#wget -q -O- http://blåljus.se/rss.aspx| awk 'BEGIN{RS="<title>"}
#{
#gsub(/.*<description>|<\/description>.*/,"")
#gsub(/.*<rss version="2.0">|<\/rss>>.*/,"")
#gsub(/.*<channel>|<\/channel>.*/,"")
#gsub(/.*<link><\/link>.*/,"")
#gsub(/.*<language>|<\/language>.*/,"")
#gsub(/.*<pubDate>|<\/pubDate>.*/,"")
#print $0
#}'
tisdag 9 december 2014
Linux - Bash Linux Mint KDE 17.1 PPA
- #!/bin/bash
- clear
- echo " "
- echo " "
- echo " ''~'' "
- echo " ( o o ) "
- echo " +------------------.oooO--(_)--Oooo.------------------+ "
- echo " | | "
- echo " | LINUX.. BASH... | "
- echo " | .oooO | "
- echo " | ( ) Oooo. | "
- echo " +---------------------\ (----( )--------------------+ "
- echo " \_) ) / "
- echo " (_/ "
- echo " http://verklighetochdrom.blogspot.se/ "
- echo " "
- echo " hynt@speed-mailer.com "
- echo " "
- the_ppa01="deb http://archive.getdeb.net/ubuntu trusty-getdeb apps"
- the_ppa02="deb http://packages.linuxmint.com rebecca main upstream import"
- the_ppa03="deb http://extra.linuxmint.com rebecca main"
- the_ppa04="deb http://archive.ubuntu.com/ubuntu trusty main restricted universe multiverse"
- the_ppa05="deb http://archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse"
- the_ppa06="deb http://security.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse"
- the_ppa07="deb http://archive.canonical.com/ubuntu/ trusty partner"
- the_ppa08="deb http://ppa.launchpad.net/osmoma/audio-recorder/ubuntu trusty main"
- the_ppa09="deb-src http://ppa.launchpad.net/osmoma/audio-recorder/ubuntu trusty main"
- #the_ppa10="deb http://www.remastersys.com/ubuntu precise main"
- the_ppa11="deb http://ppa.launchpad.net/webupd8team/y-ppa-manager/ubuntu trusty main"
- the_ppa12="deb http://ppa.launchpad.net/linuxonly/modem+manager+gui/ubuntu trusty main"
- the_ppa13="deb-src http://ppa.launchpad.net/linuxonly/modem+manager+gui/ubuntu trusty main"
- the_ppa14="deb http://ppa.launchpad.net/lkjoel/fix404sudo/ubuntu trusty main"
- echo "IF this is a new PPA, adding is Ok!"
- echo "$the_ppa01"
- echo "$the_ppa02"
- echo "$the_ppa03"
- echo "$the_ppa04"
- echo "$the_ppa05"
- echo "$the_ppa06"
- echo "$the_ppa07"
- echo "$the_ppa08"
- echo "$the_ppa09"
- echo "$the_ppa10"
- echo "$the_ppa11"
- if ! grep -q "$the_ppa01" /etc/apt/sources.list /etc/apt/sources.list.d/*; then
- # commands to add the ppa ...
- echo -e "\x1B[01;89m ppa not found, adding: \x1B[0m"
- sudo sh -c "echo '$the_ppa01' >> /etc/apt/sources.list"
- fi
- if ! grep -q "$the_ppa02" /etc/apt/sources.list /etc/apt/sources.list.d/*; then
- # commands to add the ppa ...
- echo -e "\x1B[01;89m ppa not found, adding: \x1B[0m"
- sudo sh -c "echo '$the_ppa02' >> /etc/apt/sources.list"
- fi
- if ! grep -q "$the_ppa03" /etc/apt/sources.list /etc/apt/sources.list.d/*; then
- # commands to add the ppa ...
- echo -e "\x1B[01;89m ppa not found, adding: \x1B[0m"
- sudo sh -c "echo '$the_ppa03' >> /etc/apt/sources.list"
- fi
- if ! grep -q "$the_ppa04" /etc/apt/sources.list /etc/apt/sources.list.d/*; then
- # commands to add the ppa ...
- echo -e "\x1B[01;89m ppa not found, adding: \x1B[0m"
- sudo sh -c "echo '$the_ppa04' >> /etc/apt/sources.list"
- fi
- if ! grep -q "$the_ppa05" /etc/apt/sources.list /etc/apt/sources.list.d/*; then
- # commands to add the ppa ...
- echo -e "\x1B[01;89m ppa not found, adding: \x1B[0m"
- sudo sh -c "echo '$the_ppa05' >> /etc/apt/sources.list"
- fi
- if ! grep -q "$the_ppa06" /etc/apt/sources.list /etc/apt/sources.list.d/*; then
- # commands to add the ppa ...
- echo -e "\x1B[01;89m ppa not found, adding: \x1B[0m"
- sudo sh -c "echo '$the_ppa06' >> /etc/apt/sources.list"
- fi
- if ! grep -q "$the_ppa07" /etc/apt/sources.list /etc/apt/sources.list.d/*; then
- # commands to add the ppa ...
- echo -e "\x1B[01;89m ppa not found, adding: \x1B[0m"
- sudo sh -c "echo '$the_ppa07' >> /etc/apt/sources.list"
- fi
- if ! grep -q "$the_ppa08" /etc/apt/sources.list /etc/apt/sources.list.d/*; then
- # commands to add the ppa ...
- echo -e "\x1B[01;89m ppa not found, adding: \x1B[0m"
- sudo sh -c "echo '$the_ppa08' >> /etc/apt/sources.list"
- fi
- if ! grep -q "$the_ppa09" /etc/apt/sources.list /etc/apt/sources.list.d/*; then
- # commands to add the ppa ...
- echo -e "\x1B[01;89m ppa not found, adding: \x1B[0m"
- sudo sh -c "echo '$the_ppa09' >> /etc/apt/sources.list"
- fi
- #if ! grep -q "$the_ppa10" /etc/apt/sources.list /etc/apt/sources.list.d/*; then
- # # commands to add the ppa ...
- # echo -e "\x1B[01;89m ppa not found, adding: \x1B[0m"
- # sudo sh -c "echo '$the_ppa10' >> /etc/apt/sources.list"
- #fi
- if ! grep -q "$the_ppa11" /etc/apt/sources.list /etc/apt/sources.list.d/*; then
- # commands to add the ppa ...
- echo -e "\x1B[01;89m ppa not found, adding: \x1B[0m"
- sudo sh -c "echo '$the_ppa11' >> /etc/apt/sources.list"
- sudo apt-get update
- sudo apt-get install y-ppa-manager
- fi
- if ! grep -q "$the_ppa12" /etc/apt/sources.list /etc/apt/sources.list.d/*; then
- # commands to add the ppa ...
- echo -e "\x1B[01;89m ppa not found, adding: \x1B[0m"
- sudo sh -c "echo '$the_ppa12' >> /etc/apt/sources.list"
- fi
- if ! grep -q "$the_ppa13" /etc/apt/sources.list /etc/apt/sources.list.d/*; then
- # commands to add the ppa ...
- echo -e "\x1B[01;89m ppa not found, adding: \x1B[0m"
- sudo sh -c "echo '$the_ppa13' >> /etc/apt/sources.list"
- fi
- if ! grep -q "$the_ppa14" /etc/apt/sources.list /etc/apt/sources.list.d/*; then
- # commands to add the ppa ...
- echo -e "\x1B[01;89m ppa not found, adding: \x1B[0m"
- sudo sh -c "echo '$the_ppa14' >> /etc/apt/sources.list"
- sudo apt-get updates
- sudo apt-get install fix404
- fi
- sudo apt-get update
måndag 8 december 2014
FSlint eller FDupes för tabort dubletter!(linux)
FSlint är bra men FDupes använder md5sums och därefter byte för byte jämförelse för att hitta dubbletter av filer i en uppsättning av kataloger..men sistnämda är bara i terminalen |
Backups är programet för mina backup (linux)
Mycket nöjd med deja-dup-preferences, men gillar .sh så leker nog snart med rsync
Svullna och ömma fötter
Jävla fötter svullna och ömma alldelees hårda men varit lila blå vette
fan vad som hänt bara suttit på en stol och nu har jag raggsockar och en
gummi slang placerad under fötterna så jag kan massera litemedans jag
"jobbar" vidare...
lördag 6 december 2014
Prenumerera på:
Inlägg (Atom)