Skip to content

Instantly share code, notes, and snippets.

View anytizer's full-sized avatar

Bimal Poudel anytizer

  • Canada
View GitHub Profile
@anytizer
anytizer / Cross Compiling LMMS for Windows on Ubuntu.md
Last active May 4, 2024 05:49
Compiling 64bit LMMS under Windows with Visual Studio

Installing with msys

sudo apt install pacman
pacman --needed -S bash pacman pacman-mirrors msys2-runtime

mkdir build
cd build
../cmake/build_win64.sh
@anytizer
anytizer / css-debug.css
Created December 25, 2013 08:31
CSS Debugging by borders coloring of the tags
http://yysource.com/2011/03/debugging-with-css-outline-all-elements/
* { outline: 2px dotted red }
* * { outline: 2px dotted green }
* * * { outline: 2px dotted orange }
* * * * { outline: 2px dotted blue }
* * * * * { outline: 1px solid red }
* * * * * * { outline: 1px solid green }
* * * * * * * { outline: 1px solid orange }
* * * * * * * * { outline: 1px solid blue }
@anytizer
anytizer / qr code generators.txt
Created July 30, 2014 05:43
List of online QR Code Generators
http://qrdroid.com/generate/
https://chrome.google.com/webstore/detail/the-qr-code-generator/s
http://www.waspbarcode.com/qr-code-generator
http://www.visualead.com/qurify2/
http://www.visualead.com/qr-code-generator/
http://delivr.com/qr-code-generator
https://scan.me/qr-code-generator
http://qrcode.littleidiot.be/
http://www.qrcode-monkey.com/
https://www.unitag.io/qrcode
@anytizer
anytizer / api.service.ts.md
Last active December 1, 2023 07:23
Making an API Client Consumer Website in Angular

api.service.ts

import { Injectable } from '@angular/core';
import { CookieService } from 'ngx-cookie-service';
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { Observable } from 'rxjs';
import { IDValueDTO } from './dtos';

@Injectable({
@anytizer
anytizer / routes-scanner.py
Last active November 12, 2023 17:47
Routes scanner for Angular
import glob
import mariadb
import sys
# Semi automated - routing file generator for Angular
#
# Usage:
# pythoh routes-scanner.py > app-routing.module.ts
fourzerofour_handler = "front/front-pagenotfound"
@anytizer
anytizer / mysql-triggers.sql
Last active November 11, 2023 13:20
The mysql triggers examples
# INSERT
# -- before: Check uniqueness
# -- after:
# UPDATE
# -- before: Log old data
# -- after: Email admin queue
# DELETE
# -- before: check for dues
# -- after: System cleanup
@anytizer
anytizer / block ip address.txt
Created July 28, 2014 05:19
Blocking visitors based on their IP Addresses
How to Block IP Addresses with PHP
http://perishablepress.com/how-to-block-ip-addresses-with-php/
<?php
$deny = array("111.111.111", "222.222.222", "333.333.333");
if (in_array ($_SERVER['REMOTE_ADDR'], $deny)) {
header("location: http://www.google.com/");
exit();
} ?>
@anytizer
anytizer / SamplesScanner.h
Created June 12, 2023 23:20
SamplesScanner
#pragma once
/**
* Purpose: Deep scan directories for a search pattern in known file extensions.
*
* Usage:
*
* SamplesScanner sc = SamplesScanner();
* QString path = "D:\\lmms\\build\\Debug\\data\\samples";
* QString pattern = "*.ds";
@anytizer
anytizer / run.cs
Created August 17, 2017 19:08
File system watcher
using api.general;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace console
{
class run
@anytizer
anytizer / ApiService.ts
Last active December 14, 2022 19:33
Angular HTML Range Slider - Two way binding
import { Injectable } from '@angular/core';
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { CredentialsDTO, EndpointDTO, NameValueDTO } from './objects';
@Injectable({
providedIn: 'root'
})
export class ApiService {
private _gateway = "https://localhost:5001";