Skip to content

Instantly share code, notes, and snippets.

@nikolak
nikolak / printer-prusa-mk3s-2021.cfg
Created July 23, 2021 18:03
Klipper MK3S/+ Config including optional Bondtech Extruder, Bear Extruder, etc.
# This file contains pin mappings and reasonable defaults for Prusa i3 MK3S
# printers. It will work with MK3 (non-S) by selecting the alternative filament
# sensor. References to common community mods are included as well.
#
# Note: The Einsy boards sold by Prusa have defective firmware on the
# usb-to-serial chip that makes the boards unusable with Klipper through USB.
# While flashing Klipper firmware must be done over USB, the board can be used
# via serial with no additional modification.
#
# To use this config, the firmware should be compiled for the AVR atmega2560.
@rw3iss
rw3iss / tmux.sh
Last active October 5, 2023 06:29
tmux.sh
#!/bin/sh
tmux new-session -d
tmux split-window -h
tmux select-pane -t 0
dir=$(PWD)
tmux send-keys -t 0 "cd client" Enter
tmux send-keys -t 0 "npm run dev" Enter
@paztek
paztek / app.module.ts
Created July 18, 2020 15:50
nestjs-http-service-example-1
import { Module } from '@nestjs/common';
import { HttpModule } from './http/http.module';
import { FooModule } from './foo/foo.module';
@Module({
imports: [
HttpModule,
FooModule, // <- we'll make use of the "augmented" HttpService in this module
],
@tomasbasham
tomasbasham / install_tmux_osx_no_brew
Last active November 7, 2024 22:28 — forked from Fi5t/install_tmux_osx_no_brew
Install tmux on OSX WITHOUT brew
# Create a directory
mkdir ~/tmux-install
cd ~/tmux-install
# Get the files
curl -OL https://www.openssl.org/source/openssl-1.0.2l.tar.gz
curl -OL https://github.com/tmux/tmux/releases/download/2.3/tmux-2.3.tar.gz
curl -OL https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz
# Extract them
"""
#python 2.x
"""
import numpy as np
import math
import matplotlib.pyplot as plt
class Point:
@pahud
pahud / delete_all_awslogs.sh.md
Last active October 18, 2023 09:13
delete all aws log groups

specify the region

export AWS_DEFAULT_REGION=ap-northeast-1
aws logs describe-log-groups --query 'logGroups[*].logGroupName' --output table | \
awk '{print $2}' | grep -v ^$ | while read x; do  echo "deleting $x" ; aws logs delete-log-group --log-group-name $x; done

only delete loggroup name starting with /aws/lambda

@peduarte
peduarte / esnextbin.md
Last active February 18, 2021 21:35
Vanilla Throttle
@peduarte
peduarte / esnextbin.md
Last active August 25, 2022 14:55
Vanilla Debounce
@clhenrick
clhenrick / README.md
Last active September 25, 2024 08:26
PostgreSQL & PostGIS cheatsheet (a work in progress)
@mitchkramez
mitchkramez / gist:9144426
Created February 21, 2014 22:01
SublimeLinter - PHPLint Configuration
{
"user": {
"debug": true,
"delay": 1,
"error_color": "D02000",
"gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme",
"gutter_theme_excludes": [],
"lint_mode": "background",
"linters": {
"php": {