Skip to content

Instantly share code, notes, and snippets.

Popa Marius Adrian mariuz

Block or report user

Report or block mariuz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mariuz
mariuz / execute_insert_statement.py
Created May 19, 2012
new fdb firebird driver example :execute insert statement
View execute_insert_statement.py
# $ pip install fdb
# use this documentation for the moment http://www.firebirdsql.org/file/documentation/drivers_documentation/python/3.3.0/tutorial.html#connecting-to-a-database
import fdb as kinterbasdb
con = kinterbasdb.connect(dsn='/var/lib/firebird/2.5/data/rdbgraph.fdb', user='sysdba', password='masterkey')
cur = con.cursor()
# Execute the insert statement:
name="name"
@mariuz
mariuz / DriverExample.java
Created Jun 23, 2011
Firebird driver example using jaybird-full jar
View DriverExample.java
// Original version of this file was part of InterClient 2.01 examples
//
// Copyright InterBase Software Corporation, 1998.
// Written by com.inprise.interbase.interclient.r&d.PaulOstler :-)
//
// Code was modified by Roman Rokytskyy to show that Firebird JCA-JDBC driver
// does not introduce additional complexity in normal driver usage scenario.
//
// A small application to demonstrate basic, but not necessarily simple, JDBC features.
//
@mariuz
mariuz / upgrade log
Created Nov 3, 2012
Ubuntu 12.10 to debian sid upgrade
View upgrade log
sudo apt-get -f -o Dpkg::Options::="--force-overwrite" dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be REMOVED:
alsa-utils anacron apport apport-gtk at avahi-daemon avahi-utils blueman
bluez bluez-alsa cgroup-lite chromium-codecs-ffmpeg cmap-adobe-japan1
cmap-adobe-japan2 cups cups-driver-gutenprint friendly-recovery
gconf-service-backend gs-cjk-resource hostname hplip jockey-gtk kvm
@mariuz
mariuz / emperor.sh
Last active Feb 9, 2019
uwsgi emperor init script for debian 7.x
View emperor.sh
#!/usr/bin/env bash
### BEGIN INIT INFO
# Provides: emperor
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the uwsgi emperor app server
# Description: starts uwsgi emperor app server using start-stop-daemon
View whois your godaddy.com.txt
whois godaddy.com
seems that their dns servers are hacked
http://news.ycombinator.com/item?id=4500993
Whois Server Version 2.0
Domain names in the .com and .net domains can now be registered
with many different competing registrars. Go to http://www.internic.net
View pdo_example_firebird.php
<?php
$str_conn="firebird:host=localhost;dbname=/var/lib/firebird/2.5/data/employee.fdb;charset=UTF8";
$dbh = new PDO($str_conn, "sysdba", "masterkey");
?>
@mariuz
mariuz / database.detach.js
Created May 8, 2014
database.detach() node-firebird example
View database.detach.js
fb = require("node-firebird");
fb.attach(
{
host: 'localhost',
database: '/tmp/firedjango.fdb',
user: 'SYSDBA',
password: '*********'
},
function(err, db){
if (err) {
View VideoLoadManager.cs
using UnityEngine;
using System.Collections;
using System;
using System.IO;
public class VideoLoadManager : Singleton<VideoLoadManager>
{
public enum TourType
{
Guided,
@mariuz
mariuz / Delicious_Backup.htm
Created Dec 20, 2010
Deleted my delicious account (check) , use git for bookmarks (check) imported bookmarks in google chrome check
View Delicious_Backup.htm
<!DOCTYPE NETSCAPE-Bookmark-file-1>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<!-- This is an automatically generated file.
It will be read and overwritten.
Do Not Edit! -->
<TITLE>Bookmarks</TITLE>
<H1>Bookmarks</H1>
<DL><p><DT><A HREF="http://blog.curiasolutions.com/2010/11/the-great-web-technology-shootout-%E2%80%93-round-4-pyramid-vs-django-vs-tg-vs-rails-2-3/" ADD_DATE="1292420589" PRIVATE="0" TAGS="rails,python,benchmark,webdev,ruby">The great web technology shootout – Round 4: Pyramid vs ...</A>
<DT><A HREF="http://vimeo.com/17672519" ADD_DATE="1292167054" PRIVATE="0" TAGS="devops">Jacob Kaplan-Moss on DevOps at Boston Django Meetup 2010</A>
<DD>devops = programmer+sysadmin
View VRMouseLook.cs
using UnityEngine;
using UnityEngine.VR;
public class VRMouseLook : MonoBehaviour {
#if UNITY_EDITOR
public bool enableYaw = true;
public bool autoRecenterPitch = true;
public bool autoRecenterRoll = true;
You can’t perform that action at this time.