Skip to content

Instantly share code, notes, and snippets.

View im-coder-lg's full-sized avatar
🌴
On vacation

LG im-coder-lg

🌴
On vacation
View GitHub Profile
@im-coder-lg
im-coder-lg / install-nodejs.md
Last active September 6, 2021 08:30
Install Node JS LTS/Latest via a simple shell script.

About this gist

Ladies and gentlemen, this is a work in progress.

Only for Linux. Mainly Debian-based distros. I'm sorry. I will add support for RPM and DNF-based distros soon. Open issues here

@im-coder-lg
im-coder-lg / gist:8b3e7994cf874e34179f76563f9046cc
Last active September 3, 2021 03:36 — forked from dsci/gist:1347672
Delete commits from repository. Upgraded version
#!/bin/bash
read -p "Git Commit SHA hashcode:" $commit
# First, check out the commit you wish to go back to (get sha-1 from git log)
git reset --hard $commit
# Then do a forced update.
git push origin +$commit^:develop
@im-coder-lg
im-coder-lg / GAUDC-Personal-Results.md
Last active November 27, 2023 14:57
Allows GAUDC permission to personal results if you do this.

Steps:

  1. Go to the Actions Console.
  2. Go to your GAUDC project
  3. Go to the Develop Section.
  4. Hit the hamburger button on the left side of the Develop screen and go to Account Linking.
  5. Now, enable Account linking by switching the toggle.
  6. Choose yes for Account Creation.
#!/bin/bash
echo "Hi. I am your GAUDC program installation automator." && echo "This code is open-source as a GitHub Gist, and I am LG, the maker of this script." && echo Feel free to comment on any issues. # --> Beginning Message
echo "Now, make sure you installed Git and NodeJS because you need to clone and build GAUDC. I will make a temporary directory and give you the path at the end." # --> Next message
echo "Have you installed Git and NodeJS? Because, the script needs it."
echo "If you have it, respond with 'yes' as it is. If not, respond with 'no' as it is."
@im-coder-lg
im-coder-lg / Google-Assistant-Unofficial-Desktop-Client-Builder-For-Windows.bat
Last active September 3, 2021 14:30
Used for building GAUDC for Windows. If you don't know about GAUDC, go to https://github.com/Melvin-Abraham/Google-Assistant-Unofficial-Desktop-Client , you can use it too. Shell Script Variant released in beta!
@ECHO OFF
echo "Get Git and Node JS." && echo "If you didn't, the batch file will fail." && git clone https://github.com/Melvin-Abraham/Google-Assistant-Unofficial-Desktop-Client.git && cd Google-Assistant-Unofficial-Desktop-Client && npm install && npm run dist && echo "built." && echo "open this directory in Explorer," && echo "go to `dist` and then go to `win-unpacked`." && echo "Then, run Google Assistant.exe." && echo "Path to the dist folder is" && cd dist\win-unpacked && cd
PAUSE
@djfdyuruiry
djfdyuruiry / README.md
Last active April 28, 2024 08:34
WSL 2 - Enabling systemd

Enable systemd in WSL 2

NOTE: If you have Windows 11 there is now an official way to do this in WSL 2, use it if possible - see MS post here (WINDOWS 11 ONLY)

This guide will enable systemd to run as normal under WSL 2. This will enable services like microk8s, docker and many more to just work during a WSL session. Note: this was tested on Windows 10 Build 2004, running Ubuntu 20.04 LTS in WSL 2.

  • To enable systemd under WSL we require a tool called systemd-genie

  • Copy the contents of install-sg.sh to a new file /tmp/install-sg.sh:

@lyshie
lyshie / config-deb-i386.json
Last active November 17, 2023 00:06
Scratch Desktop (Scratch 3.0 Offline Editor) on GNU/Linux
{
"src": "/tmp/scratch-desktop/",
"dest": "/tmp/",
"arch": "i386",
"icon": "/tmp/scratch-desktop/resources/Icon.png",
"categories": [
"Education"
]
}
@martinbuberl
martinbuberl / git-import-repository.md
Last active October 11, 2023 09:56
Import existing Git repository into another

Import existing Git repository into another

Folder structure before (2 separate repositories):

XXX
 |- .git
 |- (project files)
YYY
 |- .git
@soheilhy
soheilhy / nginxproxy.md
Last active May 8, 2024 09:56
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers