Skip to content

Instantly share code, notes, and snippets.

View iGusev's full-sized avatar
🎯
Focusing

Ilya Gusev iGusev

🎯
Focusing
  • k
  • Russia, Kazan
View GitHub Profile
@bacarini
bacarini / n8n-deployment.yml
Last active July 5, 2024 03:45
N8N - Kubernetes complete configuration
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: n8n-deployment
namespace: standard
labels: &labels
app: n8n
component: deployment
spec:
@jdbrice
jdbrice / md-cal.sh
Last active October 8, 2024 11:49
Generate markdown table calendar. Use wiki links to individual days
# Author: Daniel Brandenburg
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@matthewpalmer
matthewpalmer / pod.yaml
Created July 21, 2018 04:13
kubernetes nginx php-fpm pod
# Create a pod containing the PHP-FPM application (my-php-app)
# and nginx, each mounting the `shared-files` volume to their
# respective /var/www/html directories.
kind: Pod
apiVersion: v1
metadata:
name: phpfpm-nginx-example
spec:
volumes:
object icm {
// Types
type Player = Int
type Chips = Double
type Stacks = Map[Player, Chips]
type Rank = Int
type Money = Double
@mkusher
mkusher / Getstarted.md
Last active November 6, 2022 09:50
Лонгрид для новичков чата php

Введение

Этот текст о том, с чего начать прежде чем писать в https://telegram.me/prophp7

Правила

  1. Тема чата - php и связанное с ним. Оффтоп не приветствуется
  2. Общение стикерами оставьте для флудилок
@irazasyed
irazasyed / weight-utility.php
Created January 8, 2016 09:21
PHP: Utility function for getting random values with weighting.
<?php
/**
* getRandomWeightedElement()
* Utility function for getting random values with weighting.
* Pass in an associative array, such as array('A'=>5, 'B'=>45, 'C'=>50)
* An array like this means that "A" has a 5% chance of being selected, "B" 45%, and "C" 50%.
* The return value is the array key, A, B, or C in this case. Note that the values assigned
* do not have to be percentages. The values are simply relative to each other. If one value
* weight was 2, and the other weight of 1, the value with the weight of 2 has about a 66%
* chance of being selected. Also note that weights should be integers.
@icyz
icyz / select2-zurbfoundation5.css
Created December 17, 2015 17:57
Select2 4.X for Zurb Foundation 5
/*
15-12-2015
@twitter: andreamariani2k
*/
.select2-container {
box-sizing: border-box;
display: inline-block;
margin: 0;
position: relative;
with table_stats as (
select psut.relname,
psut.n_live_tup,
1.0 * psut.idx_scan / greatest(1, psut.seq_scan + psut.idx_scan) as index_use_ratio
from pg_stat_user_tables psut
order by psut.n_live_tup desc
),
table_io as (
select psiut.relname,
sum(psiut.heap_blks_read) as table_page_read,
@adambullmer
adambullmer / README.md
Last active March 16, 2023 15:12
Slack Theme - Monokai

Customize Slack Theme

  1. Open Slack Preferences
  2. Select Sidebar Themes
  3. Click the link customize your theme and share it with others
  4. In the text field below the color pickers, paste this code
#272822,#383933,#66C9EF,#F8F8F2,#75715E,#C1C1C1,#A6E22E,#F92672