Skip to content

Instantly share code, notes, and snippets.

@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

@kmckelvin
kmckelvin / README.md
Created November 11, 2012 17:21
Converts OpenSong song files to OnSong format

Usage

Pretty easy to use - just make sure that Ruby is installed, then run this:

ruby opensong_to_onsong.rb ./path_to_opensong_file.xml > ./export_filename.txt

It just outputs straight to STDIO.

-- vim: tabstop=2 shiftwidth=2 expandtab
-- We almost always start by importing the wezterm module
local wezterm = require 'wezterm'
-- Define a lua table to hold _our_ module's functions
local module = {}
-- Returns a bool based on whether the host operating system's
-- appearance is light or dark.
function module.is_dark()
@endersonmaia
endersonmaia / .tmux.conf
Last active January 1, 2025 18:39 — forked from v-yarotsky/.tmux.conf
Mac OS X tmux config
### INSTALLATION NOTES ###
# 1. Install Homebrew (https://github.com/mxcl/homebrew)
# 2. brew install zsh
# 3. Install OhMyZsh (https://github.com/robbyrussell/oh-my-zsh)
# 4. brew install reattach-to-user-namespace --wrap-pbcopy-pbpaste && brew link reattach-to-user-namespace
# 5. Install iTerm2
# 6. In iTerm2 preferences for your profile set:
# Character Encoding: Unicode (UTF-8)
# Report Terminal Type: xterm-256color
#