Skip to content

Instantly share code, notes, and snippets.

View DarkRoku12's full-sized avatar
🏠
Working from home

DarkRoku12 DarkRoku12

🏠
Working from home
  • Dominican Republic
View GitHub Profile
@ammar0466
ammar0466 / gist:058c4c4c975cf946e5b292c02ee67022
Last active July 15, 2024 16:40
Install Windows 10 on digital ocean
How to install windows on digital ocean,
use this tutorial :
https://milankragujevic.com/how-to-install-windows-10-on-digitalocean
how to create own image :
Reans Web - Creating Custom Image on Digital Ocean '(2022 Update)'
Click here to watch on youtube : https://youtu.be/wtHBDEl5DIw
wget -O /tmp/YaHei.Consolas.1.12.zip https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/uigroupcode/YaHei.Consolas.1.12.zip
unzip /tmp/YaHei.Consolas.1.12.zip
sudo mkdir -p /usr/share/fonts/consolas
sudo mv YaHei.Consolas.1.12.ttf /usr/share/fonts/consolas/
sudo chmod 644 /usr/share/fonts/consolas/YaHei.Consolas.1.12.ttf
cd /usr/share/fonts/consolas
sudo mkfontscale && sudo mkfontdir && sudo fc-cache -fv
@Kovrinic
Kovrinic / .gitconfig
Last active July 15, 2024 04:45
git global url insteadOf setup
# one or the other, NOT both
[url "https://github"]
insteadOf = git://github
# or
[url "git@github.com:"]
insteadOf = git://github
@Techcable
Techcable / fs.lua
Created February 10, 2017 03:25
A portable filesystem API using LuaJIT's FFI
-- A portable filesystem API using LuaJIT's FFI
--
local ffi = require("ffi")
local table = require("table")
require("string")
-- Cache needed functions and locals
local C, errno, string = ffi.C, ffi.errno, ffi.string
local concat, insert = table.concat, table.insert
-- "Standard" C99 functions
@zhaozg
zhaozg / android.sh
Created November 3, 2016 06:07
build luajit for android on windows with NDK
PATH=/e/PortableDev/mingw32/bin:$PATH
NDK=/d/server/android/android-ndk-r10e
NDKABI=19
NDKVER=$NDK/toolchains/arm-linux-androideabi-4.9
NDKP=$NDKVER/prebuilt/windows-x86_64/bin/arm-linux-androideabi-
NDKF="--sysroot=$NDK/platforms/android-$NDKABI/arch-arm"
make HOST_CC="/e/PortableDev/mingw32/bin/gcc -m32" CROSS=$NDKP TARGET_FLAGS="$NDKF" TARGET_SYS=LINUX clean default install
@wearhere
wearhere / enable-websockets.config
Last active July 8, 2020 09:26
Patches AWS Elastic Beanstalk's default nginx configuration to support websockets, for use with an Application Load Balancer.
container_commands:
enable_websockets:
command: |
sed -i '/\s*proxy_set_header\s*Connection/c \
proxy_set_header Upgrade $http_upgrade;\
proxy_set_header Connection "upgrade";\
' /tmp/deployment/config/#etc#nginx#conf.d#00_elastic_beanstalk_proxy.conf
@theultramage
theultramage / powercfg-win7-all-settings.bat
Last active March 10, 2024 05:51
Show/hide all hidden settings in Win7 Power Options
@echo off
REM SET attrib=+ATTRIB_HIDE
SET attrib=-ATTRIB_HIDE
REM Harddisk settings
powercfg -attributes 0012ee47-9041-4b5d-9b77-535fba8b1442 0b2d69d7-a2a1-449c-9680-f91c70521c60 %attrib%
powercfg -attributes 0012ee47-9041-4b5d-9b77-535fba8b1442 80e3c60e-bb94-4ad8-bbe0-0d3195efc663 %attrib%
powercfg -attributes 0012ee47-9041-4b5d-9b77-535fba8b1442 dab60367-53fe-4fbc-825e-521d069d2456 %attrib%
REM Sleep transition settings
@cavinsmith
cavinsmith / nvidia.md
Last active July 20, 2024 06:35
Nvidia GPUs sorted by CUDA cores

List of desktop Nvidia GPUS ordered by CUDA core count

I created it for those who use Neural Style

Guys, please add your hardware setups, neural-style configs and results in comments!

GPU CUDA cores Memory Processor frequency
GeForce GTX TITAN Z 5760 12 GB 705 / 876
@mems
mems / README.md
Last active May 4, 2024 09:08
Fullres images of a https://www.fashionanthology.com/ galleries
@bkaradzic
bkaradzic / orthodoxc++.md
Last active July 19, 2024 23:17
Orthodox C++

Orthodox C++

What is Orthodox C++?

Orthodox C++ (sometimes referred as C+) is minimal subset of C++ that improves C, but avoids all unnecessary things from so called Modern C++. It's exactly opposite of what Modern C++ suppose to be.

Why not Modern C++?