Skip to content

Instantly share code, notes, and snippets.

View gusleein's full-sized avatar

Andrey Belkin gusleein

View GitHub Profile
@gusleein
gusleein / telegram_tags.html
Created October 27, 2024 20:47
telegram html formatting
<b>bold</b>, <strong>bold</strong>
<i>italic</i>, <em>italic</em>
<u>underline</u>, <ins>underline</ins>
<s>strikethrough</s>, <strike>strikethrough</strike>, <del>strikethrough</del>
<span class="tg-spoiler">spoiler</span>, <tg-spoiler>spoiler</tg-spoiler>
<b>bold <i>italic bold <s>italic bold strikethrough <span class="tg-spoiler">italic bold strikethrough spoiler</span></s> <u>underline italic bold</u></i> bold</b>
<a href="http://www.example.com/">inline URL</a>
<a href="tg://user?id=123456789">inline mention of a user</a>
<tg-emoji emoji-id="5368324170671202286">👍</tg-emoji>
<code>inline fixed-width code</code>
@gusleein
gusleein / CountryCodes.md
Created July 27, 2021 02:00 — forked from kcak11/App.md
Country Codes

Country Codes

List of all Country Codes (ISO & Dialing) sorted in alphabetical order.

/* (Not so) simple synth based on Mozzi library and a bunch of pots.
*
* This code is derived from the public domain example of an 8 potentiometer
* synth from e-licktronic (https://www.youtube.com/watch?v=wH-xWqpa9P8).
*
* Severely edited for clarity and configurability, adjusted to run with modern
* versions of Mozzi, extended for polyphony by Thomas Friedrichsmeier. Also,
* this sketch will auto-generate fake MIDI events and random parameters, so
* you can start listening without connecting anything other than your
* headphones or amplifier. (Remove the FAKE_POTS and FAKE_MIDI defines, once
@gusleein
gusleein / airdropSorter.scpt
Created July 17, 2019 21:26 — forked from menushka/airdropSorter.scpt
A Folder Action script written in AppleScript used to separate AirDropped files into a different folder other than the default Downloads folder
property AIRDROP_FOLDER : "Path:to:AirDrop:Folder:in:Alias:format"
property QUARANTINE_KEY : "59"
property GET_QUARANTINE_COMMAND_START : "ls -l -@ '"
property GET_QUARANTINE_COMMAND_END : "' | tr '\\n' ' ' | sed 's/.*com\\.apple\\.quarantine\\s*\\(\\d*\\)/ \\1/' | awk '{$1=$1};1'"
on adding folder items to this_folder after receiving added_items
repeat with i from 1 to length of added_items
set current_item to item i of added_items
set quarantine_type to getQuarantineType(POSIX path of current_item)
@gusleein
gusleein / local-storage.service.ts
Last active January 19, 2019 00:48
Storage wrappers for Angular with event emitters
import {EventEmitter, Injectable} from "@angular/core";
@Injectable()
export class LocalStorageService implements Storage {
public clearEvent: EventEmitter<void> = new EventEmitter<void>();
public setEvent = new EventEmitter<{ key: string, data: string }>();
public removeEvent = new EventEmitter<{ key: string, data: string }>();
[key: string]: any;
[index: number]: string;
var gulp = require('gulp')
var concat = require('gulp-concat')
var uglify = require('gulp-uglify')
var imagemin = require('gulp-imagemin')
var cssmin = require('gulp-cssmin')
var sass = require('gulp-sass')
var watch = require('gulp-watch')
var _ = require('lodash')
#!/bin/bash
touch config.php admin/config.php
chmod g+w config.php admin/config.php
chmod 775 system/cache/ system/logs/ image/ image/cache/ image/data/ download/
#!/bin/bash
touch config.php admin/config.php
chmod g+w config.php admin/config.php
chmod 775 system/cache/ system/logs/ system/download/ system/upload/ image/ image/cache/ image/catalog/ system/modification/