Skip to content

Instantly share code, notes, and snippets.

@DiogoDoreto
DiogoDoreto / update-dns.md
Created September 14, 2024 21:37
Update DNS on Livebox 6 router from Orange

Orange unfortunately blocks manually updating the DNS servers for my own network, since I wanted to have my home server running dnsmasq, I went ahead and found a way around this limitation. It does, however, get reset to original values when the router is restarted.

Instructions

Login to the admin page of the router and navigate to Advanced Settings > DNS.

Inspect the DNS field and go to the console tab. We want to run the following commands inside the advanced_network_dns.htm frame context.

Update the IPs as needed.

@DiogoDoreto
DiogoDoreto / keymap.cson
Last active April 11, 2016 11:51
My Atom Configuration
# Stop emmet from hijacking tab from snippets and autocomplete
# https://github.com/atom/autocomplete-plus/issues/86#issuecomment-82661027
'atom-text-editor.autocomplete-active:not([mini])':
'tab': 'autocomplete-plus:confirm'
# Stop emmet from hijacking tab from snippet tab stops
# https://github.com/atom/autocomplete-plus/issues/86#issuecomment-82661027
'atom-text-editor[data-grammar="text html basic"]:not([mini]), atom-text-editor[data-grammar~="jade"]:not([mini]), atom-text-editor[data-grammar~="css"]:not([mini]), atom-text-editor[data-grammar~="sass"]:not([mini])':
'tab': 'snippets:next-tab-stop'
@DiogoDoreto
DiogoDoreto / gist:d1101664963cc5ac05f3
Created March 6, 2015 13:27
Bootable Windows Pendrive
Enter these commands on a privileged command prompt in exact order:
diskpart
list disk (***then look for your flash drive***)
select disk N (***where N is your flash drive's number. e.g. select disk 2**)
clean
create partition primary
select partition 1
active
format fs=fat32 quick
@DiogoDoreto
DiogoDoreto / XSLT 1.0
Created July 3, 2013 17:13
Distinct values in XSLT 1.0
<xsl:key name="product" match="/items/item/products/product/text()" use="." />
<xsl:template match="/">
<xsl:for-each select="/items/item/products/product/text()[generate-id()
= generate-id(key('product',.)[1])]">
<li>
<xsl:value-of select="."/>
</li>
</xsl:for-each>
@DiogoDoreto
DiogoDoreto / Preferences.sublime-settings
Last active October 10, 2015 00:37
My Sublime Text 2 Settings
{
"auto_complete_commit_on_tab": true,
"color_scheme": "Packages/Tomorrow Color Schemes/Tomorrow-Night.tmTheme",
"draw_white_space": "all",
"ensure_newline_at_eof_on_save": true,
"font_face": "Droid Sans Mono Dotted",
"font_options":
[
"subpixel_antialias"
],