Skip to content

Instantly share code, notes, and snippets.

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

Ardian Haxha ardian

💭
I may be slow to respond.
View GitHub Profile
@ardian
ardian / index.pug
Created March 31, 2019 20:47
timeline
#timeline-1.timeline-container
.timeline-header
h2.timeline-header__title Mustafa Kemal Atatürk
h3.timeline-header__subtitle FATHER OF THE TURKS
.timeline
.timeline-item(data-text='FATHER OF THE TURKS')
.timeline__content
img.timeline__img(src='http://i.cdn.ensonhaber.com/resimler/diger/ataturk_3473.jpg')
h2.timeline__content-title
| 1881
@ardian
ardian / Install_Orace_Java.md
Created January 19, 2018 09:45
Install Oracle JDK 8 from Source

Source

How to Install Oracle JDK 8 On Debian

![java8-debian][1]

In this tutorial, we will show you how to install Oracle JDK 8 On Debian, manually.

@ardian
ardian / gist:092a96d0ac38952f4227e86003851cbc
Created November 15, 2017 09:10
Max Cpu and mem check
ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%mem | head
@ardian
ardian / script.sh
Last active March 20, 2024 04:31 — forked from vielhuber/script.sh
PostgreSQL: Backup and restore pg_dump with password on command line #sql
# linux
PGPASSWORD="password" pg_dump -h host -p port -U username database > file.sql
# windows
PGPASSWORD=password&& pg_dump -h host -p port -U username database > file.sql
# alternative
pg_dump --dbname=postgresql://username:password@host:port/database > file.sql
# restore
find the appropriate file for your system on https://nodejs.org/en/download/
(if you're not sure whether you should use 32-bit or 64-bit, follow instructions here: https://www.computerhope.com/issues/ch001121.htm)
copy the link to the appropriate file. in the example below we're using the link for the Linux 64-bit binary. if you're using a different file, substitute as necessary.
on the command line, do the following series of commands one at a time:
cd /tmp
wget https://nodejs.org/dist/v6.10.3/node-v6.10.3-linux-x64.tar.xz
tar -xf node-v6.10.3-linux-x64.tar.xz
virtualenv -p /usr/bin/python3 yourenv
source yourenv/bin/activate
pip install package-name
@ardian
ardian / Monaco for Powerline.otf
Created October 31, 2016 02:28 — forked from baopham/Monaco for Powerline.otf
Patched font Monaco for OSX Vim-Powerline

Keybase proof

I hereby claim:

  • I am ardian on github.
  • I am ardian (https://keybase.io/ardian) on keybase.
  • I have a public key ASB504i7qCqJ6RyeeCE4TEBAoZuMRwBuhqAkVid9-p9SVwo

To claim this, I am signing this object:

-----BEGIN PGP MESSAGE-----
Version: Keybase OpenPGP v2.0.58
Comment: https://keybase.io/crypto
wcFMA9yWuZ0V/hQZAQ//ULMPcPDZQDz/McXlg4G12EG2wsVNOnxRwKj9oYr9GPxu
vySarxN5mRNzjZNujzm9UC/R7WgGe1mle18hCnkRONDLhP7ARqthyvnTabwyS37O
HAkmo9PueRiEj7/s3dU33yigahzH2f59dEGA4xBf8YM/tRz740z+iKBXy80Qxb/p
w6gWt/yHqcQERoGUruo663L/yYSudL5dnEINVuxWigK4ns+v6btYdXpDgHqX0s19
BAEIRXNP9WELEgS/KLT96Y6VQTKkv4Dha/puRPOnJkDaFiL6mfAoiQ1x7NN5fGhI
L444m8uQQifF7F10TIwgoQMyumVob0itOVfM8pHLA0oJ0w+75u29N90tIYtfiLvK
@ardian
ardian / gist:7cfd2222813374152c3e1756abeac4e3
Created June 30, 2016 23:56 — forked from paulallies/gist:0052fab554b14bbfa3ef
Remove node_modules from git repo
#add 'node_modules' to .gitignore file
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin master