Skip to content

Instantly share code, notes, and snippets.

View buzzySmile's full-sized avatar

Alexander Makarov buzzySmile

  • Bishkek City, Kyrgyzstan
View GitHub Profile
@buzzySmile
buzzySmile / packagesymbols.py
Created June 24, 2016 12:28 — forked from luser/packagesymbols.py
Scripts to produce symbol package and upload to Mozilla crash-stats server
#!/usr/bin/env python
from __future__ import print_function
import argparse
import os
import subprocess
import sys
import zipfile
@buzzySmile
buzzySmile / license-badges.md
Created October 31, 2016 21:09 — forked from lukas-h/license-badges.md
License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file. Easily copy and paste the code under the badges into your Markdown files.

Notes

  • Badges are made with Shields.io.
  • This badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.

Want to add a License?

Comment this gist or write me an E-Mail ([email protected])

emacs --daemon to run in the background. emacsclient.emacs24 <filename/dirname> to open in terminal

NOTE: "M-m and SPC can be used interchangeably".

  • Undo - C-/
  • Redo - C-?
  • Change case: 1. Camel Case : M-c 2. Upper Case : M-u
  1. Lower Case : M-l
@buzzySmile
buzzySmile / docker-cleanup
Created March 2, 2018 13:42 — forked from wdullaer/docker-cleanup
Cleanup unused Docker images and containers
#!/bin/sh
# Cleanup docker files: untagged containers and images.
#
# Use `docker-cleanup -n` for a dry run to see what would be deleted.
untagged_containers() {
# Print containers using untagged images: $1 is used with awk's print: 0=line, 1=column 1.
# NOTE: "[0-9a-f]{12}" does not work with GNU Awk 3.1.7 (RHEL6).
# Ref: https://github.com/blueyed/dotfiles/commit/a14f0b4b#commitcomment-6736470
docker ps -a | tail -n +2 | awk '$2 ~ "^[0-9a-f]+$" {print $'$1'}'
@buzzySmile
buzzySmile / Xiaomi YI.md
Created March 4, 2018 19:44 — forked from franga2000/Xiaomi YI.md
Xiaomi Yi

#Xiaomi Yi camera

##General info

  • OS: Buildroot
  • CPU: ARMv6-compatible processor rev 5 (v6l)
  • BogoMIPS: 524.28
  • Memory: 37MB

The root filesystem is rootfs, which is stored in memory and therefore wiped on reboot. The Micro SD card is mounted at /tmp/fuse_d/. Something is also mounted at /tmp/fuse_a and /tmp/fuse_z.

@buzzySmile
buzzySmile / install_vivaldi.sh
Last active March 15, 2018 23:17 — forked from pkorpine/install_vivaldi.sh
Add Vivaldi repo to Debian/Ubuntu
echo "deb http://repo.vivaldi.com/stable/deb/ stable main" | sudo tee /etc/apt/sources.list.d/vivaldi.list > /dev/null
wget -O - http://repo.vivaldi.com/stable/linux_signing_key.pub | sudo apt-key add -
echo "deb http://repo.vivaldi.com/snapshot/deb/ stable main" | sudo tee /etc/apt/sources.list.d/vivaldi-snapshot.list > /dev/nul
wget -O - http://repo.vivaldi.com/snapshot/linux_signing_key.pub | sudo apt-key add -
sudo apt update && sudo apt install -y vivaldi-stable vivaldi-snapshot
@buzzySmile
buzzySmile / curl.md
Created May 8, 2018 13:06 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@buzzySmile
buzzySmile / git_rebase.md
Created May 30, 2018 13:33 — forked from ravibhure/git_rebase.md
Git rebase from remote fork repo

In your local clone of your forked repository, you can add the original GitHub repository as a "remote". ("Remotes" are like nicknames for the URLs of repositories - origin is one, for example.) Then you can fetch all the branches from that upstream repository, and rebase your work to continue working on the upstream version. In terms of commands that might look like:

Add the remote, call it "upstream":

git remote add upstream https://github.com/whoever/whatever.git

Fetch all the branches of that remote into remote-tracking branches, such as upstream/master:

git fetch upstream

@buzzySmile
buzzySmile / vscode_shortcuts.md
Created August 25, 2020 17:31 — forked from bradtraversy/vscode_shortcuts.md
Helpful shortcuts for VSCode

VSCode Shortcuts

List of helpful shortcuts for faster coding

If you have any other helpful shortcuts, feel free to add in the comments of this gist :)

Official List of all commands

@buzzySmile
buzzySmile / Flutter Network.md
Last active February 17, 2025 14:21 — forked from TahaTesser/Flutter Network.md
A collection of active Flutter content creators, newsletters, platforms, and personalities. If you've suggestions, please comment below.