Skip to content

Instantly share code, notes, and snippets.

View jgeek's full-sized avatar

MohammadReza Kargar jgeek

  • Snapptrip
  • Tehran, Iran
View GitHub Profile
@jgeek
jgeek / gerrit.txt
Last active April 24, 2016 11:46
gerrit ldap
ldap installation:
https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-a-basic-ldap-server-on-an-ubuntu-12-04-vps
----------
No index versions ready; run Reindex
solution:
$java -jar gerrit.war reindex
----------------
The first user who logs in an empty Gerrit instance becomes an admin.
Please check in your database how many accounts you have created:
@jgeek
jgeek / mac_linux
Last active February 26, 2022 03:43
installing ubuntu on macbook
http://freedompenguin.com/articles/how-to/installing-ubuntu-mate-macbook-pro-uefi/
http://www.makeuseof.com/tag/install-linux-macbook-pro/
http://www.travisllado.com/2015/05/triple-booting-2015-macbook-pro-with.html
http://lifehacker.com/5531037/how-to-triple-boot-your-mac-with-windows-and-linux-no-boot-camp-required
http://www.howtogeek.com/187410/how-to-install-and-dual-boot-linux-on-a-mac/
http://tech.ivkin.net/wiki/Linux_and_Unix_How_To#How_to_install_Ubuntu_15.10_on_an_early_2015_MacBook_Pro_.28Retina_12.2C1.29_with_full_disk_encryption
https://www.reddit.com/r/linux/comments/4ft87o/ubuntu_1604_meets_retina_macbook_pro/
https://www.reddit.com/r/Ubuntu/comments/4eptxa/how_is_ubuntu_1604_xenial_on_the_macbook_12_early/
http://lesavik.net/post/getting-ubuntu-linux-to-work-on-macbook-air-7.2/
@jgeek
jgeek / web_design_resources
Last active September 1, 2025 13:09
web design
http://fontmeme.com/comic-fonts/#none
# mouse over effects
https://designshack.net/articles/css/joshuajohnson-2/
#slider
http://www.jssor.com/
#player
http://bootsnipp.com/snippets/k737W
# green icon
http://www.iconsdb.com/green-icons/
@jgeek
jgeek / angularjs
Last active May 12, 2016 13:13
angularjs
http://perminder-klair.github.io/angular-soundmanager2/
https://github.com/angular-ui/ui-router
https://github.com/angular/angular-seed
@jgeek
jgeek / bootstrap
Created May 12, 2016 14:22
bootstrap
http://startbootstrap.com/template-overviews/thumbnail-gallery/
@jgeek
jgeek / play _framework
Created May 15, 2016 11:24
play framework
activator -Dactivator.checkForUpdates=false -jvm-debug 9999
@jgeek
jgeek / apache_solr
Last active May 30, 2016 11:05
apache solr
# foreground and verbous
$ solr start -f -p 81 -V
# create core
$ ./solr create -c hellosolr
# -m heap size
$ solr start -p 8983 -h localhost -m 4g
# create core from sample config
@jgeek
jgeek / scala_notes
Last active October 20, 2020 15:20
scala notes
https://booksites.artima.com/programming_in_scala_4ed/examples/
loan pattern: open a resource,operate on it, and then close the resource.
function literals, and function values
Scala supports first-class functions, which means you can express functions in
function literal syntax, i.e., (x: Int) => x + 1 ,
and that functions can be represented by objects, which are called function values.
function literals and
values is that function literals exist in the source code, whereas function val-
@jgeek
jgeek / cassandra_notes
Last active October 5, 2020 16:03
Cassandra notes
Cassandra uses a special type of primary key called a composite key (or compound
key) to represent groups of related rows, also called partitions. The composite key
consists of a partition key, plus an optional set of clustering columns. The partition key
is used to determine the nodes on which rows are stored and can itself consist of mul‐
tiple columns. The clustering columns are used to control how data is sorted for stor‐
age within a partition. Cassandra also supports an additional construct called a static
column, which is for storing data that is not part of the primary key but is shared by
every row in a partition.
So the outermost structure in Cassandra is the cluster, sometimes called
Liskov Substitution Principle:
http://www.blackwasp.co.uk/squarerectangle.aspx
https://www.baeldung.com/solid-principles