Skip to content

Instantly share code, notes, and snippets.

View saninb's full-sized avatar
🎯
Focusing

Sanin saninb

🎯
Focusing
View GitHub Profile
@saninb
saninb / c++ rekurzija
Created January 23, 2014 18:01
c++ rekurzija
#include <iostream>
using namespace std;
void rekurzija(int argument);
void main()
{
int broj = 0;
do
{
@saninb
saninb / refinery_overrides.txt
Created October 16, 2014 11:12
Refinery CMS overrides list
When starting a project that includes refinerycms-blog:
$ rake refinery:override view=refinery/pages/*
$ rake refinery:override view=layouts/*
$ rake refinery:override view=refinery/blog/shared/*
$ rake refinery:override view=refinery/blog/posts/*
$ rake refinery:override view=refinery/*
$ rake refinery:override controller=refinery/blog/*
$ rake refinery:override controller=refinery/*
@saninb
saninb / 0_reuse_code.js
Created April 11, 2016 10:12
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@saninb
saninb / new_gist_file_0
Created October 2, 2016 08:37
Truncate SQL Server log file
ALTER DATABASE mydatabase SET RECOVERY SIMPLE
DBCC SHRINKFILE (mydatabase_Log, 1)
@saninb
saninb / editor.css
Created February 7, 2017 13:59 — forked from Hendrixer/editor.css
VS code custom CSS for theme
.composite-title, .composite-title, .vs-dark .monaco-workbench>.activitybar>.content {
background-color: rgba(40, 44, 52, 1) !important;
}
.tabs-container, .tab, .tab.active, .title-actions, .tablist, .tabs-container, .tabs, .composite.title {
background-color: rgba(40, 44, 52, 1) !important;
}
.tab.active, .tab {
border-right: 0px !important;
@saninb
saninb / keystone2heroku.md
Created April 6, 2017 06:26 — forked from vitalbone/keystone2heroku.md
Deploying KeystoneJS to Heroku

Deploying a Keystone App to Heroku

Keystone comes completely set up to install on Heroku in a couple of steps.

1. Sign up for a Heroku account and install the Heroku Toolbelt.

Log in with it and you're ready to begin. Heroku uses git to deploy a new site, so with that in mind:

2. Create a new repository on Github and then clone it.

@saninb
saninb / README.md
Created October 31, 2017 12:31 — forked from ngryman/README.md
intellij javascript live templates

intellij javascript live templates

Just a dump of handy live templates I use with IntelliJ. They should also work with WebStorm.

How to

  • Go to settings.
  • Search for live templates.
  • Under the javascript section you should be able to manage your templates.
@saninb
saninb / vsdbg.md
Last active March 24, 2021 18:21
Debugging .Net Core apps on AWS Elastic Beanstalk from Visual Studio

If you have sudo privileges then this is relatively easy, and can be kept secured to those users with sudo privs. Avoids needing to reconfigure users/environments, and allows you to debug any process on the machine regardless of which user account it is running as.

If you use Visual Studio to make an initial attempt to debug you will find that a ~/.vs-debugger folder has been created in the home directory of the user account you were attempting to use. This command will help you locate the vsdbg binary which was installed. You can install VsDbg manually but I find leveraging the automated process is easier. If you are using VSCode this becomes a manual process, and an exercize left for the reader, but I would still use VS2019 IDE to prep the target just to keep things consistent between tools.

find ~ | grep vsdbg

For my installation the binary is located at ~/.vs-debugger/vs2019/vsdbg and this path will most likely change over time.

First, rename the binary to something convenient: