Skip to content

Instantly share code, notes, and snippets.

🌴
baiat bun

Florin florinutz

  • Berlin
Block or report user

Report or block florinutz

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
@florinutz
florinutz / update.go
Created Mar 29, 2019
Compressing a boltdb database using gz
View update.go
package main
import (
"bytes"
"compress/gzip"
"crypto/sha256"
"encoding/gob"
"fmt"
"io/ioutil"
"log"
View keybase.md

Keybase proof

I hereby claim:

  • I am florinutz on github.
  • I am fl0 (https://keybase.io/fl0) on keybase.
  • I have a public key ASD41zRDeGapfsblfBD7HAJvPMFQA-tz_5h4ykUwSO1HZgo

To claim this, I am signing this object:

View gist:56ba16479eb4482cc744f9528d28c96f
Ieşi omul negru
din negru bordei,
luă secure neagră
cu negru temei.
Merse la pădure
tăie negru lemn,
neagra lui secure
are-un negru semn
Făcu un plug negru
cu negru brăzdar,
@florinutz
florinutz / 0_reuse_code.js
Created Apr 21, 2017
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View gist:fb294b71594419effa417d078edaddc7
webapps/playlists ‹master*›$ GIT_SSH_COMMAND="ssh -v" git pull
OpenSSH_7.2p2, LibreSSL 2.4.1
debug1: Reading configuration data /Users/florin.ercus/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 20: Applying options for *
debug1: Connecting to gitlab.com [104.210.2.228] port 22.
debug1: Connection established.
debug1: identity file /Users/florin.ercus/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/florin.ercus/.ssh/id_rsa-cert type -1
View reference.php
<?php
// florin 10/10/14 4:15 PM
$a = new stdClass();
$a->panaMea = "Panama";
$b = $a;
$b->panaMea = "Uzbekistan";
var_export($a);
View Configuration.php
private function getFrequencySection()
{
$builder = new TreeBuilder();
$node = $builder->root('frequencies');
return $node
->cannotBeEmpty()
->requiresAtLeastOneElement()
->prototype('array')
->beforeNormalization()
->ifString()
View config.yml
frequency:
- [ P2D, 5 ]
- [ T13M, 20 ]
View InvoiceController.php
$pdfEngine = $this->container->get('knp_snappy.pdf');
$response
->setContent($pdfEngine->getOutputFromHtml($html, [
'header-left' => 'nothing',
'header-center' => 'nothing again',
'header-html' => $this->admin->generateUrl('pdf-header', [], true)
]))
->headers->add([
'Content-Type' => 'application/pdf',
'Content-Disposition' => 'attachment; filename="wyzbiz_invoice_' . $invoice->getInvoiceNumber() . '.pdf"'
View composer.json
{
"name": "symfony/framework-standard-edition",
"license": "MIT",
"type": "project",
"description": "The \"Symfony Standard Edition\" distribution",
"autoload": {
"psr-0": { "": "src/" }
},
"require": {
"php": ">=5.3.3",
You can’t perform that action at this time.