Skip to content

Instantly share code, notes, and snippets.

View banochkin's full-sized avatar
:octocat:
banochkin.com

Ruslan Banochkin banochkin

:octocat:
banochkin.com
View GitHub Profile
@thesadoo
thesadoo / getTelegramAvatar.php
Created July 21, 2017 19:34
Get user's Telegram avatar with a simple function using their Telegram usernames
<?php
function getTelegramAvatar($username='')
{
$username = $username;
$username = str_replace('@', '', $username);
$baseURL = 'https://telegram.me/';
$pageURL = $baseURL . $username;
@felixexter
felixexter / readme.md
Last active January 14, 2023 21:32
Undress your Trello links

Undress your Trello links

Before

Before custom script

https://trello.com/c/MMIAzcT1/461-candidates-new-%D1%82%D0%B5%D1%81%D1%82%D0%BE%D0%B2%D0%BE%D0%B5-%D0%B7%D0%B0%D0%B4%D0%B0%D0%BD%D0%B8%D0%B5-%D0%B4%D0%BB%D1%8F-%D0%BC%D0%B8%D0%B4%D0%BB-%D1%81%D0%B8%D0%BD%D1%8C%D0%BE%D1%80
@cesarvargas00
cesarvargas00 / new-computer.sh
Created June 2, 2017 00:17
New computer bash script
#installs homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
#install zshell
brew install zsh pyenv
sudo dscl . -create /Users/$USER UserShell /usr/local/bin/zsh
#install some apps
brew cask install flycut spectacle google-chrome spotify skype slack sublime-text
@cesarvargas00
cesarvargas00 / .zshrc
Created May 29, 2017 03:26
Prezto .zshrc
#
# Executes commands at the start of an interactive session.
#
# Authors:
# Sorin Ionescu <[email protected]>
#
# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
@orlando
orlando / mac-setup.md
Last active October 31, 2024 19:03 — forked from todc/mac-setup.md
Fresh Mac OS Setup

1. Run Software Update

Make sure everything is up to date in the App Store

2. Install Homebrew

  1. Open a terminal window and execute the Homebrew install script:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
@milanaryal
milanaryal / schema-org-structured-data-markup-using-microdata.html
Last active March 23, 2025 04:33
An example of how to mark up a HTML5 webpage using the schema.org schemas and microdata.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Site Title</title>
<link rel="stylesheet" href="/assets/css/style.min.css">
@todc
todc / mac-setup.md
Last active September 25, 2021 09:21
Fresh Mac OS Setup

1. Run Software Update

Make sure everything is up to date.

Software Update

2. Install Xcode and its "Command Line Tools"

  1. Go to App Store and install Xcode.
  2. Open and accept the terms
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active April 27, 2025 06:30
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@JamesChevalier
JamesChevalier / mac_utf8_insanity.md
Last active March 25, 2025 09:29
Unicode on Mac is insane. Mac OS X uses NFD while everything else uses NFC. This fixes that.

convmv manpage

Install convmv if you don't have it

sudo apt-get install convmv

Convert all files in a directory from NFD to NFC:

convmv -r -f utf8 -t utf8 --nfc --notest .

@JamieMason
JamieMason / unfollow.js.md
Last active April 16, 2025 19:28
Unfollow everyone on twitter.com

Unfollow everyone on twitter.com

By @foldleft.bsky.social, see also Unfollow everyone on bsky.app.

  1. Go to https://twitter.com/YOUR_USER_NAME/following
  2. Open the Developer Console. (COMMAND+ALT+I on Mac)
  3. Paste this into the Developer Console and run it
// Unfollow everyone on twitter.com, by Jamie Mason (https://twitter.com/fold_left)