Profile

Cover photo
Daniel Hodgson
77 followers|58,000 views
AboutPosts

Stream

Daniel Hodgson

Shared publicly  - 
 
Yeah........I should probably close that port
1
Will Haggerty's profile photoDaniel Hodgson's profile photo
2 comments
 
I was local, and X11 forwarding doesn't seem to work properly after su
Add a comment...

Daniel Hodgson

Shared publicly  - 
 
 
I Can Understand The Pain 😂😂😂
3
Add a comment...

Daniel Hodgson

Shared publicly  - 
 
Today I learned that Windows 7 will not install if you have any Linux RAID drives connected to your computer. Even if you're installing to a freshly formatted drive. The same thing happens with Window's very own Dynamic disks connected.

Microsoft never ceases to amaze me with the stuff they allow to ship. I mean really, how did their QA team let this slip past them?
1
Benjamin Daschel's profile photo
 
Winderp!
Add a comment...

Daniel Hodgson

Shared publicly  - 
 
I've discovered a new kind of black magic
quine-relay - An uroboros program with 50 programming languages
2
Benjamin Daschel's profile photo
 
Someone has way too much time on his hands.
Add a comment...

Daniel Hodgson

commented on a video on YouTube.
Shared publicly  - 
 
While relatively simple and secure, the problem with using just SSH for this purpose is that on the server end, your server is vulnerable to attack. Generally speaking, it's not considered good practice to have your SSH server publicly available on the internet. 

A better solution would be to run an OpenVPN server and THEN use an SSH proxy through that (if you're worried about overhead you could additionally run a SOCKS/HTTP proxy on your server that's only available locally, instead of using SSH, though SSH is much simpler to set up). It's more complicated since it involves setting up OpenVPN, but if you're really worried about security it's the best option.

SSH however does work as a simple solution, and is safe as long as you can be certain your server isn't compromised.

Daniel Hodgson

commented on a post on Blogger.
Shared publicly  - 
 
You can use variables in the middle of a string by wrapping it in braces like so: ${var}

This allows you to add file extensions to a string without the need for another variable. So you could replace "$ISOPATH$DMG $ISOPATH" with "${ISOPATH}.dmg $ISOPATH"

For a shell script it's typically considered best practice to always wrap your variables in braces, but that can get annoying, so I only use that syntax when I need to mix variables and strings.

Also, using $(command) in place of `command` can make your script a lot easier to read. It also allows you to nest commands (i.e. $(command1 $(command2)) ), since the $() syntax is basically creating a subshell. Though it can also be used as a pipe.

Thanks for making this though. I have a feeling I'll be needing it at some point in the near future.
Writing Linux ISOs to USB drives is always slightly annoying, especially on OSX. Using OSX, you have to jump through hoops to convert the ISO into some weird format so that disk utility can transfer to the USB drive. To simplify this 12 step process, I created a script to do the converting and ...
1
Add a comment...
Have him in circles
77 people
Jonathan Pru's profile photo
Bryan Da Ponte's profile photo
Riad Elmor's profile photo
Tim Haigh's profile photo
CAROLINA WOOD's profile photo
Bradley Clemetson's profile photo
Spencer Plate's profile photo
Will Haggerty's profile photo
Andrea Petriella's profile photo

Daniel Hodgson

Shared publicly  - 
 
For anyone trying to get MP3 streams to play in Firefox on Linux without installing flash:

You want the grstreamer-plugins-ugly package (or gstreamer1-plugins-ugly on Fedora). This packages includes lib-lame, which is what you need to decdode MP3s.

Also, if you want HTML5 streaming on SoundCloud, go to the extras section of your profile in addition to installing the above package. You'll need to restart your browser after these changes as well.

#Firefox #Linux #soundcloud  
1
Add a comment...

Daniel Hodgson

Shared publicly  - 
 
Just in case anyone out there still thinks it's a good idea to leave your SSH port exposed, here's a list of all the unique IP's that have tried to access my server over the last seven days (and keep in mind, each IP made numerous attempts).

I was lazy and wanted to configure my server remotely while at work (haven't set up OpenVPN yet). No breaches yet, but I think next time I'll opt to be a little more patient and work on it at home until OpenVPN is running.

If you're running CentOS, you can get a list for yourself with this command:
cat /var/log/secure | grep -oh '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}' | sort | uniq

Take note that it includes IP's which you have been accessing your server from as well.
1
Will Haggerty's profile photo
 
I keep mine safe(r) behind a VPN connection! Now I just get to watch randoms try my apache install as a proxy.
Add a comment...

Daniel Hodgson

Samsung Devices  - 
 
I've got a Galaxy S4 that I use for work, and we're allowed to flash our devices with custom ROMs. After a lot of frustration and research, I've found out that because the phone has been updated to Android 4.3 (firmware MK2, it's a Verizon phone), I can't use Loki and put CWM & Cyanogen on it.

The only option seems to be SafeStrap, which relies on the stock kernel, so ROMs have to be built specifically to work with the kernel provided by Samsung.

Short of doing a diff between the CM kernel and the Samsung one (is that even possible? I know there's a GPE ROM for the S4, but is the stock kernel source available?), what is the best way for me to find out the differences between two? I'd like to find some way to get CM on my S4, even if it means recompiling CM with significant changes to fit the Samsung kernel (I've compiled CM from source and used it before, and I'm familiar with Java and C/C++, though I'm not intricately familiar with the inner workings of CM and the changes made to the Linux kernel for it.).

It'd also be nice if someone can confirm for me if this is a futile effort. I'm sure there's a good reason nobody's released a SS compatible version of CM yet, but an explanation why would be nice.

Any info would be greatly appreciated. TouchWiz is driving me nuts. I miss using CM on my Galaxy Captivate. :(
3
Ryan Cavitt (Kira)'s profile photoHerman Strandberg's profile photoDaniel Hodgson's profile photo
19 comments
 
Are you kidding me
Add a comment...

Daniel Hodgson

Shared publicly  - 
 
Yesterday: Joke about iOS 7 being buggy.
Today: Post asking why Android is being buggy.

Only in the CyanogenMod G+ group....
1
Add a comment...

Daniel Hodgson

Shared publicly  - 
 
Great article on HDD reliability with first-hand statistical data. I've been thinking about buying some more storage space for my server recently so this has been very helpful.

For now, I'm debating between getting two 3TB Caviar Reds (WD30EFRX), or two 3TB Hitachi Deskstars (HDS723030ALA640). The Reds can be found on Newegg for about $133 with a three year manufacturer warranty, but you can get the Deskstars on Ebay for $127. Better customer service (Newegg vs Ebay) and warranty, or better long-term reliability? Decisions, decisions...
As you can see, they are mostly Seagate and Hitachi drives, with a good number of Western Digital thrown in. We don't have enough Toshiba or Samsung drives for good statistical results. Why do we have the drives we have? Basically, we buy the least expensive drives that will work.
1
1
Daniel Hodgson's profile photo
2 comments
 
Got the drives a few days ago and I've finished burning in two of them (36 hours). No problems so far, and they're reasonably fast.
Add a comment...

Daniel Hodgson

commented on a video on YouTube.
Shared publicly  - 
 
Almost everyone watching this video is probably streets behind. They had to ask.
Story
Tagline
Web designer, programmer, and procrastinator extraordinaire
Basic Information
Gender
Male