GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — CopilotForXcode/Script/MakeDSStore.py at main · Domphe/CopilotForXcode

Expand file tree

/

MakeDSStore.py

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
56 lines (50 loc) · 1.73 KB
/

MakeDSStore.py

Copy path

File metadata and controls

56 lines (50 loc) · 1.73 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Run MakeDSStore.sh rather than use this script directly.
import struct
from ds_store import DSStore
from mac_alias import Alias
# See https://github.com/gitpan/Mac-Finder-DSStore/blob/master/DSStoreFormat.pod
with DSStore.open('/Volumes/GitHub Copilot for Xcode/DSStore.template', 'w+') as ds:
# finder window coordinates (top, left, bottom, right)
# icnv indicates icon view, followed by four unknown bytes
fwi0 = struct.pack('>H', 100) + \
struct.pack('>H', 200) + \
struct.pack('>H', 400) + \
struct.pack('>H', 600) + \
bytes('icnv', 'ascii') + bytearray([0] * 4)
ds['.']['fwi0'] = ('blob', fwi0)
# location of the app icon
ds['GitHub Copilot for Xcode.app']['Iloc'] = (100, 150)
# location of the Applications folder
ds['Applications']['Iloc'] = (300, 150)
# hidden files outside the window
ds['.DS_Store']['Iloc'] = (650, 175)
ds['.background']['Iloc'] = (700, 175)
# a plist with settings for the icon view
icvp = {
'viewOptionsVersion': 1,
'gridOffsetX': 0,
'gridOffsetY': 0,
'gridSpacing': 100,
'iconSize': 128,
'textSize': 12,
'showIconPreview': True,
'showItemInfo': False,
'labelOnBottom': True,
'scrollPositionX': 0,
'scrollPositionY': 0,
'arrangeBy': 'none',
'backgroundColorRed': 1.0,
'backgroundColorGreen': 1.0,
'backgroundColorBlue': 1.0,
'backgroundType': 2,
'backgroundImageAlias': Alias.for_file('/Volumes/GitHub Copilot for Xcode/.background/background.png').to_bytes(),
}
ds['.']['icvp'] = icvp
# window sidebar width
ds['.']['fwsw'] = ('long', 0)
# window height
ds['.']['fwvh'] = ('shor', 300)
# unknown meaning
ds['.']['ICVO'] = ('bool', True)
# text size
ds['.']['icvt'] = ('shor', 12)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.