This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Telling Exim4 to allow users on external networks to use the mail server as a relay: | |
| So, for example your mail server has local ip: | |
| 192.168.1.1 | |
| In that case, if you only wish let you local users use the mail server to send mail, then configure the relay host as this: | |
| In `/etc/exim4/update-exim4.conf.conf`, set the relay network to only allow local machines for example (probably filter with a Class C mask) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/sh | |
| #I use axel, but you might as well use wget | |
| #and you might wish to grab your own uri in case this one is broken... | |
| rm glm*.zip | |
| axel http://downloads.sourceforge.net/project/ogl-math/glm-0.9.5.1/glm-0.9.5.1.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fogl-math%2Ffiles%2F&ts=1390921576&use_mirror=garr | |
| 7z x glm*.zip && cd glm && sudo cp -r glm /usr/include/ | |
| #if all went well, you are ready to use GLM (e.g you may now proceed to ./configure-make gource :-) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="row panel"> <!-- panel class plays a big role in concealing our trick when it comes to painting the table --> | |
| <div class="col-md-2"> | |
| <table class="table"> | |
| <thead> | |
| <tr> | |
| <th>CATEGORY</th> | |
| </tr> | |
| </thead> | |
| <tbody> | |
| <tr> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| namespace LongListSelectorUtils | |
| { | |
| /// <summary> | |
| /// This class allows us to be able to create custom groups, with custom keys, | |
| /// that can be easily consumed by jumplists and used to group items in longlist selector controls. | |
| /// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Net; | |
| using System.Text; | |
| namespace RESTAPI | |
| { | |
| /// <summary> | |
| /// Encapsulates functionality to make it possible to make |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Newtonsoft.Json; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using Windows.Storage; | |
| namespace MyCHILD |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Linux CUPS terminal printer quick cheatsheet | |
| ============================================= | |
| ** Adding a new printer without a PPD: | |
| lpadmin -p printer_name -E -v socket://192.168.1.9:9100 | |
| ** Finding an existing PPD for your printer if required: | |
| lpinfo --make-and-model 'LaserJet 3390' -m |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Normal, Funny, Unique, and Loving ways to end your letters, notes, e-mails, conversations, tweets, posts.... | |
| I love lists..... | |
| Normal: | |
| Best/Warm wishes, | |
| Confidently yours, | |
| Kind regards, | |
| Respectfully Yours, | |
| With anticipation, | |
| Hugs, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ##################################################### | |
| # router/350_exim4-config_virtual_aliases | |
| ##################################################### | |
| #--------------------------- | |
| # This router is added so that we can use this server for multiple domains | |
| # And also be able to define custom aliases for each of these domains... | |
| # NOTE : this router is placed before the system_aliases router so that virtual domain | |
| # routing takes precedence over system_aliases | |
| #---------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os, sys | |
| base = os.path.dirname(os.path.dirname(__file__)) | |
| base_parent = os.path.dirname(base) | |
| sys.path.append(base) | |
| sys.path.append(base_parent) | |
| os.environ['DJANGO_SETTINGS_MODULE'] = '%s.settings' % os.path.basename( os.path.dirname(__file__) ) |