Skip to content

Instantly share code, notes, and snippets.

View akinozgen's full-sized avatar
:bowtie:

Akın Özgen akinozgen

:bowtie:
View GitHub Profile
@akinozgen
akinozgen / currently_playing.bash
Last active January 27, 2020 13:13
get title and artist from playerctl an join
#!/usr/bin/env bash
echo "$(playerctl -p spotify metadata | grep xesam: | awk '{ if ($2 == "xesam:title") { print $3; } }') by $(playerctl -p spotify metadata | grep xesam: | awk '{ if ($2 == "xesam:artist") { print $3; } }')"
<?php
header('Content-type: text/json');
$content = iconv('windows-1254', 'utf-8', file_get_contents("http://www.koeri.boun.edu.tr/scripts/lst0.asp"));
preg_match_all("/<pre>(.*?)<\/pre>/s", $content, $pre);
$rows = explode("\n", str_replace(["<pre>", "</pre>"], "", $pre[0][0]));
for ($i = 0; $i < 7; $i++) array_shift($rows);
@akinozgen
akinozgen / conky-profile.sh
Created January 14, 2020 15:17
conky-profile.sh
#!/bin/bash
conky -q -c $HOME/.config/conky/conky-grey.conf
conky -q -c $HOME/.config/conky/conky.conf
# read
// Örnek 1. Standart statik içerik
Jml.initialize({
customTags: ['theme', 'example', 'akinozgen', 'profile-image', 'user-avatar'],
autoId: true,
originalNames: true
});
const context = div(
{ class: 'form-group' },
input({ type: 'text', class: 'form-control', name: 'username' })
jTable(): HTMLElement;
jTable(children: string|HTMLElement): HTMLElement;
jTable(children: Array<string|HTMLElement>): HTMLElement;
jTable(attributes: Object<string, string|number|function>, children: string|HTMLElement): HTMLElement;
jTable(attributes: Object<string, string|number|function>, children: Array<string|HTMLElement>): HTMLElement;
new Jml.create('#root', /* Herhangi bir jamaljs DOM fonksiyonu */);
Jml.initialize();
@akinozgen
akinozgen / jamaljs blog cdn.md
Last active December 14, 2019 20:27
jamaljs blog snippets
<script src="https://unpkg.com/jamal@latest/build/src.min.js"></script>

veya

npm install jamal

@akinozgen
akinozgen / .zshrc
Created October 3, 2019 08:47
zsh config
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
#!/bin/bash
# Greetings.
printf "\n"
echo "################################################"
echo "# #"
echo "# Quart Bilişim OIM Signer and Aligner #"
echo "# #"
echo "# Drag and drop available for files/paths. #"
echo "# #"