Skip to content

Instantly share code, notes, and snippets.

View anovsiradj's full-sized avatar

MDMCDC anovsiradj

View GitHub Profile
@anovsiradj
anovsiradj / loop.xml
Last active August 19, 2018 07:32
Blogger/Blogspot dynamic CSS classes
<!-- https://ne-a-r.blogspot.com/ -->
<!-- padding/margin kelipatan 2 dan 5 (0 sampai 100)-->
<style>
<b:loop index='i' values='0 to 100' var='n'>
<b:if cond='data:n%5 == 0 OR data:n%2 == 0'>
.pd-<data:n/>{padding:<data:n/>px !important;}
.pd-t-<data:n/>{padding-top:<data:n/>px !important;}
.pd-b-<data:n/> {padding-bottom:<data:n/>px !important;}
.pd-l-<data:n/>{padding-left:<data:n/>px !important;}
.pd-r-<data:n/>{padding-right:<data:n/>px !important;}
@anovsiradj
anovsiradj / file1.pascal
Last active August 14, 2019 07:13
replace non-number and/or non-alphabet from string use free pascal
// fpc~3 //
program HelloWorld;
uses RegExpr;
var rgx_1,rgx_2,str_1 :string;
var rst :string;
begin
rgx_1 := '[^0-9]+';
@anovsiradj
anovsiradj / toggle-touchpad.sh
Last active September 6, 2019 14:29 — forked from v-dimitrov/touchpad-fix
touchpad fn key fix
#!/bin/sh
# toggle touch pad
device=`xinput list --name-only | grep -i touchpad`
isOn=`xinput list-props "$device" | grep -i enabled | tail -c 2`
iconEnabled='input-touchpad-symbolic'
iconDisabled='touchpad-disabled-symbolic'
case "$isOn" in
0)
// ==UserScript==
// @name Adminer Tweak
// @description simple dashboard tweak for adminer.php (database management)
// @version 2019.10.16
// @namespace https://gist.github.com/anovsiradj/fb4254d6fb6eb6f8bc08d3686482aaec
// @run-at document-end
// @match http://localhost/adminer.php*
// @match http://localhost/adminer*.php*
// @author anovsiradj (mayendra costanov)
// @iconURL https://www.adminer.org/favicon.ico
@anovsiradj
anovsiradj / README.md
Last active May 29, 2023 03:41
Firefox Request Blocker Rules
<?php
$s = __FILE__;
$l = __DIR__.'/tmp.log';
$p = __DIR__.'/tmp.pid';
$z=$c=$r=null;
if (in_array('bg',$argv)) {
file_put_contents($p,getmypid());
die;
}
@anovsiradj
anovsiradj / FTP_ZIP_X.php
Created November 12, 2020 20:30
FTP provided by free hosting service is always slooow also zip-extraction is very broken. Lets just let PHP do the work.
<?php
/**
*
* WARNING: DATA LOSS; (YOU HAVE BEEN WARNED)
*
* @version 20160124071141
* @version 20201023144831
* @author anovsiradj
* @author Touqeer Shafi
@anovsiradj
anovsiradj / README.mkdn
Last active December 6, 2020 18:23
Video Zooming, Rotating, Positioning.

dailymotion

#player-body video 
{
	transform: scale(2);
	top: 100px !important;
	left: 0 !important;
}
@anovsiradj
anovsiradj / Default.sublime-keymap
Created March 14, 2021 09:56
Sublime Merge Override Shortcuts
[
{
"keys": ["ctrl+s"],
"command": "noop"
},
{
"keys": ["F4"],
"command": "noop"
},
{
@anovsiradj
anovsiradj / main.dart
Created November 24, 2021 04:00
Dart NULL string is "null" as string
void main() {
String tmp;
print(tmp.toString());
print('null');
print(tmp.toString() == 'null');
}