Skip to content

Instantly share code, notes, and snippets.

Working remotely

George Kiknadze kiknaio

Working remotely
View GitHub Profile
kiknaio /
Created Dec 12, 2020
Laravel Forge Setup Script
# - server (the forge server instance)
# - event (the forge event instance)
# - sudo_password (random password for sudo)
# - db_password (random password for database user)
# - callback (the callback URL)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from flask import Flask, Response, session, render_template
from re import compile, escape, search
from random import choice, randint
from string import lowercase
from functools import wraps
from os import environ
app = Flask(__name__)
kiknaio /
Created Mar 23, 2020
Ping sweep with bash
for i in {1..254} ;do (ping -c 1 192.168.1.$i | grep "bytes from" &) ;done
kiknaio /
Created Nov 13, 2019
Books to read from Rain Geometric ☔️ team
kiknaio /
Last active Apr 29, 2019
Fix NPM permission problem
sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config
View i18n-express4-cookie-example.js
kiknaio / app.js
Created Feb 18, 2017
How to make guestbook with Express.js (part 1)
View app.js
const express = require('express');
const morgan = require('morgan');
const bodyParser = require('body-parser');
// Define port for the server
const PORT = 3000;
const app = express();
// Require routes
const routes = require('./routes/routes');
kiknaio / app.jsx
Created Feb 17, 2017
React WesBos
View app.jsx
import React from 'react';
const ReactDOM = require('react-dom');
import {Router, Route, History, Navigation} from 'react-router';
import helpers from './helpers';
// For changing navbar link and remove hashes
import createBrowserHistory from 'history/lib/createBrowserHistory';
// App
kiknaio / index.html
Last active Jan 8, 2017 — forked from anonymous/index.html
FreeCodeCamp - Advanced challenge
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<script id="jsbin-javascript">
kiknaio / datalists.html
Created Sep 1, 2016
HTML5 Datalists for suggesting completion
View datalists.html
<input list='countries'> <!-- input list name and datalist id should be same -->
<datalist id='countries'>
<option value="Germany"></option>
<option value="Austria"></option>
<option value="London"></option>
<option value="Belgium"></option>
<option value="Brazil"></option>