Skip to content

Instantly share code, notes, and snippets.

View teocci's full-sized avatar
👨‍💻
Coding

Teocci teocci

👨‍💻
Coding
View GitHub Profile

How to install Node.js 19 on Ubuntu 20.04 LTS

First and foremost, it’s always good to make sure your system is up date to date, rebooting it if necessary:

sudo apt update
sudo apt upgrade

We expects curl to already be installed as well:

@teocci
teocci / how-to-ssh-into-windows.md
Created October 13, 2022 08:07
How to SSH into Windows 10 or 11?

How to SSH into Windows 10 or 11?

The latest builds of Windows 10 and Windows 11 include a build-in SSH server and client that are based on OpenSSH. This means now you can remotely connect to Windows 10/11 or Windows Server 2019 using any SSH client, like Linux distros. Let's see how to configure OpenSSH on Windows 10 and Windows 11, and connect to it using Putty or any other SSH client.

OpenSSH is an open-source, cross-platform version of Secure Shell (SSH) that is used by Linux users for a long time. This project is currently ported to Windows and can be used as an SSH server on almost any version of Windows. In the latest versions of Windows Server 2022/2019 and Windows 11, OpenSSH is built-in to the operating system image.

@teocci
teocci / adb-commands.md
Last active November 28, 2022 15:45
adb useful commands list
## Delete files
adb devices
List of devices attached
21344ca0530c7ece        device

adb -s 21344ca0530c7ece  shell 
cd /sdcard/Telegram/Telegram\ Video/
touch -mt 202209010000 end_marker
@teocci
teocci / install-nodejs-centos-7.md
Last active February 24, 2024 17:00
Installing Node.js in CentOS 7

Install NodeJS 16.17

sudo yum install -y gcc-c++ make curl
curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash -

sudo yum list available nodejs
sudo yum install -y nodejs
node -v
npm -v
npm install -g npm
wget -Uri 'https://nodejs.org/download/release/latest/win-x64/node.exe' -OutFile 'D:\Libs\nodejs\node.exe'
@teocci
teocci / shader.frag.glsl
Created August 10, 2022 08:49
Vertex and Fragment shaders
/**
* Uber Shader
* Shader used as a Verold material type
*
* Written by Mike Bond
* March 2012
*/
#define ALPHA_TEST_LEQUAL 0
#define ALPHA_TEST_GREATER 1
This file has been truncated, but you can view the full file.
var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; };
if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } }
{
let window = _____WB$wombat$assign$function_____("window");
let self = _____WB$wombat$assign$function_____("self");
let document = _____WB$wombat$assign$function_____("document");
let location = _____WB$wombat$assign$function_____("location");
let top = _____WB$wombat$assign$function_____("top");
let parent = _____WB$wombat$assign$function_____("parent");
var requirejs,require,define;(function(undef){var main,req,makeMap,handlers,defined={},waiting={},config={},defining={},hasOwn=Object.prototype.hasOwnProperty,aps=[].slice;function hasProp(obj,prop){return hasOwn.call(obj,prop)}function normalize(name,baseName){var nameParts,nameSegment,mapValue,foundMap,foundI,foundStarMap,starI,i,j,part,baseParts=baseName&&baseName.split("/"),map=config.map,starMap=map&&map["*"]||{};if(name&&name.charAt(0)==="."){if(baseName){baseParts=baseParts.slice(0,baseParts.length-1);name=baseParts.concat(name.split("/"));for(i=0;i<name.length;i+=1){part=name[i];if(part==="."){name.splice(i,1);i-=1}else if(part===".."){if(i===1&&(name[2]===".."||name[0]==="..")){break}else if(i>0){name.splice(i-1,2);i-=2}}}name=name.join("/")}else if(name.indexOf("./")===0){name=name.substring(2)}}if((baseParts||starMap)&&map){nameParts=name.split("/");for(i=nameParts.length;i>0;i-=1){nameSegment=nameParts.slice(0,i).join("/");if(baseParts){for(j=baseParts.length;j>0;j-=1){mapValue=map[baseParts.slice
@teocci
teocci / download-vs-code-server.sh
Created July 25, 2022 01:29
Linux script to download latest VS Code Server, good for Docker (tested in Alpine).
#!/bin/sh
set -e
# Auto-Get the latest commit sha via command line.
get_latest_release() {
tag=$(curl --silent "https://api.github.com/repos/${1}/releases/latest" | # Get latest release from GitHub API
grep '"tag_name":' | # Get tag line
sed -E 's/.*"([^"]+)".*/\1/' ) # Pluck JSON value
@teocci
teocci / aapl.csv
Last active June 23, 2022 00:35
These simple CSV files store data used to draw charts using D3
date close
2007-04-23 93.24
2007-04-24 95.35
2007-04-25 98.84
2007-04-26 99.92
2007-04-29 99.8
2007-05-01 99.47
2007-05-02 100.39
2007-05-03 100.4
2007-05-04 100.81