Skip to content

Instantly share code, notes, and snippets.

View Zhambul's full-sized avatar
🏠
Working from home

Zhambyl Yermagambet Zhambul

🏠
Working from home
  • Berlin
View GitHub Profile
@xuio
xuio / buergerbot.rb
Last active May 24, 2023 20:59 — forked from pbock/buergerbot.rb
Bürgerbot: Refreshes the Berlin Bürgeramt page until an appointment becomes available, then notifies you via Telegram
#!/usr/bin/env ruby
require 'watir-webdriver'
require 'telegram/bot'
Telegram.bots_config = {
default: '<Telegram Bot token>',
}
Telegram.bot.get_updates
@magicdude4eva
magicdude4eva / zsh-syntax-highlighting paste performance improvement
Last active May 6, 2024 08:10
zsh-syntax-highlighting paste performance improvement
Add the following in .zshrc:
...
plugins=(osx git zsh-autosuggestions zsh-syntax-highlighting zsh-nvm docker kubectl)
...
### Fix slowness of pastes with zsh-syntax-highlighting.zsh
pasteinit() {
OLD_SELF_INSERT=${${(s.:.)widgets[self-insert]}[2,3]}
zle -N self-insert url-quote-magic # I wonder if you'd need `.url-quote-magic`?
@karakayasemi
karakayasemi / GSoC_Rocket.Chat_WebDAV_Integration.md
Last active July 13, 2022 08:12
Google Summer of Code 2018 Rocket.Chat/ Integration of Nextcloud/ownCloud as Storage and User File Provider

At the beginning of the project, we aimed to integrate ownCloud and NextCloud projects to Rocket.Chat. For this purpose, based on current GitHub issues and community expectations, we determined three main features:

  • Nextcloud/ownCloud as a storage provider.
  • Nextcloud/ownCloud as user file provider(attachment source).
  • Save an attachment to Nextcloud/ownCloud

To communicate Nextloud/ownCloud instance, we used a generic WebDAV client. This decision expanded our aim and made the integration compatible with all WebDAV servers (NextCloud, ownCloud and so on).

WebDAV as a storage provider

In the first month of my internship, I worked on enabling Rocket.Chat server administrator to use a NextCloud/ownCloud instance for storage of upload. To add ownCloud/Nextcloud as a new storage provider for Rocket.Chat, I created a new UploadFS store for them. In the store implementation, we used a WebDAV client library to communicate with Nexc

@karakayasemi
karakayasemi / GSoC_Security_App.md
Last active July 13, 2022 08:09
Google Summer of Code ownCloud/Security App

My Project was intended to develop a security application including brute force protection, strong password enforcement, 404 detection and Multifactor authentication. In the scope of project,the owncloud/security and owncloud/twofactor_backup codes apps have been developed. Moreover, I have contributed to my owncloud/core and owncloud/twofactor_totp applications. I want to explain briefly, what I have done in each project:

Security app

Brute force protection and strong password enforcement features have been completed. 404 protection part feature still needs time to develop, because it requires some development on owncloud/core. Related commits of Security app can be seen from below:

https://github.com/owncloud/security/commits?author=karakayasemi

Twofactor_backup_codes app

@acamino
acamino / README.md
Last active May 20, 2024 22:11
Shortcuts to Improve Your Bash & Zsh Productivity

Shortcut — Action

  • CTRL + A — Move to the beginning of the line
  • CTRL + E — Move to the end of the line
  • CTRL + [left arrow] — Move one word backward (on some systems this is ALT + B)
  • CTRL + [right arrow] — Move one word forward (on some systems this is ALT + F)
  • CTRL + U — (bash) Clear the characters on the line before the current cursor position
  • CTRL + U —(zsh) If you're using the zsh, this will clear the entire line
  • CTRL + K — Clear the characters on the line after the current cursor position
  • ESC + [backspace] — Delete the word in front of the cursor
@squarism
squarism / iterm2.md
Last active May 30, 2024 14:42
An iTerm2 Cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)
@kyungw00k
kyungw00k / logback.xml
Last active March 30, 2024 20:30
logback & logstash pattern for elasticsearch
<?xml version="1.0" encoding="UTF-8"?>
<!-- For assistance related to logback-translator or configurations -->
<!-- files in general, please contact the logback user mailing list -->
<!-- at http://www.qos.ch/mailman/listinfo/logback-user -->
<!-- -->
<!-- For professional support please see -->
<!-- http://www.qos.ch/shop/products/professionalSupport -->
<!-- -->
<configuration>
@kenpenn
kenpenn / gangnam.js
Last active October 8, 2021 15:27
d3 gangnam style
/* d3 gangnam style!
* simplifed test case
* moving force-directed graph nodes via transform
* coded by Ken Penn
*/
(function () {
window.reqAniFrame = function(win, t) {
return win["r" + t] || win["webkitR" + t] || win["mozR" + t] || win["msR" + t] || function(fn) { setTimeout(fn, 60) }
} (window, "equestAnimationFrame");
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active June 1, 2024 14:20
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@spicycode
spicycode / tmux.conf
Created September 20, 2011 16:43
The best and greatest tmux.conf ever
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000