Skip to content

Instantly share code, notes, and snippets.

@dglewis
dglewis / check_contributions.sh
Last active January 1, 2025 19:09
check_contributions.sh + config.sh: Scans local Git repos for commits matching author/repo patterns. See [Usage Instructions](usage.md) for details.
#!/usr/bin/env bash
# Must set variables:
# REPO_DIR
# AUTHOR_PATTERN
# REPO_PATTERN
source ./config.sh
cd "$REPO_DIR" || exit
@ohjho
ohjho / remove_ipynb_checkpoints.sh
Last active January 1, 2025 19:09
How to remove .ipynb_checkpoints from Git Repo
# to remove the file on git without deleting from local
# use -> git rm --cached
find . -name .ipynb_checkpoints -print0 | xargs -0 git rm -r --ignore-unmatch
echo .ipynb_checkpoints >> .gitignore
@swarminglogic
swarminglogic / watchfile.sh
Last active January 1, 2025 19:07
watchfile - monitor file(s) and execute a command when files are changed
#!/bin/bash
version=1.0.1
versionDate="2014-02-14"
function showHelp() {
echo "watchfile - monitor file(s)/command and perform action when changed
Possible ways of usage
----------------------------------------
@consti
consti / hosts
Last active January 1, 2025 19:04
/etc/hosts to block shock sites etc.
# This hosts file is brought to you by Dan Pollock and can be found at
# http://someonewhocares.org/hosts/
# You are free to copy and distribute this file for non-commercial uses,
# as long the original URL and attribution is included.
#<localhost>
127.0.0.1 localhost
127.0.0.1 localhost.localdomain
255.255.255.255 broadcasthost
::1 localhost
@LukeMathWalker
LukeMathWalker / audit.yml
Last active January 1, 2025 19:03
GitHub Actions - Rust setup
name: Security audit
on:
schedule:
- cron: '0 0 * * *'
push:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
jobs:
security_audit:
@Vigrond
Vigrond / jellyfinchromecast.md
Last active January 1, 2025 19:02
Jellyfin with Chromecast
@laurivosandi
laurivosandi / uwebsockets.py
Created August 18, 2017 10:53
Websockets client for MicroPython
"""
Websockets client for micropython
Based very heavily on
https://github.com/aaugustin/websockets/blob/master/websockets/client.py
"""
import ubinascii as binascii
import urandom as random
import ure as re
@egmontkob
egmontkob / Hyperlinks_in_Terminal_Emulators.md
Last active January 1, 2025 18:57
Hyperlinks in Terminal Emulators
@imtaehyun
imtaehyun / technical-analysis-indicators-without-talib-code.py
Last active January 1, 2025 18:56
Technical analysis Indicators without Talib (code)
# https://www.quantopian.com/posts/technical-analysis-indicators-without-talib-code
import numpy
import pandas as pd
import math as m
#Moving Average
def MA(df, n):
MA = pd.Series(pd.rolling_mean(df['Close'], n), name = 'MA_' + str(n))
df = df.join(MA)
@Eduardts
Eduardts / filename.md
Created January 1, 2025 18:54
my first gist

hey, this is my first gist