Skip to content

Instantly share code, notes, and snippets.

@x000zh
x000zh / copy-fullpath.py
Created December 26, 2023 16:22
extension for nautilus copy full path
# example of create extension for nautilus
# according to https://gnome.pages.gitlab.gnome.org/nautilus-python/nautilus-python-migrating-to-4.html
# when writing a extension may do sth for compability
# place the file to ~/.local/share/nautilus-python/extensions/copy-full.py should work.
# tested on ubuntu 22.04
# deps:
# `apt install python3-nautilus`
import os
import logging
from gi.repository import Nautilus, GObject, Gtk, Gdk
@x000zh
x000zh / open-terminator.py
Last active September 9, 2023 16:31
example of create extension for nautilus
# example of create extension for nautilus
# according to https://gnome.pages.gitlab.gnome.org/nautilus-python/nautilus-python-migrating-to-4.html
# when writing a extension may do sth for compability
# place the file to ~/.local/share/nautilus-python/extensions/open-terminal.py should work.
# tested on ubuntu 22.04
# deps:
# `apt install python3-nautilus`
import os
from gi.repository import Nautilus, GObject
@x000zh
x000zh / send_example.php
Created June 6, 2017 15:09
AWS SNSClient Send SMS
<?php
$sns = App::make('aws')->createClient('Sns');
$result = $sns->publish(array(
'MessageAttributes' => array(
'AWS.SNS.SMS.SenderID' => array(
'DataType' => 'String',
'StringValue' => 'GetJob',
),
'AWS.SNS.SMS.MaxPrice' => array(