Skip to content

Instantly share code, notes, and snippets.


Ovidiu ovidiubuligan

  • Timisoa, Romania
View GitHub Profile
fson / example.js
Created Mar 17, 2016
Recursive GraphQL demo
View example.js
import { inspect } from 'util';
import {

How Do I Into Git?

a helpful primer for users sick of git's poorly-named commands

I've used Git since 2011, and this is the stuff that I've always had to Google to remember. I hope it helps you not hate Git so much.

Learning About the Repo

Learning About History

paragonie-scott /
Last active Jun 4, 2021
An Open Letter to Developers Everywhere (About Cryptography)
eyecatchup / get-win7-productkey.vbs
Created Aug 16, 2014
VBS Script to get the Windows(R) 7 Product Key from a PC's registry.
View get-win7-productkey.vbs
' VBS Script to get the Windows(R) 7 Product Key from a PC's registry.
' Save the VBScript as "getWin7Key.vbs" somewhere on your Windows7 PC.
' Now, when you double-click the local script file an alertbox pops up
' displaying the product key stored in the machine's Windows registry.
Set WshShell = WScript.CreateObject("WScript.Shell")
KeyPath = "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId"
MsgBox ExtractKey(WshShell.RegRead(KeyPath))
davidchase / SassMeister-input.scss
Created Mar 21, 2014
Generated by
View SassMeister-input.scss
// ----
// Sass (v3.3.3)
// Compass (v1.0.0.alpha.18)
// ----
%transition {
-webkit-transition :0.5s ease all;
transition :0.5s ease all;
position :absolute;
left :0;
TemporaryJam / Howto convert a PFX to a seperate .key & .crt file
Last active Apr 13, 2021
How to convert a .pfx SSL certificate to .crt/key (pem) formats. Useful for NGINX
View Howto convert a PFX to a seperate .key & .crt file
`openssl pkcs12 -in [yourfile.pfx] -nocerts -out [keyfile-encrypted.key]`
What this command does is extract the private key from the .pfx file. Once entered you need to type in the importpassword of the .pfx file. This is the password that you used to protect your keypair when you created your .pfx file. If you cannot remember it anymore you can just throw your .pfx file away, cause you won’t be able to import it again, anywhere!. Once you entered the import password OpenSSL requests you to type in another password, twice!. This new password will protect your .key file.
Now let’s extract the certificate:
`openssl pkcs12 -in [yourfile.pfx] -clcerts -nokeys -out [certificate.crt]`
mgol / chrome-angular.js
Last active Feb 27, 2020
Chrome DevTools Snippet for Angular apps.
View chrome-angular.js
var ngAppElem = angular.element(document.querySelector('[ng-app]') || document);
window.$injector = ngAppElem.injector();
window.inject = $injector.invoke;
window.$rootScope = ngAppElem.scope();
// getService('auth') will create a variable `auth` assigned to the service `auth`.
var getService = serviceName =>
inject([serviceName, s => window[serviceName] = s]);
import time
import sys
import os
import ctypes
ES_CONTINUOUS = 0x80000000
View TodoMVC.html
<!doctype html>
<html lang="en">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Ply • TodoMVC</title>
<link rel="stylesheet" href="app/app.css">
<link rel="import" href="../../ply-comp/">
<link rel="import" href="ply-todos/">
Anks / package.json
Created Aug 20, 2012
Easy local development with a node.js proxy
View package.json
"name": "your-app-name",
"version": "0.0.1",
"private": true,
"dependencies": {
"http-proxy": "0.8.x",
"connect": "2.3.x"