Skip to content

Instantly share code, notes, and snippets.

@AlexPl292
AlexPl292 / .ideavimrc
Last active May 12, 2024 22:46
My `~/.ideavimrc` file
let mapleader=" "
""" Plugins --------------------------------
set surround
set multiple-cursors
set commentary
set argtextobj
set easymotion
set textobj-entire
set ReplaceWithRegister
@HPZ07
HPZ07 / DisableYoutubeScrolling.user.js
Last active May 12, 2024 22:42
Disable YouTube Spacebar Scrolling
// ==UserScript==
// @name Disable YouTube spacebar scrolling
// @namespace http://tampermonkey.net/
// @version 0.2
// @description Disables spacebar scrolling and forces it to pause the video instead
// @author HPZ07
// @match https://www.youtube.com/*
// @grant none
// ==/UserScript==
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Custom Scrollbar</title>
<style>
.scroll-box {
position: relative;
/* border-right: 1px solid #000; */
@RebelLion420
RebelLion420 / TermuxArchSetup2020.md
Last active May 12, 2024 22:37
How to set up Arch Linux in Termux on Android

So, to get started you need to get the base OS installed using the instructions from the official docs .

$ pkg update

$ pkg install bsdtar wget proot tergent tmux openssh

Tmux is a multiplexer that lets you run multiple persistent windows and sessions on a single terminal. I had trouble getting it working in the Arch proot, so a workaround is configuring tmux from your host Termux and then creating a tmux session and starting the chroot from there. For more information on using tmux read this article, and to learn how to customize the appearance and behaviors more try this one as well as looking at the tmux-plugins Github organization for community-built add-ons.

$ termux-setup-storage

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Custom Scrollbar</title>
<style>
.scroll-box {
position: relative;
/* border-right: 1px solid #000; */
@alghanmi
alghanmi / curl_example.cpp
Created May 5, 2014 20:12
cURL C++ Example
#include <iostream>
#include <string>
#include <curl/curl.h>
static size_t WriteCallback(void *contents, size_t size, size_t nmemb, void *userp)
{
((std::string*)userp)->append((char*)contents, size * nmemb);
return size * nmemb;
}
@bergmannjg
bergmannjg / rearct-native-app-in-wsl2.md
Last active May 12, 2024 22:33
Building a react native app in WSL2
@jahirfiquitiva
jahirfiquitiva / settings.json
Created May 11, 2024 22:32
VS Code Settings
{
"breadcrumbs.enabled": false,
"editor.fontFamily": "'MonoLisa', 'Dank Mono', 'Operator Mono Lig', 'Operator Mono', Menlo, Monaco, 'Courier New', monospace",
"editor.fontWeight": "400",
"editor.cursorBlinking": "smooth",
"editor.cursorSmoothCaretAnimation": "explicit",
"editor.stickyScroll.enabled": true,
"explorer.sortOrder": "type",
"workbench.editor.enablePreview": false,
"workbench.editor.highlightModifiedTabs": true,
@kenji-miyake
kenji-miyake / how-to-generate-xyz-tiles-using-qgis3.md
Created June 21, 2019 03:43
How to generate XYZ tiles using QGIS3

How to generate XYZ tiles using QGIS3

Overview

QGIS3 has a tool called 'gdal2tiles.py' which can generate map tiles, but currently, it only supports TMS, not XYZ. However, QGIS3 loads XYZ by default and requires checkbox for TMS, so it's better to convert TMS to XYZ.

The difference between TMS and XYZ is just the name of Y-coordinate, so renaming works well. tms2xyz.py is a script for that.