Skip to content

Instantly share code, notes, and snippets.

View openm1ke's full-sized avatar
🍯
rm -rf /

Michael openm1ke

🍯
rm -rf /
  • Moscow, Russia
View GitHub Profile
@openm1ke
openm1ke / ConvertKopeikiToRublesTest.java
Created April 29, 2025 17:22
Копейка рубль бережёт
public class ConvertKopeikiToRublesTest {
public static void main(String[] args) {
long kopecks = 1;
double totalRubles = 0.0;
for (int i = 0; i < 2_000_000_000; i++) {
totalRubles += kopecks / 100.0;
}
@openm1ke
openm1ke / cpl.sh
Created January 4, 2023 13:46
CPP Linter
#!/bin/bash
if [ -z $1 ]; then
echo "Cpplint - No input file!"
exit
fi
DIR_PATH=$(pwd)
if [ ! -f $DIR_PATH/cpplint.py ]; then
cp ~/help_files/cpplint.py $DIR_PATH/
fi
@openm1ke
openm1ke / .zshrc
Last active May 24, 2024 19:14
.zshrc config
#!/usr/bin/env bash
DIRECTORY=$"/Users/$(whoami)/goinfre/Homebrew"
rm -rf $DIRECTORY
echo $DIRECTORY
git clone https://github.com/Homebrew/brew $DIRECTORY
eval "$($DIRECTORY/bin/brew shellenv)" >> "/Users/$(whoami)/.zprofile"
source "/Users/$(whoami)/.zprofile"
echo 'export PATH="/opt/goinfre/$(whoami)/.brew/bin:$PATH"' >> ~/.zshrc
@openm1ke
openm1ke / top30tweetscrennshoter.php
Last active September 20, 2021 10:35
Top 30 tweets screensoter
<?php
//twitter screenshoter
require_once('vendor/autoload.php');
use Facebook\WebDriver\Remote\DesiredCapabilities;
use Facebook\WebDriver\Remote\RemoteWebDriver;
use Facebook\WebDriver\Chrome\ChromeOptions;
use Facebook\WebDriver\WebDriverBy;
use Facebook\WebDriver\WebDriverSelect;
@openm1ke
openm1ke / wtm_autoswitch.php
Last active October 18, 2021 19:32
WhatToMine profitable checking script
<?php
//include 'hive_api_class.php';
$al2_hr=570; // hashrate autolykos2 570mh
$al2_p=510;
$eth_hr=151;
$eth_p=380;
$cost=0.12;
$usd_price = json_decode(file_get_contents("https://www.cbr-xml-daily.ru/daily_json.js"), true)['Valute']['USD']['Value'];