Skip to content

Instantly share code, notes, and snippets.

Goksel Eryigit
Senior Full Stack Developer
Helsinki, Finland
+358442453888
geryit@gmail.com
https://geryit.com • https://www.linkedin.com/in/geryit/ • https://github.com/geryit
ABOUT ME
I am a Full-stack Software Engineer with over 10 years of specialized experience in Web and Mobile App development. Previously, I worked with Udemy (4 years on-site, 2 years remote) and Carbon Health San Francisco (7 years remote). I am currently searching for either a new contract or a permanent position.
@geryit
geryit / ws.ws
Created December 21, 2020 23:09
import utils.HardcodedDatabaseIds.carbonPracticeIds
import models._
import DBDriver.api._
import slick.dbio.Effect
import utils.Util._
import scala.concurrent.Future
import scala.concurrent.ExecutionContext.Implicits.global
import scala.concurrent.Await
import scala.concurrent.duration._
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.uytu
#Persistent
#SingleInstance Force ; Allow only one running instance of script.
#InstallKeybdHook
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
#IfWinActive ahk_exe atom.exe
^r:: ; press control+r to reload
Reload
return
#IfWinActive ahk_class Age3 ; Hotkeys above will works only if age of empires 3 (re/ep) is open
XButton2::
Send {Shift down}{XButton2}{Shift up} ; select all idle vills (side button on mouse (side/bottom)) . Change `XButton2` with whatever you setup idle villagers in hotkeys
return
CapsLock::+a ; select all military (select all military button is set to `shift+a` in my hotkeys)
~Tab::Send, /^w/ ; switch and focus between your heros with tab (`shift+w` : remove from groups, `/`: find hero in my hotkeys) (this removes hero from group and selects it)
startRandomGame() modeEnter("Pregame") doMPSetup(true)
// Agra(wonder) hotkeys (sepoy with key "s" etc )
map("u", "game", "uiFindType(\"ypWIAgraFort2\") uiFindType(\"ypWIAgraFort3\") uiFindType(\"ypWIAgraFort4\") uiFindType(\"ypWIAgraFort5\")")
map("s", "WonderAccel", "tis(\"ypSepoy\", 5)")
map("d", "WonderAccel", "tis(\"ypNatMercGurkha\", 5)")
map("x", "WonderAccel", "tis(\"ypRajput\", 5)")
// Flair shortcut (ctrl + space)
sudo cat /var/lib/dkms/virtualbox/5.2.18/build/make.log 13:51:33
DKMS make.log for virtualbox-5.2.18 for kernel 5.1.3-050103-generic (x86_64)
Thu May 16 13:49:17 PDT 2019
make: Entering directory '/usr/src/linux-headers-5.1.3-050103-generic'
CC [M] /var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/linux/SUPDrv-linux.o
CC [M] /var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/SUPDrv.o
CC [M] /var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/SUPDrvGip.o
CC [M] /var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/SUPDrvSem.o
CC [M] /var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/SUPDrvTracer.o
CC [M] /var/lib/dkms/virtualbox/5.2.18/build/vboxdrv/SUPLibAll.o
/D/kernel ❯❯❯ sudo cat /var/lib/dkms/evdi/5.1.26/build/make.log 13:51:33
DKMS make.log for evdi-5.1.26 for kernel 5.1.3-050103-generic (x86_64)
Thu May 16 13:48:50 PDT 2019
make KBUILD_VERBOSE=1 SUBDIRS=/var/lib/dkms/evdi/5.1.26/build SRCROOT=/var/lib/dkms/evdi/5.1.26/build CONFIG_MODULE_SIG= -C /lib/modules/5.1.3-050103-generic/build modules
make[1]: Entering directory '/usr/src/linux-headers-5.1.3-050103-generic'
Makefile:205: ================= WARNING ================
Makefile:206: 'SUBDIRS' will be removed after Linux 5.3
Makefile:207: Please use 'M=' or 'KBUILD_EXTMOD' instead
Makefile:208: ==========================================
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
@geryit
geryit / carbon healthline widget.md
Last active April 4, 2019 18:48
carbon healthline widget
<!doctype html>
<html lang="en">
<head>
  <style>#carbonhealth-widget iframe {min-height: 310px;width: 425px;}</style>
</head>

<body>
  <div id="carbonhealth-widget"></div>
 
Add this into `/Document/My Games/Age of Empires 3/Startup/user.con`
// Agra(wonder) hotkeys (sepoy with key "s" etc )
map("s", "WonderAccel", "tis(\"ypSepoy\", 5)")
map("d", "WonderAccel", "tis(\"ypNatMercGurkha\", 5)")
map("x", "WonderAccel", "tis(\"ypRajput\", 5)")
map("d", "BarracksAccel", "tis(\"ypNatMercGurkha\", 5)")
// Flair shortcut (ctrl + space)
alias upgrade="sudo apt-get dist-upgrade -y && sudo apt-get clean && sudo apt-get autoclean -y && sudo apt-get autoremove -y && sudo reboot"
alias apache-log="sudo tail -f /var/log/apache2/error.log"
alias apache-restart="sudo apachectl configtest && sudo systemctl restart apache2"
alias find-big-files="du -aBM 2>/dev/null | sort -nr | head -n 50 | more"
alias find-large-files="cd /;du -aBM 2>/dev/null | sort -nr | head -n 50 | more"
alias space-left="df -h"
alias ram-left="free --human"