Skip to content

Instantly share code, notes, and snippets.

View oxalorg's full-sized avatar
:shipit:
Always Be Coding

Mitesh oxalorg

:shipit:
Always Be Coding
View GitHub Profile
@Lamarcke
Lamarcke / lualine.lua
Last active March 16, 2024 22:50
Lualine config for LSP clients, formatters and linters
-- Returns a string with a list of attached LSP clients, including
-- formatters and linters from null-ls, nvim-lint and formatter.nvim
local function get_attached_clients()
local buf_clients = vim.lsp.get_active_clients({ bufnr = 0 })
if #buf_clients == 0 then
return "LSP Inactive"
end
local buf_ft = vim.bo.filetype
(ns poly
(:require
[clojure.string :as str]))
;; =====================================================
;; what is a good way to do polymorphism on an example like this:
;; =====================================================
(defn transform-messages [messages]
(map #(update % :text str/upper-case) messages))

Lambda Island Open Source is hiring remotely a part-time maintainer to help us manage our open source efforts. This includes over a dozen projects like the Kaocha test runner, deep-diff, Regal, lambdaisland/uri, and Glögi.

This is not about doing major feature work, instead it's about everything else, all the other things that go into running a successful open source project.

Note that this is in a sense a "public" position, you will be visible in the

@tony-caffe
tony-caffe / Contract Killer 3.md
Last active March 3, 2024 14:50 — forked from malarkey/Contract Killer 3.md
The latest version of Bytes Unlimited ‘Contract Killer’ for web professionals

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Revised by Bytes Unlimited : Feb 3rd 2020

@reborg
reborg / rich-already-answered-that.md
Last active May 8, 2024 14:20
A curated collection of answers that Rich gave throughout the history of Clojure

Rich Already Answered That!

A list of commonly asked questions, design decisions, reasons why Clojure is the way it is as they were answered directly by Rich (even when from many years ago, those answers are pretty much valid today!). Feel free to point friends and colleagues here next time they ask (again). Answers are pasted verbatim (I've made small adjustments for readibility, but never changed a sentence) from mailing lists, articles, chats.

How to use:

  • The link in the table of content jumps at the copy of the answer on this page.
  • The link on the answer itself points back at the original post.

Table of Content

@mwpastore
mwpastore / 00README.md
Last active April 18, 2024 06:21
Lightning Fast WordPress: Caddy+Varnish+PHP-FPM

README

This gist assumes you are migrating an existing site for www.example.com — ideally WordPress — to a new server — ideally Ubuntu Server 16.04 LTS — and wish to enable HTTP/2 (backwards compatibile with HTTP/1.1) with always-on HTTPS, caching, compression, and more. Although these instructions are geared towards WordPress, they should be trivially extensible to other PHP frameworks, other FastCGI backends, and even non-FastCGI backends (using proxy in lieu of fastcgi in the terminal Caddyfile stanza).

Quickstart: Use your own naked and canonical domain names instead of example.com and www.example.com and customize the Caddyfile and VCL provided in this gist to your preferences!

These instructions target Varnish Cache 4.1, PHP-FPM 7.0, and Caddy 0.10. (I'm using MariaDB 10.1 as well, but that's not relevant to this guide.)

@avinassh
avinassh / jerbs.md
Last active January 8, 2024 10:11
list of sites to search for developer jobs
@oxalorg
oxalorg / wikipedia-searcher-example-mithriljs.js
Last active June 15, 2016 20:29
My first simple web app using Mithril.js
// Find this on codepen http://codepen.io/miteshninja/full/gMMrmo/
// Code refactored by @barneycarroll
var app = {};
var api = "https://en.wikipedia.org/w/api.php?format=json&action=query&generator=search&gsrnamespace=0&gsrlimit=10&prop=pageimages|extracts&pilimit=max&exintro&explaintext&exsentences=1&exlimit=max&gsrsearch=";
var cb = '&callback=JSON_CALLBACK';
var wPage = "https://en.wikipedia.org/?curid=";
app.WikiPages = function (title) {
return m.request({
@zkendall
zkendall / ansible-dynamic-to-static.py
Last active October 9, 2018 17:23
Script to convert the output of Ansible's ec2 dynamic inventory to a flat static inventory.
#!/usr/bin/env python
'''
This script converts the output of Ansible's dynamic ec2.py to a flatly formmated static inventory file.
Before running this script run `python ./ec2.py --refresh-cache > ec2-dynamic.json`
See: http://docs.ansible.com/ansible/ec2_module.html
'''