Skip to content

Instantly share code, notes, and snippets.

View Rambou's full-sized avatar
🏠
Working from home

Nikolas Bousios Rambou

🏠
Working from home
View GitHub Profile
@Rambou
Rambou / dbca.rsp
Created November 4, 2018 20:47
Response file for database creation
##############################################################################
## ##
## DBCA response file ##
## ------------------ ##
## Copyright 1998, 2014, Oracle Corporation. All Rights Reserved. ##
## ##
## Specify values for the variables listed below to customize Oracle ##
## Database Configuration installation. ##
## ##
## Each variable is associated with a comment. The comment identifies the ##
######################################################################
## Copyright(c) 1998, 2014 Oracle Corporation. All rights reserved. ##
## ##
## Specify values for the variables listed below to customize your ##
## installation. ##
## ##
## Each variable is associated with a comment. The comment ##
## identifies the variable type. ##
## ##
## Please specify the values in the following format: ##
@Rambou
Rambou / db_install.rsp
Created November 4, 2018 18:26
Oracle 12c Database install response file
####################################################################
## Copyright(c) Oracle Corporation 1998,2014. All rights reserved.##
## ##
## Specify values for the variables listed below to customize ##
## your installation. ##
## ##
## Each variable is associated with a comment. The comment ##
## can help to populate the variables with the appropriate ##
## values. ##
## ##
@Rambou
Rambou / gist:c6769caee19b0b9915d8342b86c3ef72
Last active June 13, 2022 09:39
Installing Nvidia propreatary drivers in Linux with UEFI enabled
If, like me, your are booting with UEFI (because having a triple boot ubuntu-windows-mac or because UEFI is the most modern type of bootloader and successor of EFI :p), you have to sign the proprietary modules each time they are recompiled (or upgrade kernel version) so that they are allowed to be loaded in the kernel.
1) Step one, create a self-signed certificate to sign nvidia driver:
sudo openssl req -new -x509 -newkey rsa:2048 -keyout UEFI.key -outform DER -out UEFI.der -nodes -days 36500 -subj "/CN=rambou_nvidia/"
2) step two load and store certificate in a supplementary key database MOC
sudo mokutil --import UEFI.der
3) step three reboot your system
At this step after reboot you will be prompted to select your certificate to import in in key database. If you have inserted a password at certificate creation you'll be prompted to insert it. If you are not prompted, you may have to enter the BIOS by using function keys at boot time.
@Rambou
Rambou / 0_reuse_code.js
Created August 23, 2016 13:08
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@Rambou
Rambou / SSO and LDAP
Last active January 16, 2022 15:05
Greek Universities SSO and LDAP servers
Agricultural University of Athens - https://sso.aua.gr/login - noc.aua.gr DN
Aristotle University of Thessaloniki - https://www.it.auth.gr/saml_login?custom_return=eForms%2Faai - ldap.auth.gr DN: o=auth,c=GR
Athens University of Economics and Business - https://sso.aueb.gr/login
Athens school of fine arts - https://sso.asfa.gr/login
Democritus University of Thrace - https://login.duth.gr
Harokopio University - https://sso.hua.gr/login
Hellenic Open University - https://login.eap.gr/idp/Authn/UserPassword
International Hellenic University - http://sso.ihu.edu.gr/idp/
Ionian University - https://sso.ionio.gr/login
National Technical University of Athens - https://login.ntua.gr/idp/Authn/UserPassword
@Rambou
Rambou / winexe_xenial_ubuntu_build.sh
Last active March 8, 2022 20:28
Building - installing winexe for Ubuntu 16 xenial
sudo su && git clone git://git.code.sf.net/u/mstowe/winexe u-mstowe-winexe && cd u-mstowe-winexe/source && apt-get -y install python2.7 gcc-mingw-w64 libtevent-dev samba-dev && ln -s /usr/lib/x86_64-linux-gnu/samba/libcli-ldap.so.0 /usr/lib/x86_64-linux-gnu/samba/libcli-ldap-samba4.so.0 ; ln -s /usr/lib/x86_64-linux-gnu/samba/libdcerpc-samba.so.0 /usr/lib/x86_64-linux-gnu/samba/libdcerpc-samba-samba4.so.0 ; ln -s /usr/lib/x86_64-linux-gnu/samba/liberrors.so.0 /usr/lib/x86_64-linux-gnu/samba/liberrors-samba4.so.0 ; ./waf configure build && build/winexe --help
@Rambou
Rambou / install.sh
Last active July 15, 2016 00:08
PopcornTime Ubuntu install script
#!/usr/bin/env bash
sudo su
curl -SO# https://popcorntime.sh/download/build/Popcorn-Time-0.3.9-Linux-64.tar.xz
mkdir -p /opt/popcorntime
tar xf Popcorn-Time-0.3.9-Linux-64.tar.xz -C /opt/popcorntime
curl -SO# http://freemobileapk.com/wp-content/uploads/2014/09/com_nostracasa_android_popcorntimegame.png
mv com_nostracasa_android_popcorntimegame.png /opt/popcorntime/
curl -SO# https://gist.githubusercontent.com/Rambou/3a560d99bdf234a94e08693bc60b972f/raw/6880fd89d2b8fbee9bb6c9796fe4f70a7be158b5/popcorntime.desktop/popcorntime.desktop
mv popcorntime.desktop /usr/share/applications/
@Rambou
Rambou / ask_ldap.php
Created April 11, 2016 04:33
A php script to make questions against LDAP Aegean University server and authenticating users.
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
</head>
<body>
<?php
$ldap_server = "ldap://zeus.aegean.gr";
$ldap_dn = "dc=aegean,dc=gr"; // dn for your organization
$ldap_domain = "aegean";
$ldap_username = 'ACADEMIC_USERNAME';
@Rambou
Rambou / .bat
Created December 13, 2015 00:36
Windows 10 Hotspot
TITLE Hotspot Creator
netsh wlan set hostednetwork mode=allow ssid=Rambou key=password
netsh wlan start hostednetwork
ECHO "Hotspot with SSID Rambou and Password=password Started"
PAUSE