Skip to content

Instantly share code, notes, and snippets.

@repodevs
repodevs / macOS.sh
Created December 12, 2018 14:56
gpg: signing failed: Inappropriate ioctl for device macOS
❱ git config user.signingKey 38AF394C
❱ git config commit.gpgSign true
❱ echo "test" | gpg --clearsign
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
test
gpg: signing failed: Inappropriate ioctl for device
gpg: [stdin]: clear-sign failed: Inappropriate ioctl for device
@guillaumevincent
guillaumevincent / README.md
Last active April 28, 2024 00:51
Windows Service with Python 3.5 and pyinstaller
@lloeki
lloeki / gist:62239da19ec25f90f215
Created December 16, 2014 16:15
open-vm-tools with clipboard and drag and drop on Ubuntu 14.04 Trusty Tahr
# You should be using open-vm-tools instead of vmware tools, because package manager.
# Also I hate third parties that write out of /opt and /usr/local.
# open-vm-tools-desktop is badly packaged though, here are the missing links:
sudo apt-get install open-vm-tools open-vm-tools-desktop
# Reboot, and resize works, but no DnD nor clipboard
sudo mkdir /var/run/vmblock-fuse
sudo su -l -c "vmware-vmblock-fuse -o subtype=vmware-vmblock,default_permissions,allow_other /var/run/vmblock-fuse"
# Now we have /run/vmblock-fuse populated.
# Adding an upstart rule in /etc/init is left as an exercise to the reader.
@laohyx
laohyx / LaoRenren.py
Created January 23, 2012 04:42
LaoRenren - Laohyx Renren simulation processor in Python
#!/usr/bin/python
# -*- encoding: utf-8 -*-
'''
LaoRenren 人人网模拟登录类 v0.1 2012/1/22 除夕夜
以LaoWeb.py封闭的人人网模拟登录、发状态、传照片等类。
支持保存状态,避免验证码
那些GPL就不废话了,转载修改请注明原作者。
laohyx@163.com
By Laohyx.