Skip to content

Instantly share code, notes, and snippets.

Avatar

MDMCDC anovsiradj

View GitHub Profile
@anovsiradj
anovsiradj / Default.sublime-keymap
Created Mar 14, 2021
Sublime Merge Override Shortcuts
View Default.sublime-keymap
[
{
"keys": ["ctrl+s"],
"command": "noop"
},
{
"keys": ["F4"],
"command": "noop"
},
{
@anovsiradj
anovsiradj / README.mkdn
Last active Dec 6, 2020
Video Zooming, Rotating, Positioning.
View README.mkdn

dailymotion

#player-body video 
{
	transform: scale(2);
	top: 100px !important;
	left: 0 !important;
}
@anovsiradj
anovsiradj / FTP_ZIP_X.php
Created Nov 12, 2020
FTP provided by free hosting service is always slooow also zip-extraction is very broken. Lets just let PHP do the work.
View FTP_ZIP_X.php
<?php
/**
*
* WARNING: DATA LOSS; (YOU HAVE BEEN WARNED)
*
* @version 20160124071141
* @version 20201023144831
* @author anovsiradj
* @author Touqeer Shafi
View background.php
<?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 / ncr.js
Last active Mar 19, 2020
[DEPRECATED] blogger / blogspot - NoCountryRedirect (NCR) always use ".com" instead ".co.id"
View ncr.js
if(/.co.id/.test(window.location.hostname)) window.location.replace(window.location.href.replace('.co.id','.com/ncr'));
@anovsiradj
anovsiradj / README.mkdn
Last active Mar 19, 2020
FX blocked domains (WX addon)
View README.mkdn
View adminer_tweak.user.js
// ==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 / looper.less
Last active Oct 7, 2019
LESS: Loop dynamic selector rule (CSS)
View looper.less
.looper(@class, @property, @unit: px, @min: 0, @max: 10, @step: 1) {
.loop(@i) when (@i <= @max) {
@cls: e(replace(@class, '\*', @i, 'g'));
@{cls} {
@{property}: unit(@i, @unit);
}
.loop(@i + @step);
}
.loop(@min);
}
@anovsiradj
anovsiradj / toggle-touchpad.sh
Last active Sep 6, 2019 — forked from v-dimitrov/touchpad-fix
touchpad fn key fix
View toggle-touchpad.sh
#!/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)
@anovsiradj
anovsiradj / file1.pascal
Last active Aug 14, 2019
replace non-number and/or non-alphabet from string use free pascal
View file1.pascal
// fpc~3 //
program HelloWorld;
uses RegExpr;
var rgx_1,rgx_2,str_1 :string;
var rst :string;
begin
rgx_1 := '[^0-9]+';