Skip to content

Instantly share code, notes, and snippets.

@123mitnik
123mitnik / gist:946ada589f2fa3d9f00183d84495ecb6
Created May 25, 2022 15:15 — forked from jedi4ever/gist:903751
Tuning stuff for Ubuntu hosts
# /etc/security/limits.conf
* soft nofile 999999
* hard nofile 999999
root soft nofile 999999
root hard nofile 999999
===========================================================
# /etc/sysctl.conf
# sysctl for maximum tuning
@123mitnik
123mitnik / git-commit-log-stats.md
Last active April 5, 2022 18:05 — forked from eyecatchup/git-commit-log-stats.md
Some commands to get git commit log statistics for a repository on the command line.

git commit stats

Commands to get commit statistics for a Git repository from the command line -
using git log, git shortlog and friends.




@123mitnik
123mitnik / 5ec339ed59c37.html
Created September 20, 2021 06:41 — forked from owenconti/5ec339ed59c37.html
Moving our search drop down from Algolia to Alpine.js
<div class="relative">
<div id="#search-box"></div>
<div id="#hits"></div>
</div>
@123mitnik
123mitnik / XGBoost_EA.ipynb
Created November 23, 2017 15:54 — forked from riccamastellone/XGBoost_EA.ipynb
XGBoost parameter search with evolutionary algorithm
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@123mitnik
123mitnik / EventManager.cs
Created March 18, 2017 21:34 — forked from bendangelo/EventManager.cs
Unity3D C# Event Manager
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class EventManager : MonoBehaviour {
public bool LimitQueueProcesing = false;
public float QueueProcessTime = 0.0f;
private static EventManager s_Instance = null;
private Queue m_eventQueue = new Queue();
@123mitnik
123mitnik / convert-subtitles.py
Last active May 25, 2016 11:40 — forked from cdiazbas/convert-subtitles.py
Video caption conversion script using the PBS pycaption library
#!/usr/bin/env python
# encoding: utf-8
"""Convert caption files to different formats
One or more caption files will be converted to the specified output format, saved next to the input file
Requires the pycaption library from PBS: https://pypi.python.org/pypi/pycaption/
"""
from __future__ import absolute_import, print_function, unicode_literals
@123mitnik
123mitnik / tf_restore_graph.py
Created April 19, 2016 22:17 — forked from nikitakit/_NOTICE.md
Restoring TensorFlow Models
"""
By default, TensorFlow's GraphDef only saves the graph architecture
(not the parameter values), while the Saver class only writes parameter
values to each checkpoint.
This code allows combining data from the GraphDef and a checkpoint file
to restore a functioning model.
Sample usage:
```
def str_stem(s):
if isinstance(s, str) or isinstance(s, unicode):
s = s.replace('steele stake','steel stake')
s = s.replace('gas mowe','gas mower')
s = s.replace('metal plate cover gcfi','metal plate cover gfci')
s = s.replace('lawn sprkinler','lawn sprinkler')
s = s.replace('ourdoor patio tile','outdoor patio tile')
s = s.replace('6 teir shelving','6 tier shelving')
s = s.replace('storage shelve','storage shelf')
s = s.replace('American Standard Bone round toliet','American Standard Bone )round toilet')