A few days ago, I started to have a very disturbing “Not permitted” message when trying to mount a usb disk from Thunar. The only way I found was to pmount the disk : not as intuitive as just clicking the disk on Thunar.
But after some googling, I found where was the real problem : udisk, who is responsible of mounting disks, uses polkit to know if I have the right to mount, or not, external disk. So, if you have the same problem, follow this steps :
sudo nano /usr/share/polkit-1/actions/org.freedesktop.udisks2.policy
(use your favorite text editor in place of nano)
Then, look for the section with “udisks2.filesystem-mount”, inside you’ll have a “defaults” section with interesting stuff :
Now, replace all “auth_admin*” by “yes” to give access for every user, like this :
Save your modifications. Forget this annoying message !
- In Windows, create a certificate via Start > All Programs > Microsoft Office > Microsoft Office Tools > Digital Certificate for VBA Projects
- In Microsoft Outlook, open the VB editor and copy/paste the code below
- Replace email@example.com and save
- Click on Tools > Digital Signature
- Click on [Choose] and select your certificate
- Click OK, then save and close the VB editor
- Create the Outlook rule with [run a script] as action and select your macro
- That’s all folks !
Private Const TO_EMAIL As String = "firstname.lastname@example.org"
Sub ForwardAllEmail(theMail As MailItem)
On Error GoTo EndSub
Dim mailObj As Outlook.MailItem
Dim item As Outlook.MailItem
Set mailObj = Application.Session.GetItemFromID(theMail.EntryID)
Set item = mailObj.Forward
Set item = Nothing ' Set variables to null to prevent memory leaks
Set mailObj = Nothing
MsgBox "Error: " & Err.Description
A few months ago, I read an article about brain training by learning a new language : very interesting story about William Alexander who failed to learn french but strenghten his brain trying to.
But this is not the subject of this post. As I finished to read the article, I tried to reach William Alexander’s website and was redirected to a crappy chineese online store. I immediately thought he was hacked and after reading the page source code, I find this piece of script :
var language = navigator.browserLanguage?navigator.browserLanguage:navigator.language;
document.location.href = 'http://www.line-kopi.com';
What’s going on here ? The code checks the browser language and redirects to the fraudulent site only if the language is anything other than english ! So, every time some non-english dude complains to William about this problem, William tries the site and accesses it successfully and just forget about it… The malicious code can stay here for months, with just a little trick but very annoying result !
And for the record, I, of course, alerted William and he removed the malicious code …
New session : tmux
Attach to a session : tmux a
Detach : Ctrl+b d
Scroll : Ctrl+b PgUp/PgDown (quit with q) also can use mouse after first page up or down
Copy mode : Ctrl+b [ (quit with q)
Split horizontally : Ctrl+b “
Split vertically : Ctrl+b %
Switch pane : Ctrl+b arrow key
Resize pane : Hold Ctrl+b + arrow keys
install xclip so buffer copied insied tmux are also available to X : sudo apt-get install xclip
Assume we have access to the wifi at work and at home. How can I configure my laptop to automatically connect to the right network without using a graphical network manager ? Welcome guessnet !
Back in 2005, long before they began approaching $10 billion in annual revenue, everyone thought that Facebook was a cool app, but no one thought that it would ever make any money. Observers laughed at the idea that Facebook could be a real business.
With that backdrop of doubters and detractors, Noah Kagan, employee #30 at Facebook, pitched Mark Zuckerberg with what he thought was a genius idea: prove the Facebook skeptics wrong and show them that the fledgling startup could make real money.
Read more : http://blog.idonethis.com/one-thing-extreme-focus-facebook-mark-zuckerberg-paypal-peter-thiel
Add in your ~/.ssh/config :
src = superuser.com
As of Git v1.7.0, you can delete a remote branch using
git push origin --delete <branchName>
src = stackoverflow.com
Put in your ~/.zshrc :
src = superuser.com