Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Alexandr Korsak oivoodoo

🏠
Working from home
View GitHub Profile
View .tmux.conf
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'jatap/tmux-base16-statusline'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'seebi/tmux-colors-solarized'
set -g @plugin 'thewtex/tmux-mem-cpu-load'
set-window-option -g mode-keys vi
View alacritty.yml
# Colors (Solarized Dark)
colors:
# Default colors
primary:
background: '#002b36' # base03
foreground: '#839496' # base0
# Cursor colors
cursor:
text: '#002b36' # base03
@oivoodoo
oivoodoo / Dockerfile
Created Jan 26, 2021
Python package via Docker environment
View Dockerfile
FROM python:3.6.6
RUN pip install --upgrade pip && pip install pipenv
WORKDIR /app
@oivoodoo
oivoodoo / docker.sh
Created Aug 28, 2020
memory usage per docker process
View docker.sh
docker ps -q | xargs docker stats --no-stream
View launcherTemplate.gradle
// GENERATED BY UNITY. REMOVE THIS COMMENT TO PREVENT OVERWRITING WHEN EXPORTING AGAIN
apply plugin: 'com.android.application'
dependencies {
implementation project(':unityLibrary')
implementation 'com.android.support:multidex:1.0.1'
}
android {
View mainTemplate.gradle
// GENERATED BY UNITY. REMOVE THIS COMMENT TO PREVENT OVERWRITING WHEN EXPORTING AGAIN
// Android Resolver Repos Start
([rootProject] + (rootProject.subprojects as List)).each {
ext {
it.setProperty("android.useAndroidX", true)
it.setProperty("android.enableJetifier", true)
}
}
([rootProject] + (rootProject.subprojects as List)).each { project ->
View App.tsx
import React from 'react';
import {
BrowserRouter,
Route,
Switch,
Redirect
} from 'react-router-dom';
import Dashboard from './pages/dashboard'
View FormatNumber.cs
using System.Globalization;
public static class FormatNumber
{
public static string ToKMB(this decimal num)
{
if (num > 999999999 || num < -999999999)
{
return num.ToString("0,,,.###B", CultureInfo.InvariantCulture);
}
View variables.cs
using CrystalBlast.Data;
namespace CrystalBlast.DebugTools
{
using LunarConsolePlugin;
[CVarContainer]
// ReSharper disable once UnusedMember.Global
public static class Variables
{
View Base2D.hx
class Base2D extends hxd.App {
var obj : h2d.Object;
var tf : h2d.Text;
override function init() {
// creates a new object and put it at the center of the sceen
obj = new h2d.Object(s2d);
obj.x = Std.int(s2d.width / 2);
obj.y = Std.int(s2d.height / 2);