Skip to content

Instantly share code, notes, and snippets.

View Alexandro1112's full-sized avatar
🏠
Working from home

Alexandro1112

🏠
Working from home
View GitHub Profile
@MohitDabas
MohitDabas / FindMacWifiPass.py
Last active March 9, 2023 08:54
Finding Macosx wifi password through python api (Requires root privilege)
import contextlib
import ctypes
import struct
from ctypes import c_void_p, c_uint16, c_uint32, c_int32, c_char_p, POINTER
from keyring.py27compat import string_types, add_metaclass
sec_keychain_ref = sec_keychain_item_ref = c_void_p
OS_status = c_int32
@eigenhombre
eigenhombre / README.md
Created August 5, 2018 12:38
Exporting your Mac addressbook to JSON using Python

You should pip install pyobjc first.

@pudquick
pudquick / timemachine.py
Last active March 9, 2023 20:28
A lot of fun TimeMachine details can be reached with pyobjc on OS X
# Backup destination details are stored in: /Library/Preferences/com.apple.TimeMachine.plist
# 10.11
from Foundation import NSBundle
TMMenu = NSBundle.bundleWithPath_('/System/Library/CoreServices/Menu Extras/TimeMachine.menu')
AppleTMSettings = TMMenu.classNamed_('AppleTMSettings')
settings = AppleTMSettings.sharedSettings()
# @interface AppleTMSettings : NSObject
altgraph (0.10.2)
bdist-mpkg (0.5.0)
bonjour-py (0.3)
boto (2.38.0)
bz2file (0.98)
Cython (0.23.1)
gensim (0.10.1)
macholib (1.5.1)
matplotlib (1.3.1)
mecab-python (0.996)
@mculp
mculp / voices.txt
Created December 3, 2014 00:14
List of voices available by the `say` command on OS X
Agnes en_US # Isn't it nice to have a computer that will talk to you?
Albert en_US # I have a frog in my throat. No, I mean a real frog!
Alex en_US # Most people recognize me by my voice.
Alice it_IT # Salve, mi chiamo Alice e sono una voce italiana.
Alva sv_SE # Hej, jag heter Alva. Jag är en svensk röst.
Amelie fr_CA # Bonjour, je m’appelle Amelie. Je suis une voix canadienne.
Anna de_DE # Hallo, ich heiße Anna und ich bin eine deutsche Stimme.
Bad News en_US # The light you see at the end of the tunnel is the headlamp of a fast approaching train.
Bahh en_US # Do not pull the wool over my eyes.
Bells en_US # Time flies when you are having fun.
"""
En una ventana muestra 7 vistas seleccionadas desde una barra de herramientas
"""
from Foundation import *
from AppKit import *
import objc
class DashboardController (NSViewController):
@lancebecker
lancebecker / gist:652835
Created October 29, 2010 03:22
Setting an NSTextField text color to black
-(void) styleTextField {
[textField setTextColor:[NSColor blackColor]];
}