sparc86.wordpress.com
Sparc86's Blog | Thoughts, bits and bytes… | Page 2
https://sparc86.wordpress.com/page/2
Thoughts, bits and bytes…. Structured Data in C programming. I was learning about Structured Data and I have found some plenty of weird code. Here is the simplest code I have found, so everyone can understand the concepts. Include struct person { char *name; int age; }; int main() { struct person p; p.name = John Smith; p.age = 25; printf(%s,p.name); printf(%d,p.age); return 0; }. Additionally, I have wrote this more elaborated code. Based on the ebook Learning GNU C from Ciarán O'Riordan):. 1 By every 5...
sparc86.wordpress.com
Python simple HTTP server | Sparc86's Blog
https://sparc86.wordpress.com/2012/11/17/python-simple-http-server
Thoughts, bits and bytes…. Python simple HTTP server. One of my friends presented this nice tool. Very useful if you want to share a folder but is not interested in running a full HTTP server:. Python -m SimpleHTTPServer 80. Where 80 is the http port and may be changed for any other port you prefer). November 17, 2012. Leave a Reply Cancel reply. Enter your comment here. Fill in your details below or click an icon to log in:. Address never made public). Notify me of new comments via email.
sparc86.wordpress.com
Removing specific occurrences of files | Sparc86's Blog
https://sparc86.wordpress.com/2012/03/20/removing-specific-occurrences-of-files
Thoughts, bits and bytes…. Removing specific occurrences of files. Let’s say we have a Linux file server (samba) and the users insist in keep adding mp3 files into it. With the following command (and I suggest you adding the script to your crontab) we can remove all the occurrences of mp3/MP3 files everyday without doing it manually. Find /home -type f -iname *.mp3 -exec rm -fv {} ;. March 20, 2012. Leave a Reply Cancel reply. Enter your comment here. Fill in your details below or click an icon to log in:.
sparc86.wordpress.com
Checking if there is unauthorized DHCP servers in a LAN | Sparc86's Blog
https://sparc86.wordpress.com/2012/08/10/checking-if-there-is-unauthorized-dhcp-servers-in-a-lan
Thoughts, bits and bytes…. Checking if there is unauthorized DHCP servers in a LAN. I have found a very nice tool to probe for unauthorized DHCP servers in a network. In Debian, you can use aptitude or apt-get to install it. I hope it will be useful for more people. Apt-get install dhcp probe #dhcp probe -f -o /home/user/caps/dhcp.pcap eth0 note: starting, version 1.3.0 warn: received unexpected response on interface eth0 from BootP/DHCP server with IP source 192.168.0.1 (ether sr...August 10, 2012.
sparc86.wordpress.com
adding standard samba password to a user list | Sparc86's Blog
https://sparc86.wordpress.com/2012/03/19/adding-standard-samba-password-to-a-user-list
Thoughts, bits and bytes…. Adding standard samba password to a user list. For f in $( cat /root/users.txt ); do echo -ne pass npass n smbpasswd -a -s $f; done. Of course, alternatively, I could use “ls /home” instead of “cat /root/users.txt”. March 19, 2012. 2 responses to “adding standard samba password to a user list”. March 12th, 2013 at 22:10. Someone in my Myspace group shared this website. Tweeting this to my followers! Great blog and terrific style and. March 20th, 2013 at 01:08. Follow “Spa...
sparc86.wordpress.com
Rotational backup shell script | Sparc86's Blog
https://sparc86.wordpress.com/2012/05/27/rotational-backup-shell-script
Thoughts, bits and bytes…. Rotational backup shell script. So I wrote this shell script for a client which needed a simple solution for daily backups. It will:. 1 Check if the USB HDD is mounted, if it is not, it will mount it. 2 It will start writing it is own log file, will check for files older than 60 days, if it finds, it will delete it. Therefore the backups will never exceed the space in the external HDD (500G HDD). May 27, 2012. Leave a Reply Cancel reply. Enter your comment here. You are comment...
sparc86.wordpress.com
automatically adding the unix users to the samba smb.conf shares | Sparc86's Blog
https://sparc86.wordpress.com/2012/03/20/automatically-adding-the-unix-users-to-the-samba-smb-conf-shares
Thoughts, bits and bytes…. Automatically adding the unix users to the samba smb.conf shares. With the following script we can automatically add shares to the smb.conf (/etc/samba/smb.conf) based on the actual unix users:. March 20, 2012. 1 responses to “automatically adding the unix users to the samba smb.conf shares”. April 10th, 2013 at 03:54. Today, while I was at work, my cousin stole my iPad and tested to see if it can survive. A twenty five foot drop, just so she can be a youtube sensation. System&...
menelkir.wordpress.com
About | Daniel Menelkir
https://menelkir.wordpress.com/about
Tech stuff and everything else. Linux User Number 405334. IBM Storage Specialist (DS4xxx, DS6xxx, DS8xxx, XIV). Cluster and Virtualization Specialist. IBM System X Specialist. And I like…. Vintage Computing (MSX, Sinclair, Commodore). One Response to “About”. November 14, 2008 at 1:40. Escrevi um post relacionado ao post “Linguagens de programação – C ” e vi seu comentário no VidaGeek, gostaria de saber o que acha. Http:/ murilo.wordpress.com/2008/11/14/direito-de-defesa-ao-cmaismais/.
menelkir.wordpress.com
New Home | Daniel Menelkir
https://menelkir.wordpress.com/2010/05/01/new-home
Tech stuff and everything else. May 1, 2010. Http:/ menelkir.itroll.org. Don’t worry, all the old posts are there). Posted by Daniel Menelkir. 7 Responses to “New Home”. June 11, 2013 at 9:14. I am truly grateful to the holder of this site. Who has shared this fantastic post at at this place. August 7, 2013 at 8:40. I simply would like to give you a big thumbs up for your excellent info you have right. Here on this post. I’ll be returning to your blog for more soon. August 7, 2013 at 17:30. Address never...
SOCIAL ENGAGEMENT