Skip to content

Instantly share code, notes, and snippets.

View tmeits's full-sized avatar
🌄
nature narture

tmeits tmeits

🌄
nature narture
  • enthusiast programmer
  • Russia
View GitHub Profile
@tmeits
tmeits / kvrt.md
Created August 14, 2025 07:56
KVRT для linux

«Касперский» выпустил бесплатный инструмент для Linux Kaspersky Virus Removal Tool

Данная утилита может работать в консольном режиме, что позволяет ее использовать для проверки файлов на веб-серверах. С ее помощью вы можете обнаружить вредоносные файлы webshell, которые созданы злоумышленниками с использованием уязвимостей приложения. Вредоносные файлы могут сохраняться в каталогах даже после установки обновлений CMS, а так же могут быть перенесены на новый хостинг вместе с резервной копией, создаваемой штатными средствами CMS.

Поддерживаются следующие операционные системы:

  • Linux Mint 19.2 и выше.
  • openSUSE Leap 15.0 и выше.
  • Oracle Linux 7.3 и выше.
  • Red Hat Enterprise Linux 6.7 и выше.
@tmeits
tmeits / README.md
Created January 11, 2020 17:48 — forked from jslefche/README.md
ggplot2: theme_black()

Black theme for ggplot2

This is an additional theme for ggplot2 that generates an inverse black and white color scheme.

Example

ggplot(mtcars, aes(wt, mpg)) + geom_point()
# Add theme_black()
ggplot(mtcars, aes(wt, mpg)) + geom_point(color = "white") + theme_black()
@tmeits
tmeits / interpolate.R
Created December 9, 2019 06:56 — forked from andrie/interpolate.R
Interpolation and smoothing functions in R
# Generate data in the form of a sine wave
set.seed(1)
n <- 1e3
dat <- data.frame(
x = 1:n,
y = sin(seq(0, 5*pi, length.out = n)) + rnorm(n=n, mean = 0, sd=0.1)
)
approxData <- data.frame(
@tmeits
tmeits / LSTM.R
Created November 4, 2017 07:54 — forked from mick001/LSTM.R
set.seed(1)
# define some functions
## convert integer to binary
i2b <- function(integer, length=8)
as.numeric(intToBits(integer))[1:length]
## apply
int2bin <- function(integer, length=8)
@tmeits
tmeits / rnn_example.R
Created November 4, 2017 07:52 — forked from mick001/rnn_example.R
Sine wave prediction with recurrent neural networks in R. Full article at: https://firsttimeprogrammer.blogspot.com/2016/08/plain-vanilla-recurrent-neural-networks.html
# Clear workspace
rm(list=ls())
# Load libraries
require(rnn)
# Set seed for reproducibility purposes
set.seed(10)
# Set frequency
@tmeits
tmeits / keras_prediction.py
Created October 28, 2017 16:46 — forked from hnykda/keras_prediction.py
Predicting sequences of vectors (regression) in Keras using RNN - LSTM (danielhnyk.cz)
import pandas as pd
from random import random
flow = (list(range(1,10,1)) + list(range(10,1,-1)))*100
pdata = pd.DataFrame({"a":flow, "b":flow})
pdata.b = pdata.b.shift(9)
data = pdata.iloc[10:] * random() # some noise
import numpy as np
@tmeits
tmeits / mlp.py
Created October 28, 2017 15:28 — forked from Ogaday/mlp.py
Regression on toy data using Keras
# Python 3.5
import numpy as np
import matplotlib.pyplot as plt
from keras.models import Sequential
from keras.layers.core import Dense, Activation
from keras.optimizers import SGD
from sklearn.metrics import mean_squared_error

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@tmeits
tmeits / jupyter.service
Created October 17, 2017 16:20 — forked from whophil/jupyter.service
A systemd script for running a Jupyter notebook server.
# After Ubuntu 16.04, Systemd becomes the default.
# It is simpler than https://gist.github.com/Doowon/38910829898a6624ce4ed554f082c4dd
[Unit]
Description=Jupyter Notebook
[Service]
Type=simple
PIDFile=/run/jupyter.pid
ExecStart=/home/phil/Enthought/Canopy_64bit/User/bin/jupyter-notebook --config=/home/phil/.jupyter/jupyter_notebook_config.py
@tmeits
tmeits / app.R
Created October 8, 2017 15:05 — forked from edgararuiz-zz/app.R
library(shinydashboard)
library(dplyr)
library(dbplyr)
library(purrr)
library(shiny)
library(highcharter)
library(DT)
library(htmltools)
library(nycflights13)