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
@-moz-document domain("bambook.kg") { | |
.head, | |
.body { | |
padding: 8px !important; | |
} | |
.close { | |
height: 30px !important; | |
} | |
.uk-button.uk-button-default.btn-green { | |
padding: 3px !important; |
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
WIDTH = 80 | |
HEIGHT = 25 | |
def show_map(map) | |
map.each do |row| | |
row.each do |cell| | |
print cell | |
end | |
puts '' | |
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
# Dockerfile - Development environment | |
# Alpine linux tiny image | |
FROM ruby:2.7-alpine | |
MAINTAINER Ghost | |
ENV INSTALL_PATH /opt/app | |
RUN mkdir -p $INSTALL_PATH | |
#nokogiri requirements | |
RUN apk add --no-cache --update \ |
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
from random import randint | |
MAP_WIDTH = 80 | |
MAP_HEIGH = 24 | |
def show_map(map): | |
for w in range(len(map)): | |
for h in range(len(map[0])): | |
print("{}".format(map[w][h]), end='') | |
print('') |
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
#include "microLiquidCrystal_I2C.h" | |
#include "GyverBME280.h" | |
#include <DHT.h> | |
#define ITERATION_MOD 60 // iterations to skip between measurements storing | |
#define HISTORY_SETS 2 | |
#define HISTORY_SIZE 20 | |
DHT dht22(2, DHT22); | |
DHT dht11(3, DHT11); |
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/bash | |
# Installation | |
# | |
# from `ubuntu` user: | |
# | |
# * install Zstandard compression utility (near 3 times faster than gzip): `sudo apt install zstd` | |
# | |
# * install `awscli`: pip install awscli --upgrade --user | |
# |
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
// ==UserScript== | |
// @name UpWork additional calculations | |
// @namespace Ghost | |
// @include https://www.upwork.com/reports/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
var myRate = 22; | |
var wFee100 = 4.95; |
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/bash | |
lockfile=/tmp/fastcgi_locked | |
start() { | |
for user in `ls /var/cpanel/users`; do | |
if [ -e /home/${user}/public_html/php-fcgi.sock ]; then | |
echo "Socket exist, exiting!" | |
exit 0 | |
fi |