Skip to content

Instantly share code, notes, and snippets.

View ariespinoteau's full-sized avatar

Ariès Pinoteau ariespinoteau

View GitHub Profile
@ariespinoteau
ariespinoteau / publicip.py
Last active November 11, 2019 09:09
Obtain public IP #server-side
# Obtain public IP
from requests import get
ip = get('https://api.ipify.org').text
print 'My public IP address is:', ip
@ariespinoteau
ariespinoteau / ntfs-filenames.txt
Last active November 8, 2019 09:39
Invalid characters for Windows filenames #ntfs #windows #shell
Information from https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx :
Use any character in the current code page for a name, including Unicode
characters and characters in the extended character set (128–255), except
for the following:
- The following reserved characters:
< (less than)
> (greater than)
@ariespinoteau
ariespinoteau / clean_files_for_windows.sh
Last active November 13, 2019 10:58
Clean files for windows (remove illegal characters) #shell #ntfs
# Remove illegal character for windows files
# <>:"/\|?*
#
# / is being ignored as it is tricky to rename this character
#
# -E option is added to sed command in order to work on OSX
#
# First rename files

Keybase proof

I hereby claim:

  • I am ariespinoteau on github.
  • I am w3lkior (https://keybase.io/w3lkior) on keybase.
  • I have a public key ASB0bjBmi4UgYA2d1FzkTx26gdlxnWpxuShghTJ9O5lHXQo

To claim this, I am signing this object:

@ariespinoteau
ariespinoteau / pagebreak.md
Created July 27, 2020 15:02
Pagebreak #markdown #pdf
We couldn’t find that file to show.