Skip to content

Instantly share code, notes, and snippets.

View Rastopyr's full-sized avatar
🎯
Focusing

Rastopyr

🎯
Focusing
  • Kyiv
View GitHub Profile
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active July 22, 2024 17:28
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@tbrianjones
tbrianjones / free_email_provider_domains.txt
Last active July 8, 2024 00:56
A list of free email provider domains. Some of these are probably not around anymore. I've combined a dozen lists from around the web. Current "major providers" should all be in here as of the date this is created.
1033edge.com
11mail.com
123.com
123box.net
123india.com
123mail.cl
123qwe.co.uk
126.com
150ml.com
15meg4free.com
@pauloricardomg
pauloricardomg / cors.nginxconf
Last active March 8, 2024 18:31
Nginx configuration for CORS-enabled HTTPS proxy with origin white-list defined by a simple regex
#
# Acts as a nginx HTTPS proxy server
# enabling CORS only to domains matched by regex
# /https?://.*\.mckinsey\.com(:[0-9]+)?)/
#
# Based on:
# * http://blog.themillhousegroup.com/2013/05/nginx-as-cors-enabled-https-proxy.html
# * http://enable-cors.org/server_nginx.html
#
server {
@mathisonian
mathisonian / index.js
Last active July 25, 2023 21:42
postgres full text search in sequelize.js. see this blog post for more information http://www.mathisonian.com/weblog/postgres-full-text-search-with-sequelizejs
var Sequelize = require('sequelize');
module.exports = function(config) {
var models = {};
sequelize = new Sequelize(config.database, config.username, config.password, config.options);
// Bootstrap models
fs.readdirSync(__dirname).forEach(function (file) {
@pmeinhardt
pmeinhardt / notes.md
Last active November 5, 2015 21:03
Om, React and ClojureScript
@staltz
staltz / introrx.md
Last active July 22, 2024 09:31
The introduction to Reactive Programming you've been missing
@ericelliott
ericelliott / essential-javascript-links.md
Last active July 18, 2024 15:03
Essential JavaScript Links
@scttnlsn
scttnlsn / core.cljs
Last active July 2, 2016 07:36
Om/Secretary nested routing
(ns nested-routing.core
(:require-macros [om.core :as om]
[secretary.core :refer [defroute]])
(:require [om.dom :as dom]
[om.core :as om]
[secretary.core :as secretary]
[goog.events :as events]
[goog.history.EventType :as EventType])
(:import goog.History))
@RReverser
RReverser / better-console-log.js
Last active May 9, 2019 21:07
Better console.log in Node
// UPD:
// Now available as npm module!
// Check out https://github.com/RReverser/better-log for details.
console.log = (function (log, inspect) {
return function () {
return log.apply(this, Array.prototype.map.call(arguments, function (arg) {
return inspect(arg, { depth: 1, colors: true });
}));
};
@listochkin
listochkin / перспективы-роста.md
Created August 12, 2015 14:58
Перспективы Роста

On 8/12/15, at 5:18 PM, XXX wrote:

Коллеги вопрос. Вот я тут у нас повсюду прикручиваю Nagios. Проблема в том что машин не мало, а ставлю я Nagios 4 который без deb пакетов ставится, из сорсов, и у которого половина плагинов ставится wget'ом perl-скриптов с github'а, плюс еще нужно малесь конфиги подправить чтобы nrpe эти плагины подцепил. И КАК БЛЯДЬ ЭТО АДМИНИТЬ???! :) В смысле тут же даже Ansible ничем не поможет имхо. Как быть то?

On 8/12/15, at 5:18 PM, YYY wrote:

перспективы роста есть?

On 8/12/15, at 5:18 PM, XXX wrote:

меня или числа машин? )))

On 8/12/15, at 5:19 PM, YYY wrote: