$mod
refers to the modifier key (alt by default)
startx i3
start i3 from command line$mod+<Enter>
open a terminal$mod+d
open dmenu (text based program launcher)$mod+r
resize mode ( or to leave resize mode)$mod+shift+e
exit i3
1. Dump the data only sql to file | |
$ pg_dump --data-only --inserts YOUR_DB_NAME > dump.sql | |
2. scp to local | |
3. Remove the SET statements at the top | |
such as: | |
SET statement_timeout = 0; | |
SET client_encoding = 'SQL_ASCII'; | |
4. Remove the setval sequence queries |
$gtk.reset | |
class TetrisGame | |
# This is just to get GTK to not complain in the console for now. | |
def serialize ; { args: '' } ; end | |
def inspect ; serialize.to_s ; end | |
def to_s ; serialize.to_s ; end | |
def render_cube_pixelpos x, y, r, g, b, a=255 | |
@args.outputs.solids << [ x, y, @boxsize, @boxsize, r, g, b, a ] |
$gtk.reset | |
class TetrisGame | |
def initialize args | |
@args = args | |
@next_piece = nil | |
@next_move = 30 | |
@score = 0 | |
@gameover = false | |
@grid_w = 10 |
# EditorConfig helps developers define and maintain consistent | |
# coding styles between different editors and IDEs | |
# editorconfig.org | |
root = true | |
[*] | |
end_of_line = lf | |
charset = utf-8 |
# frozen_string_literal: true | |
require 'rubygems' | |
require 'aws-sdk' | |
module S3 | |
# Upload directory recursively to S3 | |
class DirectoryUpload | |
attr_reader :folder_path, :bucket, :include_folder | |
attr_accessor :files |
require: rubocop-rails | |
# Commonly used screens these days easily fit more than 80 characters. | |
Layout/LineLength: | |
Max: 120 | |
# Too short methods lead to extraction of single-use methods, which can make | |
# the code easier to read (by naming things), but can also clutter the class | |
Metrics/MethodLength: | |
Max: 20 |