Skip to content

Instantly share code, notes, and snippets.

View blockspacer's full-sized avatar
:octocat:

Devspace blockspacer

:octocat:
  • Google
  • USA
View GitHub Profile
@blockspacer
blockspacer / opengl-in-wsl.md
Created February 26, 2024 17:23 — forked from Mluckydwyer/opengl-in-wsl.md
Install OpenGL on Ubuntu in WSL

How to Install OpenGL in Ubuntu in WSL2

These steps have been tested on Windows 10 with WSL2 running Ubuntu.

1. Dependencies

First install the dependencies:

apt install mesa-utils libglu1-mesa-dev freeglut3-dev mesa-common-dev

There are more than we need, but also include GLut and Glu libraries to link aginst during compilation for application development (these can be removed if that functionality is not required).

@blockspacer
blockspacer / retry.sh
Created January 17, 2024 18:32 — forked from felipou/retry.sh
Retry command
#!/bin/bash
#
# Created by Felipe Machado - 2016/02/14
#
# A retry command for bash
# Retries the given command up to MAX_RETRIES, with an interval of SLEEP_TIME
# between each retry. Just put it on your bash_profile and be happy :)
# Usage:
# retry [-s SLEEP_TIME] [-m MAX_RETRIES] COMMAND_WITH_ARGUMENTS
#

Core Coding Standard

Coding practices are a source of a lot of arguments among programmers. Coding standards, to some degree, help us to put certain questions to bed and resolve stylistic debates. No coding standard makes everyone happy. (And even their existence is sure to make some unhappy.) What follows are the standards we put together on the Core team, which have become the general coding standard for all programming teams on new code development. We’ve tried to balance the need for creating a common, recognizable and readable code base with not unduly burdening the programmer with minor code formatting concerns.

Table Of Contents

Реквизиты:
Qiwi: +79608624930
Яндекс.Деньги: 410011923274761
Skype: sk2000sk1
Telegram: gamerforEA
Discord: gamerforEA#8924
Зеркало на GitHub Gist: https://gist.github.com/gamerforEA/6c4a77255b95ba4354cc26758d3633da
@blockspacer
blockspacer / Fixes (Ивенты).txt
Created September 30, 2023 06:27 — forked from daniorio/Fixes (Ивенты).txt
Minecraft 1.7.10, 1.12.2, 1.16.5 bukkit and forge mod fixes by LuxinfineTeam, GameForEA and Pa4ok
Контакты:
Discord - daniorio (если поиск не работает, меня можно найти по ссылке ниже)
Discord игрового проекта - https://discord.gg/zuvV5Dx
Сайт игрового проекта - https://luxinfine.su
Список услуг и работ - https://team.luxinfine.su [ВАЖНО]
VK - https://vk.com/luxinfine_team [НЕ АКТИВНО]
На этой странице представлены фиксы для модов майнкрафт 1.7.10, 1.12.2, 1.16.5 от LuxinfineTeam, GameForEA и Pa4ok.
Цены на моды указаны в []. Если авторов несколько, то несколько скобок, для каждого автора фикса своя цена. Последняя скобка - цена за максимальный фикс. Возможно купить либо фикс от GameForEA, либо от GameForEA + Pa4ok, либо от GameForEA + Pa4ok + LuxinfineTeam в одном фиксе. Иных вариантов покупки нет. Если у вас есть фикс от какого-то автора, то платить за него не нужно.
@blockspacer
blockspacer / obsidian-web-clipper.js
Last active June 9, 2023 16:38 — forked from kepano/obsidian-web-clipper.js
Obsidian Web Clipper Bookmarklet to save articles and pages from the web (for Safari, Chrome, Firefox, and mobile browsers)
javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */
@blockspacer
blockspacer / java.library.path.md
Created February 18, 2022 10:22 — forked from andreibosco/java.library.path.md
How to add a .so to java.library.path
#include <fstream>
#include <scripting/ModException.hpp>
#include <sanity.hpp>
#include "LuaSecurity.hpp"
using namespace scripting;
namespace {
void copyAll(sol::environment &env, const sol::global_table &globals,
@blockspacer
blockspacer / Google_Colaboratory_backup.py
Created April 25, 2021 15:44 — forked from alexlib/Google_Colaboratory_backup.py
Simple Google Drive backup script with automatic authentication for Google Colaboratory (Python 3)
# Simple Google Drive backup script with automatic authentication
# for Google Colaboratory (Python 3)
# Instructions:
# 1. Run this cell and authenticate via the link and text box.
# 2. Copy the JSON output below this cell into the `mycreds_file_contents`
# variable. Authentication will occur automatically from now on.
# 3. Create a new folder in Google Drive and copy the ID of this folder
# from the URL bar to the `folder_id` variable.
# 4. Specify the directory to be backed up in `dir_to_backup`.
#include "utf.hpp"
#include <iostream>
#include <string>
int main()
{
// A UTF-8 literal
std::string utf8 = u8"z\u00df\u6c34\U0001d10b"; // or u8"zß水𝄋"
// or "\x7a\xc3\x9f\xe6\xb0\xb4\xf0\x9d\x84\x8b";