Skip to content

Instantly share code, notes, and snippets.

#include <bits/stdc++.h>
#define FOR(i,a,b) for (int i=(a),_b_=(b);i<_b_;i++)
#define ROF(i,a,b) for (int i=(a),_b_=(b);i>_b_;i--)
#define IT(i,v) for (typeof((v).begin()) i = (v).begin(); i != (v).end(); ++i)
#define ALL(v) v.begin(), v.end()
#define MS(v) memset(v,0,sizeof(v))
using namespace std;
typedef long long LL;
typedef unsigned long long ULL;
template<typename T> vector<T> &operator += (vector<T> &v, T x) {v.push_back(x);return v;}
@ngobach
ngobach / install-latest-compose.sh
Created December 31, 2017 03:31 — forked from deviantony/install-latest-compose.sh
Install latest version of Docker Compose
#!/bin/bash
# get latest docker compose released tag
COMPOSE_VERSION=$(curl -s https://api.github.com/repos/docker/compose/releases/latest | grep 'tag_name' | cut -d\" -f4)
# Install docker-compose
sh -c "curl -L https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose"
chmod +x /usr/local/bin/docker-compose
sh -c "curl -L https://raw.githubusercontent.com/docker/compose/${COMPOSE_VERSION}/contrib/completion/bash/docker-compose > /etc/bash_completion.d/docker-compose"
@ngobach
ngobach / deluge-web.service
Created April 15, 2018 15:43
deluge systemd
[Unit]
Description=Service for deluge web
After=network.service
BindTo=deluged.service
[Service]
WorkingDirectory=/home/thanbaiks
ExecStart=/usr/bin/deluge-web
User=thanbaiks
Restart=on-failure

Keybase proof

I hereby claim:

  • I am ngobach on github.
  • I am bachnx (https://keybase.io/bachnx) on keybase.
  • I have a public key ASAkPKXh0NsKBcGcApoqARhT96scvTVjUnyWOtUXU9IEHgo

To claim this, I am signing this object:

@ngobach
ngobach / README.md
Created August 13, 2019 04:02
RUST

RustLang

!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports):"function"==typeof define&&define.amd?define(["exports"],o):o((e=e||self).ss={})}(this,(function(e){"use strict";function o(e,o){return o?e+" #"+o:e}e.default={shareNative:function(e,t){void 0===e&&(e=document.title),void 0===t&&(t=""),navigator.share&&navigator.share({url:location.href,text:o(e,t)})},shareLINE:function(e,t){void 0===e&&(e=document.title),void 0===t&&(t=""),window.open("https://social-plugins.line.me/lineit/share?url="+encodeURIComponent(location.href)+"&text="+encodeURIComponent(o(e,t)))},shareFacebook:function(){window.open("https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(location.href))},shareTwitter:function(e,t){void 0===e&&(e=document.title),void 0===t&&(t=""),window.open("https://twitter.com/intent/tweet?url="+encodeURIComponent(location.href)+"&text="+encodeURIComponent(o(e,t)))}},Object.defineProperty(e,"__esModule",{value:!0})}));
This file has been truncated, but you can view the full file.
[
{
"title": "Nghệ thuật tạo đất mùn",
"category": "nong-lam-ngu",
"thumbnailUrl": "https://nhasachmienphi.com/wp-content/uploads/Ngh%E1%BB%87-thu%E1%BA%ADt-t%E1%BA%A1o-%C4%91%E1%BA%A5t-m%C3%B9n.jpg",
"resources": {
"pdf": "https://file.nhasachmienphi.com/nhasachmienphi-nghe-thuat-tao-dat-mun-11-2020-11615362283.pdf",
"readonline": "https://nhasachmienphi.com/readfile-online?id=350083&type=pdf"
}
},