Used nodes:
Linux raspberrypi 4.9.41-v7+ #1023 SMP Tue Aug 8 16:00:15 BST 2017 armv7l GNU/Linux
Linux localhost.localdomain 4.14.5-200.fc26.x86_64 #1 SMP Mon Dec 11 16:29:08 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
1 #! /bin/bash | |
2 #set -x | |
3 | |
4 if [[ $1 == 'R' ]]; then | |
5 wmctrl -s $(wmctrl -d | grep \* | awk '{print $1+1}') | |
6 fi | |
7 if [[ $1 == 'L' ]]; then | |
8 CURRENT=$(wmctrl -d | grep \* | awk '{print $1}') | |
9 if [[ $CURRENT == 0 ]]; then | |
10 wmctrl -s 0 |
Open a Terminal and try the next commands : | |
dbus-send --session --dest=org.pantheon.gala --print-reply /org/pantheon/gala org.pantheon.gala.PerformAction int32:1 | |
Luna : Workspace Overview ( keep Enter pressed ), Freya : Multitasking View | |
dbus-send --session --dest=org.pantheon.gala --print-reply /org/pantheon/gala org.pantheon.gala.PerformAction int32:2 | |
Terminal maximizes | |
dbus-send --session --dest=org.pantheon.gala --print-reply /org/pantheon/gala org.pantheon.gala.PerformAction int32:3 | |
Terminal minimizes |
#!/bin/bash | |
get_window_paths() | |
{ | |
qdbus org.ayatana.bamf /org/ayatana/bamf/matcher org.ayatana.bamf.matcher.WindowPaths | |
} | |
get_running_apps() | |
{ | |
qdbus org.ayatana.bamf /org/ayatana/bamf/matcher org.ayatana.bamf.matcher.RunningApplications |
# ./lib/tasks/db.rake | |
require 'active_record' | |
@logger = Logger.new(STDOUT) | |
namespace :db do | |
desc "Dumps the database to tmp/dbname.dump" | |
task mysql_dump: [:environment, :load_config] do | |
environment = Rails.env | |
configuration = ActiveRecord::Base.configurations[environment] |
Here's how I set up a tiny Nginx/Rails server that uses HTTPS via a Let's Encrypt issued certificate.
I use the smallest DigitalOcean droplet (512 MB) here, which is built from the "Ubuntu Ruby on Rails on 14.04" image provided by them.
更新: | 2022-03-18 |
---|---|
作者: | @voluntas |
バージョン: | 2022.1 |
URL: | http://voluntas.github.io/ |
When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.
Please note we have a code of conduct, please follow it in all your interactions with the project.
# Geometory型の設定 | |
from sqlalchemy import func | |
from sqlalchemy.types import UserDefinedType | |
class Geometory(UserDefinedType): | |
def get_col_spec(self): | |
# カラムの型 | |
return "GEOMETRY" | |
def bind_expression(self, bindvalue): |