Skip to content

Instantly share code, notes, and snippets.

View s3rgeym's full-sized avatar
🏴‍☠️
РОСКОМНАДЗОР - дети шлюх

[object Object] s3rgeym

🏴‍☠️
РОСКОМНАДЗОР - дети шлюх
View GitHub Profile

Create a new project

poetry new <project-name>

Add a new lib

potry add <library>

Remove a lib

@s3rgeym
s3rgeym / model-user.js
Created May 6, 2019 19:58 — forked from lucasscariot/model-user.js
Composite Primary Key in Sequelize
/*
* Migration
*/
'use strict';
module.exports = {
up: function(queryInterface, Sequelize) {
return queryInterface.createTable('Users', {
firstName: {
type: Sequelize.STRING
},
@s3rgeym
s3rgeym / Revert-Gist.md
Created July 7, 2019 22:34 — forked from eduncan911/Revert-Gist.md
Revert Gist Commits

Revert / Undo a Gist Commit

It was not exactly obvious. Here's how to revert a Gist commit!

Checkout the gist like a normal git repo:

# replace the Gist ID with your own
git clone git@github.com:cc13e0fcf2c348cc126f918e4a3917eb.git

Treat it like a normal repo. Edit, force push, etc.

= Arch Linux step-by-step installation =
= http://blog.fabio.mancinelli.me/2012/12/28/Arch_Linux_on_BTRFS.html =
== Boot the installation CD ==
== Create partition ==
cfdisk /dev/sda
* Create a partition with code 8300 (Linux)
@s3rgeym
s3rgeym / default.conf
Created September 23, 2019 14:49
NGiNX Configuration for Vue-Router in HTML5 Mode
server {
listen 80 default_server;
listen [::]:80 default_server;
root /your/root/path;
index index.html;
server_name you.server.com;
@s3rgeym
s3rgeym / git develop to master
Created October 3, 2019 23:59 — forked from royrusso/git develop to master
Git: merge 'develop' in to 'master'
git checkout master
git merge develop
git push -u origin master
@s3rgeym
s3rgeym / pubsub.py
Created October 4, 2019 09:16 — forked from appeltel/pubsub.py
asyncio pubsub example
import asyncio
import random
class Hub():
def __init__(self):
self.subscriptions = set()
def publish(self, message):
#~/.local/share/applications/mimeapps.list
[Added Associations]
#...
x-scheme-handler/subl=subl-urlhandler.desktop
@s3rgeym
s3rgeym / .vimrc
Created February 2, 2020 17:14 — forked from leafo/.vimrc
syntax on
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#begin()
Plugin 'gmarik/vundle'