Skip to content

Instantly share code, notes, and snippets.

View billniakas's full-sized avatar

Bill Niakas billniakas

View GitHub Profile
@billniakas
billniakas / christmastree.py
Created January 4, 2019 15:40
Christmas Tree in Python
print(21*" ","*")
for i in range(0,20):
print((20-i)*" ",i*"*","|",i*"*")
print(20*" ","|||")
print(11*" ","ΚΑΛΕΣ ΓΙΟΡΤΕΣ ΣΕ ΟΛΟΥΣ")

Keybase proof

I hereby claim:

  • I am billniakas on github.
  • I am becoming_i (https://keybase.io/becoming_i) on keybase.
  • I have a public key ASDWLxrgVRRhRKf0uPJtVmDipUbcNqxHKkTj6j0EE6xBWAo

To claim this, I am signing this object:

@billniakas
billniakas / tweaks.md
Created July 10, 2017 07:14 — forked from jakelee8/tweaks.md
Linux performance tweaks

Linux performance tweaks

All commands are run as root.

Enable swap file

Create the swap file using either of these commands. fallocate is faster but may not work on all filesystems.

fallocate -l 32G /swap/swap0
@billniakas
billniakas / linux_performance.md
Created July 10, 2017 07:13 — forked from marianposaceanu/linux_performance.md
Linux simple performance tweaks

Linux simple performance tweaks

Change the I/O Scheduler

Open $ vim /etc/default/grub then add elevator=noop next to GRUB_CMDLINE_LINUX_DEFAULT. Run $ update-grub and $ cat /sys/block/sda/queue/scheduler to be sure that noop is being used:

$ vim /etc/default/grub
$ update-grub
$ cat /sys/block/sda/queue/scheduler

[noop] deadline cfq