Skip to content

Instantly share code, notes, and snippets.

View veteran29's full-sized avatar
🥔
💥

Filip Maciejewski veteran29

🥔
💥
View GitHub Profile
@damienalexandre
damienalexandre / src_Dalexandre_MyBundle_Pagerfanta_Adapter_DoctrineORMNativeQueryAdapter.php
Created August 23, 2011 08:29
This file is not part of the Pagerfanta package. We hack the Pagerfanta to allow Doctrine nativeQuery pagination.
<?php
/*
* This file is not part of the Pagerfanta package.
* We hack the Pagerfanta to allow Doctrine nativeQuery pagination.
*/
namespace Dalexandre\MyBundle\Pagerfanta\Adapter;
use Doctrine\ORM\QueryBuilder;
@rrrodrigo
rrrodrigo / instagram-download.txt
Created April 10, 2012 11:45
How to download all your Instagram pictures in highest resolution without using any API
Following the news about Facebook buying Instagram I decided to delete my Instagram account before Facebook claims ownership of my pictures.
Since the Instagram-recommended (in their FAQ): http://instaport.me/export doesn't work for me (probably they can't cope with the high demand),
here is a quick and dirty way to download all my Instagram pictures in their highest resolution in a few easy steps.
You will need: Firefox, Firebug, some text editor, wget
1. Go to http://statigr.am/yourlogin using Firefox with Firebug extension active
2. Scroll down as many times as it is needed to have all yor pictures thumbnails displayed (I had some 3 hundred pictures so it was not that much scrolling, YMMV)
3. In the Firebug JS console run this JS code: $(".lienPhotoGrid a img").each(function(index) { console.log($(this).attr('src')) })
4. JS console will contain urls to all the thumbnails images, like this: http://distilleryimage1.s3.amazonaws.com/4ed46cf2801511e1b9f1123138140926_5.jpg
@jstangroome
jstangroome / gist:3087453
Created July 11, 2012 01:58
Change your own Active Directory password from PowerShell without any special permissions
([adsi]'WinNT://domain/username,user').ChangePassword('oldpassword','newpassword')
@Ocramius
Ocramius / User.php
Last active July 24, 2024 14:38
Doctrine 2 ManyToMany - the correct way
<?php
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
/**
* @ORM\Entity()
* @ORM\Table(name="user")
*/
class User
@DavidMah
DavidMah / filedownloader.js
Created August 30, 2012 17:03
File Download requests using jquery/POST request with psuedo ajax
// Takes a URL, param name, and data string
// Sends to the server.. The server can respond with binary data to download
jQuery.download = function(url, key, data){
// Build a form
var form = $('<form></form>').attr('action', url).attr('method', 'post');
// Add the one key/value
form.append($("<input></input>").attr('type', 'hidden').attr('name', key).attr('value', data));
//send request
form.appendTo('body').submit().remove();
@joeriks
joeriks / createAppLoginWidget.ts
Created February 11, 2013 12:28
Sample custom KendoUI widget using Typescript - with intellisense niceness. Showing html creation, event handling, public element referencing and subviews (show/hide). Simplicity.
module createAppLoginWidget {
declare var kendo;
declare var ui;
declare var $;
var ui = kendo.ui, Widget = ui.Widget
class AppLoginWidget {
@inhies
inhies / twrp.sh
Last active May 16, 2024 14:12
Creates TWRP compatible backups over USB using ADB without any files ever touching your SD card.
#!/bin/bash
#
# Version 1.4
#
# twrp.sh -- a TWRP compatible backup script for your computer
# Brought to you by inhies
#
# This script creates TWRP compatible backups over usb using adb and magikz
# By default it makes a folder in the standard TWRP date--time format (I think)
# To restore these backups, place the folder in /sdcard/TWRP/BACKUPS/<serialnumber>/
@maman
maman / README.md
Created March 17, 2013 09:04
TinyWM made with Autohotkey

tiny AHK-Based Window helper, to maximize productivity. the default keybinds are :

  • Alt + w to resize and move window to top-half.

  • Alt + x to resize and move window to bottom-half.

  • Alt + s to resize and move window to full center.

  • Alt + a to resize and move window to left-half.

  • Alt + d to resize and move window to right-half.

  • Ctrl + Alt + Space to toggle taskbar

@raelgc
raelgc / Email Server (Windows Only).md
Last active October 29, 2024 07:22
Setup a Local Only Email Server (Windows Only)

Moved

Now located at https://github.com/JeffPaine/beautiful_idiomatic_python.

Why it was moved

Github gists don't support Pull Requests or any notifications, which made it impossible for me to maintain this (surprisingly popular) gist with fixes, respond to comments and so on. In the interest of maintaining the quality of this resource for others, I've moved it to a proper repo. Cheers!