Skip to content

Instantly share code, notes, and snippets.

View MaxymVlasov's full-sized avatar
🚴‍♂️
🇺🇦

Maksym Vlasov MaxymVlasov

🚴‍♂️
🇺🇦
View GitHub Profile
@originalhat
originalhat / gist:5258119
Last active December 29, 2016 23:05
using rebase to remove a commit

Using Rebase to Remove Bad Commits

Rebase at your own risk!

Fixing up and squashing commits with rebase is great fun and handy to keep the logs clean from lots of little commits like typos, but only before a push (unless you're sure nobody else has pulled since then).

When you rebase, it re-writes all SHA values after the removed commit(s). This can be troublesome when you may have already pushed to a remote. This has serious implications for breaking the repository for collaborators.

Create & Enter the Branch

@tiran
tiran / ssl_distro.md
Last active May 18, 2018 19:22
OpenSSL / LibreSSL versions in Linux and BSD distributions

OpenSSL / LibreSSL versions in Linux and BSD distributions

Major distributions

  • alpine 2.7.8 (openssl 1.0.1g)
  • alpine 3.2.2 (openssl 1.0.2d)
  • alpine 3.6.2 (libressl 2.5.4)

Это краткая памятка, которая подходит во время вспышки любого респираторного вирусного заболевания. Я ее пишу не для того, чтобы вы срочно начинали все это делать - никакого повода нет. Но, если вы хотите снизить вероятность получения или распространения вирусов - прочитайте.

Общее поведение

  1. Контролируйте свою панику. Никакого повода для паники нет, как говорил человек, падающий с пятого этажа, пролетая мимо четвертого: “пока все нормально”. Напомню, уже на вашей памяти у людей была такая же паника из-за птичьего гриппа и атипичной пневмонии. И никакого зомби-апокалипсиса не произошло. Контролировать панику - значит следить за своими реакциями и стараться принимать решения разумно.
  2. Не осуждайте чужую панику. Это не помогает ни вам, ни паникующим - каждый человек волен паниковать или не паниковать перед лицом любой опасности. Кроме того, активное осуждение паники вокруг “эпидемий” порождает и подпитывает многочисленные теории заговора, так что просто не надо.
  3. Примите разумные меры предосторожно
@A-gambit
A-gambit / ReactiveConf2017.md
Last active June 19, 2021 16:57
Proposal for lightning talk at ReactiveConf 2017: How do you make friends with React and FRP? 🤔 Start to develop your application using Focal.

How do you make friends with React and FRP? 🤔 Start to develop your application using Focal.

This is a CFP for the ⚡️Lightning⚡️ talk at awesome ReactiveConf 2017. If you'd like to see this talk, please 🌟 star🌟 this summary and retweet my tweet 🙂 #ReactiveConf

image

Functional reactive programming (FRP) is very popular nowadays. The JavaScript community provides us with excellent tools like RxJS, Bacon, and Kefir. But, as we know, they have nothing to do with React. So how we can use the power of FRP in our React application? Using the correct state management, we can make friends with FRP and React and make our application truly reactive. In my lightning talk, I will talk about Focal

@lrascao
lrascao / gist:f57312ff33b799c4c0db56b10e80fe26
Created March 31, 2016 16:19
Export/Import datadog dashboards
dash_id=xxxx
api_key=xxx
app_key=xxx
# 1. export
curl -X GET "https://app.datadoghq.com/api/v1/dash/${dash_id}?api_key=${api_key}&application_key=${app_key}" > dash.json
# 2. edit dash.json
move "graphs", "title", "description" up one level in the json hierarchy, from being beneath "dash" to being at the same level
@wikimatze
wikimatze / gist:9790374
Created March 26, 2014 18:43
Github Two-Factor Authentication Failed For HTTPS

I heard from GitHub Two-Factor Authentication](https://github.com/blog/1614-two-factor-authentication) nearly a couple of days ago when I was reading my RSS feed. I enabled it and couldn' push to any of my repositories anymore. Learn in this blog post how to fix it.

Two-Factor Authentication

"Is a process involving two stages to verify the identity of an entity trying to access services in a computer or in a network". Github solves this authentication with sending an SMS to a device which wants to push to their platform.

Enabling Two-Factor Authentication

@joepie91
joepie91 / promises-faq.md
Last active June 25, 2023 09:02
The Promises FAQ - addressing the most common questions and misconceptions about Promises.
@carlnordenfelt
carlnordenfelt / AWS_Credentials.md
Last active July 17, 2023 10:59
Easily swap between AWS Profiles without having to manage keys

Adding these scripts will give you the following aliases on your command line.

Note: the scripts are only tested on OSX

  • awsall - Lists all available AWS profiles. Note that the list is based on the .aws/credentials file.
  • awswho - Lets you know what profile you are currently using
  • awsp profilename - Quickly swap to the provided profile name
  • awssso profilename - Similar to awsp but specifically for IAM Identity Center users (AWS SSO)

Setup

@johannesjh
johannesjh / Using Signal with Dual-Sim Phones.md
Last active October 10, 2023 08:01
Documentation on how to use Signal with Dual-Sim Phones

Using Signal with Dual Sim or Multi Sim Phones

Signal (previously TextSecure) on Android can be used on dual-sim or multi-sim smartphones, albeit with some limitations regarding use of the additional sim cards.

Multi Sim Usage

Available Functionality

@sdieunidou
sdieunidou / rabbitmq.txt
Created October 22, 2015 19:51
create admin user on rabbitmq
rabbitmqctl add_user test test
rabbitmqctl set_user_tags test administrator
rabbitmqctl set_permissions -p / test ".*" ".*" ".*"