Skip to content

Instantly share code, notes, and snippets.

@CodeMonkeyG
CodeMonkeyG / showScreenSets.js
Last active May 3, 2024 08:13
Gigya ShowScreenSet function cal for BeachBody
function resizeScreenSetFields(){
$('.gigya-screen input').parents('.gigya-layout-cell').each(function(){
if(parseInt($('.gigya-screen:visible').width()) == 375){
$(this).css({
'min-width' : (parseInt($('.gigya-screen:visible').width()) - 40) + 'px',
'width' : (parseInt($('.gigya-screen:visible').width()) - 40) + 'px'
})
} else {
$(this).css({
'min-width' : '',

Application Observability in Kubernetes with Datadog APM and Logging - A simple and actionable example

Last year I shared an example on how to realize application tracing in Kuberntes with Istio and Jaeger. After that, the industry has made some substantial headway on this front and we are seeing more vendor support as a result. At Buffer, since we primarily use Datadog for Kubernetes and application monitoring, it's only fitting to complete the circle with Datadog APM and Logging. I had a chance to create a small example for the team and would very much love to share with the community.

Okay, without further ado, let's dive in!

Installing Datadog agent

First thing first, in order to collect metrics and logs from Kubernetes an Datadog agent has to be installed in the cluster. The Datadog team ma

@gagarine
gagarine / fish_install.md
Last active May 3, 2024 08:11
Install fish shell on macOS Mojave with brew

Installing Fish shell on MacOS (Intel and M1) using brew

Fish is a smart and user-friendly command line (like bash or zsh). This is how you can instal Fish on MacOS and make your default shell.

Note that you need the https://brew.sh/ package manager installed on your machine.

Install Fish

brew install fish

@andersevenrud
andersevenrud / alacritty-tmux-vim_truecolor.md
Last active May 3, 2024 08:11
True Color (24-bit) and italics with alacritty + tmux + vim (neovim)

True Color (24-bit) and italics with alacritty + tmux + vim (neovim)

This should make True Color (24-bit) and italics work in your tmux session and vim/neovim when using Alacritty (and should be compatible with any other terminal emulator, including Kitty).

Testing colors

Running this script should look the same in tmux as without.

curl -s https://gist.githubusercontent.com/lifepillar/09a44b8cf0f9397465614e622979107f/raw/24-bit-color.sh >24-bit-color.sh
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active May 3, 2024 08:08
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@oyyblin
oyyblin / .tmux.conf
Last active May 3, 2024 08:05 — forked from ivanalejandro0/.tmux.conf
Tmux configuration file with Powerline-like status bar, system clipboard integration and some other nice tweaks.
set -g mouse on
bind-key -n M-Left previous-window
bind-key -n M-Right next-window
bind -n C-k clear-history
set-option -g allow-rename off
#set -g pane-border-status top
#set -g pane-border-format "#{pane_current_path} - #{pane_current_command}"
@magnetikonline
magnetikonline / README.md
Last active May 3, 2024 08:08
Install VirtualBox 6.1/6.0/5.2/5.1 guest additions on Ubuntu server guest.

Install VirtualBox guest additions onto Ubuntu server guests

Have tested these steps successfully with Ubuntu guest of:

  • 22.04LTS
  • 18.04LTS
  • 16.04LTS

using VirtualBox editions of 6.1, 6.0, 5.2 and 5.1 as host.

@tanaikech
tanaikech / submit.md
Last active May 3, 2024 08:08
Inserting Animated GIFs over Cells on Google Sheets using Google Apps Script

Inserting Animated GIFs over Cells on Google Sheets using Google Apps Script

Overview

This script demonstrates how to insert an animated GIF over cells in a Google Sheet using Google Apps Script.

Description

I recently received a request to create a Google Apps Script for inserting animated GIFs into cells on a Google Sheet. I previously published a sample script on my blog on June 6, 2017. Ref In that script, the animation GIF was inserted using a public link. This new script leverages data URLs, which simplifies the process for using GIFs stored in Google Drive. Since this approach might be helpful to others, I'm sharing it here.

@theodorosploumis
theodorosploumis / Nework_throttling_profiles.md
Last active May 3, 2024 08:06
Web development - Custom network throttling profiles
Profile download (kb/s) upload (kb/s) latency (ms)
Native 0 0 0
GPRS 50 20 500
56K Dial-up 50 30 120
Mobile EDGE 240 200 840
2G Regular 250 50 300
2G Good 450 150 150
3G Slow 780 330 200
@hootlex
hootlex / laravellocal.md
Last active May 3, 2024 08:06
Run laravel project locally

##Windows users:

cmder will be refered as console

##Mac Os, Ubuntu and windows users continue here:

  • Create a database locally named homestead utf8_general_ci