Skip to content

Instantly share code, notes, and snippets.

View escapedcat's full-sized avatar

escapedcat escapedcat

View GitHub Profile
@cameronezell
cameronezell / lambda_function.py
Last active March 6, 2024 21:55
Bluesky Lambda
import json
import logging
import random
from datetime import datetime
import boto3
import urllib3
def get_app_password():
@stevecondylios
stevecondylios / resize-image-in-github-issue-github-flavored-markdown.md
Last active April 27, 2024 19:04
How to Resize an Image in a Github Issue (e.g. Github flavored Markdown)

How to Resize an Image in Github README.md (i.e. Github Flavored Markdown)

Percentage:

<img src="https://user-images.githubusercontent.com/16319829/81180309-2b51f000-8fee-11ea-8a78-ddfe8c3412a7.png" width=50% height=50%>

Pixels:

<img src="https://user-images.githubusercontent.com/16319829/81180309-2b51f000-8fee-11ea-8a78-ddfe8c3412a7.png" width="150" height="280">

@normandmickey
normandmickey / BTCPayServer-RaspiblitzV1.3-RPI4B
Last active October 30, 2021 02:23
Install BTCPayServer on Raspiblitz V1.3 - Raspberry Pi 4B
These instructions are outdated.
Please visit https://btcpi.com for detailed instructions on installing BTCPayServer on the Raspberry Pi 4B.
#Install Dot-Net for ARM
cd /home/admin
sudo apt-get -y install libunwind8 gettext libssl1.0
wget https://download.visualstudio.microsoft.com/download/pr/9650e3a6-0399-4330-a363-1add761127f9/14d80726c16d0e3d36db2ee5c11928e4/dotnet-sdk-2.2.102-linux-arm.tar.gz
wget https://download.visualstudio.microsoft.com/download/pr/9d049226-1f28-4d3d-a4ff-314e56b223c5/f67ab05a3d70b2bff46ff25e2b3acd2a/aspnetcore-runtime-2.2.1-linux-arm.tar.gz
sudo mkdir /opt/dotnet
@tgrrr
tgrrr / MaterialTabsRouter4
Created August 30, 2017 09:48
Material Tabs that control Router 4
import React from 'react';
import {Tabs, Tab} from 'material-ui/Tabs';
import Slider from 'material-ui/Slider';
import { withRouter } from 'react-router';
import { BrowserRouter as Router, Route, withRouter } from 'react-router-dom'
class TabsRouter extends React.Component {
constructor(props) {
super(props);
this.state = {
import Flatpickr from "flatpickr";
import Vue from "vue";
// <input type="text" v-flatpickr="{'enableTime': true}"
Vue.directive("flatpickr", {
bind: (el, binding) => {
el._flatpickr = new Flatpickr(el, binding.value);
},
unbind: el => el._flatpickr.destroy()
const spawn = require('child_process').spawn;
const glob = require('glob');
const fs = require('fs');
const path = require('path');
const which = require('which');
const availableLanguages = require('./available');
try {
which.sync('xgettext');
which.sync('msgmerge');
#!/bin/sh
# This pre-commit hook will prompt for every file that contains a `console.log`, `debugger`
# or `puts` statement. This should avoid stupidly commiting debugging information :)
exec < /dev/tty
confirm() {
echo "${1:-Are you sure? [y/N]}"
read -r response
@asciidisco
asciidisco / gist:5c0020f25d7d9dccc5c5
Created March 11, 2016 10:11
npm sass, autoprefixer, minifier, sourcemaps
"scripts" {
"styles:dev": "node-sass --source-map-embed --follow --output-style expanded src/styles/main.scss | postcss -u autoprefixer -u cssnano -o public/main.css --map file"
}
@k88hudson
k88hudson / watch.md
Last active July 19, 2016 21:53
how do i watch in npm scripts