Skip to content

Instantly share code, notes, and snippets.

View Kylmakalle's full-sized avatar

Sergey Akentev Kylmakalle

View GitHub Profile
@BrentMifsud
BrentMifsud / Image+Data.swift
Last active March 14, 2024 16:19
SwiftUI Image from data
import Foundation
import SwiftUI
#if canImport(UIKit)
import UIKit
#elseif canImport(AppKit)
import AppKit
#endif
extension Image {
/// Initializes a SwiftUI `Image` from data.
@advaith1
advaith1 / top bots.md
Last active July 5, 2024 04:46
The top Discord bots ranked by server count
Rank Bot Approximate Server Count Library
1 MEE6 21,600,000 Custom Python
2 Rythm 🪦 15,200,000 JDA
3 Groovy 🪦 10,400,000 JDA, Discord4J
4 carl-bot 🅱️ 9,770,000 Pycord
5 ProBot
@bryanbraun
bryanbraun / git-branching-diagram.md
Last active July 5, 2024 14:18
Example Git Branching Diagram

Example Git Branching Diagram

You can use this diagram as a template to create your own git branching diagrams. Here's how:

  1. Create a new diagram with diagrams.net (formerly draw.io)
  2. Go to File > Open From > URL
  3. Insert this url (it points to the xml data below): https://gist.githubusercontent.com/bryanbraun/8c93e154a93a08794291df1fcdce6918/raw/bf563eb36c3623bb9e7e1faae349c5da802f9fed/template-data.xml
  4. Customize as needed for your team.

@cor-bee
cor-bee / dev.to.yaml
Created August 23, 2019 17:35
Overdocumented Instant View Template for dev.to (https://instantview.telegram.org/contest/dev.to/template28/)
## General info:
# Function starts with @
# Variable starts with $
# Return of the most recently run function made by $@
# Key comments marked with ##
## Version of IV must be set first
~version: "2.1"
# Telegram doesn't support JW Player which is used in videoheaders
@rbrovko
rbrovko / NoteTests.swift
Created June 19, 2019 17:44
iOS Unit tests for task#1 (Test target - NoteTests.swift) or Playground
//
// NoteTests.swift
// NoteTests
//
// Created by Roman Brovko on 6/17/19.
// Copyright © 2019 Roman Brovko. All rights reserved.
//
import XCTest
@testable import Note

Neural Networks

Types

  • Perceptron (P)
  • Feed Forward (FF)
  • Radial Basis Network (RBF)
  • Deep Feed Forward (DFF)
  • Recurrent Neural Network (RNN)
  • Long / Short Term Memory (LSTM)
FROM arm64v8/ubuntu
RUN apt-get update
ARG LUA_VERSION=5.1
RUN apt-get update && \
apt-get -y upgrade && \
apt-get -y install libreadline-dev libssl-dev lua5.1 liblua5.1-dev git make unzip redis-server curl libcurl4-gnutls-dev wget && \
wget http://luarocks.org/releases/luarocks-2.2.2.tar.gz && \
tar zxpf luarocks-2.2.2.tar.gz && \
cd luarocks-2.2.2 && \
sh ./configure --lua-version=${LUA_VERSION} && \
@DrPsychick
DrPsychick / macOS-remote-environment.md
Last active May 9, 2024 18:36
macOS / OSX ansible path test

INFO

  • remote SSH shell on macOS does not use /etc/paths
  • this is not an issue of ansible, it is the way macOS processes config files on remote shells:
  • see ssh localhost echo \$PATH

ANSIBLE executes remote shell /bin/sh

  • ...if not specified otherwise and macOS does not read any startup files
  • example: [...]localhost '/bin/sh -c '"'"'sudo -H -S -n -u test /bin/sh -c '"'"'"'"'"[...]
  • even /bin/bash does not read any startup files by default
@vlakam
vlakam / m3u.js
Last active September 25, 2018 16:21
m3u downloader and id3tag fixer
const m3u = require('m3ujs');
const {promisify} = require('util');
const sanitize = require("sanitize-filename");
const fetch = require('node-fetch');
const ID3Writer = require('browser-id3-writer');
const fs = require('fs');
const path = require("path");
const readFileAsync = promisify(fs.readFile);
const writeFileAsync = promisify(fs.writeFile);
const jsmediatags = require("jsmediatags");
@beefon
beefon / README.md
Last active March 17, 2023 07:48 — forked from tombigel/README.md
How to Change Open Files Limit on OS X and macOS Sierra (10.8 - 10.14)

Have a look at load.sh file below, it contains all necessary commands to automate the process of changing system limits.

This guide has been tested on macOS High Sierra and Mojave. If you'd like to learn a theory, please continue reading.

How to Change Open Files Limit on OS X and macOS

This text is the section about OS X Yosemite (which also works for macOS Sierra) from https://docs.basho.com/riak/kv/2.1.4/using/performance/open-files-limit/#mac-os-x

_The last time i visited this link it was dead (403), so I cloned it here from the latest snapshot in Archive.org's Wayback Machine