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 / bootstrap
Created May 12, 2016 14:22
bootstrap
http://startbootstrap.com/template-overviews/thumbnail-gallery/
@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 / web_design_resources
Last active May 12, 2016 23:20
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 / 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 / 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 / play
Last active April 9, 2016 12:56
Play framework
http://stackoverflow.com/questions/27848548/play-framework-2-3-x-bytechunks-mp3-streaming-has-no-playback-is-not-scrollabl
With(MP3Headers.class)
public static Result test() {
final int begin, end;
final boolean isRangeReq;
response().setHeader("Accept-Ranges", "bytes");
if (request().hasHeader("RANGE")) {
isRangeReq = true;
String[] range = request().getHeader("RANGE").split("=")[1].split("-");
@jgeek
jgeek / oracle_commands.txt
Created April 3, 2016 10:56
oracle commands
sqlplus / as sysdba
@jgeek
jgeek / spring.txt
Last active February 29, 2016 14:29
spring
http://www.baeldung.com/spring-boot-application-configuration
http://jmelo.lyncode.com/spring-boot-maven-plugin-without-referencing-parent/
http://www.leveluplunch.com/blog/2014/04/16/spring-boot-swagger-springmvc-configuration/
@jgeek
jgeek / logstash.txt
Last active October 26, 2015 11:05
logstash commands
# verify config file
$ logstash -f first-pipeline.conf --configtest
# run logstash with config file
$ logstash -f first-pipeline.conf
# pipleline example:
$ for (( ; ; )) do nc localhost 3333 < tomcat_logs/localhost_access_log.2015-08-20.txt ;
sleep 1;done
@jgeek
jgeek / bash.txt
Last active March 17, 2022 19:13
bash script
# loops:
#!/bin/bash
for i in 1 2 3 4 5
do
echo "Welcome $i times"
done
#!/bin/bash
for i in {1..5}
do