Skip to content

Instantly share code, notes, and snippets.

View ryjen's full-sized avatar
🙃

RJ ryjen

🙃
View GitHub Profile
@grdscrc
grdscrc / jazz.sh
Last active November 17, 2023 00:32
jazz : list paths from a json input, fuzzy search a node, get its content ; useful with large payloads
#!/usr/bin/env bash
# Tested with jq 1.6 & fzf 0.42.0
# Inspired by https://github.com/reegnz/jq-zsh-plugin
# Call with `jazz <big_file_with_many_paths>.json` or `<command producing a valid json> | jazz`
# End command with `... | pbcopy` or `... > output.json` to save selection
input=$1
TMP_DIR=$(mktemp -d /tmp/jazz_XXX)
chmod 700 "$TMP_DIR"
@bmc08gt
bmc08gt / Chips.kt
Last active December 15, 2023 03:39
Jetpack Compose Chips
package com.planoly.ui.compose.components
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.padding
import androidx.compose.material.Icon
import androidx.compose.material.IconButton
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Surface
import androidx.compose.material.Text

The Freenode resignation FAQ, or: "what the fuck is going on?"

IMPORTANT NOTE:

It's come to my attention that some people have been spamming issue trackers with a link to this gist. While it's a good idea to inform people of the situation in principle, please do not do this. By all means spread the word in the communities that you are a part of, after verifying that they are not aware yet, but unsolicited spam is not helpful. It will just frustrate people.

Update 3 (May 24, 2021)

A number of things have happened since the last update.

#!/bin/bash
###
### my-script — does one thing well
###
### Usage:
### my-script <input> <output>
###
### Options:
### <input> Input file to read.
### <output> Output file to write. Use '-' for stdout.
@rajagp
rajagp / custom_couchbase_dev_image.md
Last active October 25, 2022 09:47
Steps to create a custom Couchbase Server Docker Image for development

Purpose

Follow the steps below if you are interested in creating your own custom configurable Couchbase docker image. You will start off with the official Couchbase Enterprise docker image that is available on Docker Hub and use the Couchbase CLI and REST interface to create a custom configurable image.

Credits

This approach inspired by the tutorial. We essentially built a custom docker image from the base Coucbase server image that is configured for our development needs!

Steps

  • Create a new file named DockerFile and open it using an editor of your choice
  • Now add the following lines to the DockerFile.
@cocoalabs
cocoalabs / gist:2fb7dc2199b0d4bf160364b8e557eb66
Created August 15, 2016 21:50
Color Terminal for bash/zsh etc..
man() {
env \
LESS_TERMCAP_mb=$(printf "\e[1;31m") \
LESS_TERMCAP_md=$(printf "\e[1;31m") \
LESS_TERMCAP_me=$(printf "\e[0m") \
LESS_TERMCAP_se=$(printf "\e[0m") \
LESS_TERMCAP_so=$(printf "\e[1;44;33m") \
LESS_TERMCAP_ue=$(printf "\e[0m") \
LESS_TERMCAP_us=$(printf "\e[1;32m") \
man "$@"
1. `Dockerfile` with content:
```
FROM jenkinsci/jenkins:2.9
```
1. Create `jenkins` app:
```
$ dokku apps:create jenkins
-----> Application name is jenkins
Creating jenkins... done
```
@tsiege
tsiege / The Technical Interview Cheat Sheet.md
Last active May 6, 2024 02:17
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\

@mudpile45
mudpile45 / howto.md
Created October 18, 2012 08:59 — forked from bsodmike/howto.md
HOWTO: Setup mail forwarding with Sendmail in Ubuntu 10.04 LTS

Domain to domain mail forwarding

This guide combined with the info here allows you do the following:

  • Forward all mails from one domain to another (via catch-all addresses)
  • Set up a catch-all email address (just enter a @ with no user in front of it in the virtuserstable)
  • set up distribution lists etc. (use commas)

Why would you want this? Well, for me I own some domain names and I like to use gmail to read my mail. One use case is that we have a small organization that I've already set up a google for domains account with, but the organization has multiple domains that all redirect to our website. I wanted our mail to also all redirect to the same mail, so I created MX records for all the domains that are supposed to redirect and pointed them at my VPS and on my VPS I set up mail relaying to my original google for domains account, with entries for each user. This way, if I had my google domains running at myemail@mygoogledomain.com, but som