Skip to content

Instantly share code, notes, and snippets.

View barbarbar338's full-sized avatar
☢️
works on my machine

Barış DEMİRCİ barbarbar338

☢️
works on my machine
View GitHub Profile
@barbarbar338
barbarbar338 / number-guessing-game.ps1
Created December 31, 2023 07:20
A simple number guessing game in PowerShell
enum Difficulty {
EASY
MEDIUM
HARD
}
Function GetMaxNumberByDifficulty {
[CMDLetBinding()]
Param(
[Difficulty]$Difficulty
@barbarbar338
barbarbar338 / server.ps1
Created December 31, 2023 07:13
A simple PowerShell HTTP server script that supports static file hosting, server-side executions and static routes.
$Port = 8080;
$StaticDir = "./public";
$Listener = New-Object System.Net.HttpListener;
$Listener.Prefixes.Add("http://localhost:$Port/");
$Listener.Start();
If ($Listener.IsListening) {
@4abhinavjain
4abhinavjain / reinstall_VPS_from_inside.txt
Last active May 12, 2025 08:12 — forked from ClashTheBunny/reinstall_VPS_from_inside.sh
DIY install debian on Oracle Cloud Infrastructure ( Free Tier ) - ARM64
# should works on any cloud-init enabled hypervisor (openstack.. )
# start from a normal ubuntu 20.04 install as minimal was not available for ARM64
# Since ARM64 machines has higher RAM, Shrinking is desired but not necessary. Instead we will increase tmpfs to 1700MB
# Getting root (if sudo -i doesn't work then set a root password beforehand using 'sudo passwd root'
sudo -i
# make sure we are on the highest kernel, so we can delete all the others ...
@micjabbour
micjabbour / install-ycm-termux.md
Last active April 12, 2025 09:42
How to install YouCompleteMe on Termux

How to install YouCompleteMe on Termux

Problem

As of March 2021, YouCompleteMe compiles fine on Termux, but it crashes once the plugin is loaded. The following error can be noticed in the logs:

ImportError: dlopen failed: cannot locate symbol "_ZNSt6__ndk14__fs10filesystem18__weakly_canonicalERKNS1_4pathEPNS_10error_codeE" referenced by "/data/data/com.termux/files/home/.vim/bundle/YouCompleteMe/third_party/ycmd/ycm_core.so"...