Skip to content

Instantly share code, notes, and snippets.

View GLinBoy's full-sized avatar
🎱
O(≧∇≦)O

Hojjat Abedi GLinBoy

🎱
O(≧∇≦)O
View GitHub Profile
@GLinBoy
GLinBoy / TestNativeQueryToListJson.java
Created August 12, 2021 18:39 — forked from baxtheman/TestNativeQueryToListJson.java
Java JPA Native Query using Tuple and return List of Jackson JSON Object
/*
Needs Hibernate 5.2.11.Final
*/
public List<ObjectNode> getQuery(
Integer anno,
Integer settimana) {
Query q = em.createNativeQuery(
"NATIVE SQL....",Tuple.class);
@GLinBoy
GLinBoy / web-servers.md
Created April 21, 2019 13:40 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@GLinBoy
GLinBoy / gist:0a4170ffbccfcf507b258ac716c02103
Created October 7, 2018 11:15 — forked from sartak/a.md
Anki 2 annotated schema
-- see https://github.com/ankidroid/Anki-Android/wiki/Database-Structure for a more maintained version of this
-- cards are what you review. easy!
CREATE TABLE cards (
id integer primary key,
-- the epoch milliseconds of when the card was created
nid integer not null,
-- notes.id
did integer not null,
-- deck id (available in col table)
@GLinBoy
GLinBoy / docker-compose.yml
Created February 18, 2018 06:08 — forked from marcelbirkner/docker-compose.yml
CI Tool Stack Docker Compose
nexus:
build: ./nexus
ports:
- "18081:8081"
jenkins:
build: ./jenkins
ports:
- "18080:8080"
links:
@GLinBoy
GLinBoy / wget-jdk-oracle-install-example.txt
Created February 8, 2018 21:22 — forked from sr75/wget-jdk-oracle-install-example.txt
wget command to install Oracle JAVA JDK from stupid oracle website for centos and ubuntu
http://d.stavrovski.net/blog/post/how-to-install-and-setup-oracle-java-jdk-in-centos-6
# rpm
wget --no-cookies \
--no-check-certificate \
--header "Cookie: oraclelicense=accept-securebackup-cookie" \
"http://download.oracle.com/otn-pub/java/jdk/7u55-b13/jdk-7u55-linux-x64.rpm" \
-O jdk-7-linux-x64.rpm
# ubuntu