Skip to content

Instantly share code, notes, and snippets.

View acosonic's full-sized avatar
💭
I may be slow to respond.

Aleksandar Pavić acosonic

💭
I may be slow to respond.
View GitHub Profile
@acosonic
acosonic / ubuntu-vnc-desktop.sh
Last active December 5, 2022 08:31 — forked from abdennour/ubuntu-vnc-desktop.sh
Install Ubuntu Desktop with VNC (REQUIRES MINT UBUNTU 20.04)
#!/bin/bash
sudo apt-get update -y
sudo apt-get install ubuntu-desktop -y
sudo apt-get install tightvncserver -y
sudo apt-get install gnome-panel gnome-settings-daemon -y
sudo apt-get install metacity nautilus gnome-terminal gnome-shell -y
sudo apt-get install ubuntu-gnome-desktop -y
mkdir ~/.vnc
cat > ~/.vnc/xstartup <<EOF
#!/bin/sh
@acosonic
acosonic / gist:d549c202764fbb6630536251a030cbd2
Created February 3, 2020 06:15 — forked from jagregory/gist:710671
How to move to a fork after cloning
So you've cloned somebody's repo from github, but now you want to fork it and contribute back. Never fear!
Technically, when you fork "origin" should be your fork and "upstream" should be the project you forked; however, if you're willing to break this convention then it's easy.
* Off the top of my head *
1. Fork their repo on Github
2. In your local, add a new remote to your fork; then fetch it, and push your changes up to it
git remote add my-fork git@github...my-fork.git
@acosonic
acosonic / etc-hosts-on-win.md
Last active May 15, 2019 12:13 — forked from zenorocha/etc-hosts-on-win.md
/etc/hosts on Windows

1. Modify your hosts file

notepad

For Windows 10 and 8
  1. Press the Windows key.
  2. Type Notepad in the search field.
  3. In the search results, right-click Notepad and select Run as administrator.
  4. From Notepad, open the following file: c:\Windows\System32\Drivers\etc\hosts
@acosonic
acosonic / mysql-drop-all-tables.sh
Created November 14, 2018 06:51 — forked from cweinberger/mysql-drop-all-tables.sh
drops all tables of a specific db
#!/bin/bash
#usage: mysql-drop-all-tables -d database -u dbuser -p dbpass
TEMP_FILE_PATH='./drop_all_tables.sql'
while getopts d:u:p: option
do
case "${option}"
in