Skip to content

Instantly share code, notes, and snippets.

View alvesvaren's full-sized avatar

Alve Svarén alvesvaren

View GitHub Profile
# This file is NOT licensed under the GPLv3, which is the license for the rest
# of YouCompleteMe.
#
# Here's the license text for this file:
#
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
# binary, for any purpose, commercial or non-commercial, and by any
" ##############..... ##############
" ##############......##############
" ##########..........##########
" ##########........##########
" ##########.......##########
" ##########.....##########..
" ##########....##########.....
" ..##########..##########.........
" ....##########.#########.............
" ..################JJJ............
" VIM CONFIG
set nu
execute pathogen#infect()
colorscheme dracula
" sudo write
@alvesvaren
alvesvaren / godaddy_ddns.py
Created August 4, 2018 10:36
A python script to set godaddy dns server to your ip, schedule this to run periodically.
import requests
import json
# This script is used to check and update your GoDaddy DNS server to the IP address of your current internet connection.
# First go to GoDaddy developer site to create a developer account and get your key and secret
# https://developer.godaddy.com/getstarted
# Update the first 4 varriables with your information
# This is a script rewrited to python from powershell, original script is available at https://github.com/markafox/GoDaddy_Powershell_DDNS
domain = 'domain name'
name = 'subdomain name'
import keyboard, soco, time
from win32api import GetKeyState
from win32con import VK_SCROLL
trigger = 77
speaker_name = 'Example'
while True:
try:
player = soco.discovery.by_name(speaker_name)
break
except Exception: