Skip to content

Instantly share code, notes, and snippets.

@shynome
shynome / 0_reuse_code.js
Created March 15, 2017 02:31
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@shynome
shynome / setup.sh
Last active December 13, 2017 07:37 — forked from eduwass/setup.sh
Flynn Install : Single node ( for Ubuntu 16.04 x64 @ DigitalOcean droplet )
#!/bin/bash
# This script will automatically set up a single node Flynn Cluster on your linux box
# Fresh Flynn install with domain provided by the xip.io service
# Tested with Base Image: Ubuntu 14.04 x64 @ DigitalOcean droplet
# @date 16 Nov 2015
# @author Edu Wass (eduwass at gmail com)
echo '---- START SETUP ----'
@shynome
shynome / MANUAL.md
Created January 13, 2018 11:15 — forked from s-lyn/MANUAL.md
Deploy nodejs app with gitlab.com and pm2

Deploy nodejs app with gitlab.com and pm2

This manual is about setting up an automatic deploy workflow using nodejs, PM2, nginx and GitLab CI. It is tested on:

  • Target server: Ubuntu 16.04 x64. This is suitable for Ubuntu 14.x.
  • Windows 10 on my PC to work.
@shynome
shynome / readme.md
Last active March 5, 2018 02:40 — forked from techgaun/readme.md
OpenSSH 7.4 on Ubuntu 16.04

Installing OpenSSH on Ubuntu 16.04

version='7.4'
sudo apt install -y build-essential libssl-dev zlib1g-dev
wget "http://mirrors.evowise.com/pub/OpenBSD/OpenSSH/portable/openssh-${version}p1.tar.gz"
tar xfz openssh-${version}p1.tar.gz && cd openssh-${version}p1
./configure
make
sudo make install
@shynome
shynome / Office_kms
Created January 18, 2019 08:00 — forked from CHEF-KOCH/KMS_office.cmd
KMS server Windows
cd\Program Files\Microsoft Office\Office16
cd\Program Files (x86)\Microsoft Office\Office16
cscript OSPP.VBS /sethst:kms.digiboy.ir
cscript OSPP.VBS /actcscript OSPP.VBS /dstatus
slmgr.vbs /ckms
@shynome
shynome / 00-svelte.config.js
Last active July 7, 2022 17:34 — forked from bluwy/sequence.js
Run Svelte preprocessors in the sequence they are declared
// Example usage
import { sequence } from './sequence.mjs'
import cssModules from "svelte-preprocess-cssmodules";
export default {
preprocess: sequence([sveltePreprocess(), cssModules()]),
}