- Open the config (probably
.config/alacritty/alacritty.yml
) - Comment or delete old
colors: ...
section - Copy given excerpt at the beginning or at the end of the config
- Uncomment one theme in the excerpt (
colors: *ABC
) and save the file - You should see the theme applied immediately
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$size = (1600 / 6) * 6 # 1600 is tablet height resolution | |
END { | |
draw 'green', 'green' | |
draw 'silver', 'silver' | |
draw 'gray', 'gray' | |
draw 'black', 'black' | |
draw 'navy', 'navy' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sinatra' | |
require 'pg' | |
require 'connection_pool' | |
require 'dotenv/load' | |
configure { | |
set :server, :puma | |
set :port, 3000 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/fish | |
set TOP1 'ruby -e "p :TOP1; loop { sleep 1 }"' | |
set TOP2 'ruby -e "p :TOP2; loop { sleep 1 }"' | |
set BOT1 'ruby -e "p :BOT1; loop { sleep 1 }"' | |
set BOT2 'ruby -e "p :BOT2; loop { sleep 1 }"' | |
tmux new-session -d | |
tmux send-keys $TOP1 ENTER | |
tmux split-window -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# D3 DEPS | |
# ------- | |
# | |
# Nice graph of d3 organization packages | |
# to help to start and to assist in reading the code. | |
# | |
# - outputs only packages from d3 organization excluding `IRRELEVANT` | |
# - arrows show packages dependencies | |
# - blue nodes are directly used by 'd3' package | |
# - adding names to `DONE` array marks packages with green color |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#EXTM3U | |
#EXTINF:-1,Groove Salad | |
http://ice2.somafm.com/groovesalad-128-aac | |
#EXTINF:-1,Drone Zone | |
http://ice2.somafm.com/dronezone-128-aac | |
#EXTINF:-1,Christmas Lounge | |
http://ice2.somafm.com/christmas-128-aac | |
#EXTINF:-1,Indie Pop Rocks! | |
http://ice2.somafm.com/indiepop-128-aac | |
#EXTINF:-1,Space Station Soma |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# NOTE: no optimisations | |
# | |
module Util | |
module_function | |
def group_by_sums_of_pairs array, sum = 5 | |
result = [] | |
array = array.clone | |
loop do | |
found = array.permutation(2).find { |a, b| a + b == sum } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# input/ directory - create a directory with your images | |
# output/ directory - create empty one for resulting files | |
task :default do | |
files = Dir['input/*'] | |
files.each { |x| | |
output = 'output/' + File.basename(x) | |
create_shadow x, output | |
} | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# remap wacom to preserve the ratio of drawings | |
def main | |
reset_to_defaults | |
my_custom_setup | |
# comment my setup and uncomment to try one of these: | |
# | |
# reduce_the_drawing_area_height | |
# reduce_the_screen_area_width |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xinput set-prop "Logitech Gaming Mouse G502" 148 3.000000, 0.000000, 0.000000, 0.000000, 3.000000, 0.000000, 0.000000, 0.000000, 1.000000 |
NewerOlder