Skip to content

Instantly share code, notes, and snippets.

View mariuz's full-sized avatar

Popa Marius Adrian mariuz

View GitHub Profile
@mariuz
mariuz / create.ts
Last active November 19, 2019 17:20
create database typescript using node-firebird-driver-native
import { createNativeClient, getDefaultLibraryFilename } from 'node-firebird-driver-native';
const connect_options = { username: 'sysdba', password: 'masterkey' }
async function create() {
const client = createNativeClient(getDefaultLibraryFilename());
const attachment = await client.createDatabase('localhost:/tmp/new-db.fdb', connect_options);
await client.dispose();
}
@mariuz
mariuz / upgrade log
Created November 3, 2012 15:22
Ubuntu 12.10 to debian sid upgrade
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 / whois your godaddy.com.txt
Created September 10, 2012 19:12
whois your godaddy.com
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
@mariuz
mariuz / database.detach.js
Created May 8, 2014 15:33
database.detach() node-firebird example
fb = require("node-firebird");
fb.attach(
{
host: 'localhost',
database: '/tmp/firedjango.fdb',
user: 'SYSDBA',
password: '*********'
},
function(err, db){
if (err) {
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 December 20, 2010 15:35
Deleted my delicious account (check) , use git for bookmarks (check) imported bookmarks in google chrome check
<!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
using UnityEngine;
using UnityEngine.VR;
public class VRMouseLook : MonoBehaviour {
#if UNITY_EDITOR
public bool enableYaw = true;
public bool autoRecenterPitch = true;
public bool autoRecenterRoll = true;
@mariuz
mariuz / firebird3.0.3.crash
Created May 16, 2017 18:04
firebird3.0.3 crash when compiling on a non sse4 host Pentium(R) Dual-Core CPU E5400
/home/mariuz/Work/firebird/firebird/gen/Release/firebird/bin/gpre_current -m -z -n /home/mariuz/Work/firebird/firebird/src/yvalve/blob.epp /home/mariuz/Work/firebird/firebird/temp/Release/yvalve/blob.cpp
gpre version LI-V3.0.3.32722 Firebird 3.0
*** Error in `/home/mariuz/Work/firebird/firebird/gen/Release/firebird/bin/gpre_current': free(): invalid size: 0x00007f3f7017c2a0 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x7908b)[0x7f3f6f45f08b]
/lib/x86_64-linux-gnu/libc.so.6(+0x826fa)[0x7f3f6f4686fa]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7f3f6f46c12c]
/home/mariuz/Work/firebird/firebird/gen/Release/firebird/bin/gpre_current(+0x93fc0)[0x55c953ed2fc0]
/home/mariuz/Work/firebird/firebird/gen/Release/firebird/bin/gpre_current(+0x8756c)[0x55c953ec656c]
/home/mariuz/Work/firebird/firebird/gen/Release/firebird/bin/gpre_current(+0x8777c)[0x55c953ec677c]
@mariuz
mariuz / pppoe rds.log
Created April 4, 2012 19:16
pppoe rds router msi
0554:PPPoE: Automatically dialing on demand.
383 0554:Standard authentication.
384 0555:PPPoE: Sending PADI.
385 0555:Invalid PADT packt received.
386 0555:PPPOE_TAG_SVC_NAME=ftth
387 0555:The first service name is accepted.
388 0555:PPPoE: Received PADO,AC-Name=ftth,AC-MAC=002655DEBA40.
389 0555:PPPoE: Sending PADR.
390 0555:PPPoE: Received PADS,Session-ID=0x318,AC-MAC=002655DEBA40.
391 0555:LCP tx Req,MRU=05C8;Magic=0000FC3A;
@mariuz
mariuz / vivagraph.html
Created June 4, 2012 18:04
simple example with 3 nodes vivagraphjs test
<html>
<head>
<script src="./dist/vivagraph.js"></script>
<script type='text/javascript'>
function onLoad() {
var g = Viva.Graph.graph();
g.addNode('1','User name 1');
g.addNode('2','User name 2');
g.addNode('3','User name 3');
g.addLink('1', '2');