Skip to content

Instantly share code, notes, and snippets.

View kemalersin's full-sized avatar

Kemal Ersin YILMAZ kemalersin

View GitHub Profile
@kemalersin
kemalersin / turkish-titlecase.pipe.ts
Created February 22, 2024 13:07
Angular Turkish Titlecase Pipe
import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
name: 'turkishTitleCase',
})
export class TurkishTitleCasePipe implements PipeTransform {
private lowerCaseWords: Array<string> = ['ve', 'ile', 'veya'];
private capitalizeFirstLetter(word: string): string {
return word.charAt(0).toLocaleUpperCase('tr') + word.slice(1);
// ==UserScript==
// @name Steam USD/TL Çeviricisi
// @namespace http://tampermonkey.net/
// @author Kemal Ersin YILMAZ
// @icon http://store.steampowered.com/favicon.ico
// @match http://store.steampowered.com/*
// @match https://store.steampowered.com/*
// @run-at document-body
// @grant GM.xmlHttpRequest
// ==/UserScript==
// ==UserScript==
// @name Steam USD Uyarısı Gizleyici
// @author Kemal Ersin YILMAZ
// @icon http://store.steampowered.com/favicon.ico
// @match http://store.steampowered.com/*
// @match https://store.steampowered.com/*
// @grant none
// @run-at document-body
// ==/UserScript==
/* jshint -W097 */
@kemalersin
kemalersin / FrmMain.cs
Last active May 5, 2023 13:08
Sending a message to a number that is not in the contacts [WinForms/WhatsApp/No Selenium].
using System;
using System.Windows.Forms;
using CefSharp;
using CefSharp.WinForms;
namespace WhatApp
{
public partial class FrmMain : Form
{
@kemalersin
kemalersin / tweet-raffle.ts
Last active April 28, 2022 07:02
Yet Another Draw Script with Twitter API
import { TwitterApi } from 'twitter-api-v2';
import { concat, sample, shuffle } from 'lodash';
const client: TwitterApi = new TwitterApi(process.env.TOKEN || '');
const tweetId: string = process.env.TWEET_ID || '';
function loading() {
const h = ['|', '/', '-', '\\'];
let i = 0;
@kemalersin
kemalersin / sozzio-twitter.js
Created April 14, 2021 09:47
Sozzio Twitter Participation Check Methods
twitter: {
pagelike: async (function (account, campaign) {
if (account.profileId == twSelf.profileId) {
return true;
}
var result = await (twAccountClient.get('friendships/show', {
target_id: twSelf.profileId
}).catch(console.log));
#!/bin/bash
# This script rename all mkv files in the current directory.
find ./downloads/jdownloader2/movies -type d -exec filebot -rename -non-strict {} --db TheMovieDB --format "../{n} ({y})/{n} ({y}) - [{source}-{vf} {vc} {ac}{audio.language*.upper()}{if (text.language[0]) ' ' + text.language*.upper()}]" ';' && echo
#!/bin/bash
#######################################
### NZBGET POST-PROCESSING SCRIPT ###
#
# This script will rename the mkv to
# the nzb name.
#
#!/bin/bash
#######################################
### NZBGET POST-PROCESSING SCRIPT ###
# Change MKV Info
#
# This script takes all mkv files in the current directory
# and sets the name of tracks.
#!/bin/bash
# This script takes all mkv files in the current directory and sets the name of tracks.
NAME="Muvvi | www.muvvi.club"
downloader="$1"
if [ ! -n "$downloader" ]; then
downloader="jdownloader2"
fi