Skip to content

Instantly share code, notes, and snippets.

View rallisf1's full-sized avatar

John Rallis rallisf1

  • Athens, Greece
View GitHub Profile
@kgaughan
kgaughan / checkeuvat.py
Created April 14, 2011 10:08
Checking an EU VAT number using the VIES SOAP interface
from suds.client import Client
client = Client('http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl')
# Returns a dict-like object with the fields 'countryCode', 'vatNumber',
# 'requestDate', 'valid' (boolean), 'name', and 'address'.
result = client.service.checkVat('IE', '6390845P')
@ozh
ozh / gist:4131243
Created November 22, 2012 13:44
Create dot files/directories (ie .file) on Windows

#How to create a .file or .folder on Windows

There are several ways

1. Rename

  • Create file.txt
  • Rename to .file., the last dot will be dropped, you'll have .file

Works the same with a file or a directory.

@jctosta
jctosta / screen_cheatsheet.markdown
Last active July 28, 2024 08:46
Screen Cheatsheet

Screen Quick Reference

Basic

Description Command
Start a new session with session name screen -S <session_name>
List running sessions / screens screen -ls
Attach to a running session screen -x
Attach to a running session with name screen -r
@SharkyRawr
SharkyRawr / vscodehere.desktop
Last active June 11, 2024 19:13
KDE 5 Plasma Service Menu action: VSCode here (open visual studio code in current directory for KDE Plasma)
# Install in to ~/.local/share/kservices5/vscodehere.desktop
[Desktop Entry]
Type=Service
X-KDE-ServiceTypes=KonqPopupMenu/Plugin
MimeType=inode/directory;
Actions=openVSCodeHere;
X-KDE-AuthorizeAction=shell_access
[Desktop Action openVSCodeHere]