Skip to content

Instantly share code, notes, and snippets.

Avatar
🌏
Working remotely

George Kiknadze kiknaio

🌏
Working remotely
View GitHub Profile
@kiknaio
kiknaio / forge.sh
Created Dec 12, 2020
Laravel Forge Setup Script
View forge.sh
#
# REQUIRES:
# - 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)
#
View interdimensional-internet.py
#!/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
kiknaio / ping_sweep.sh
Created Mar 23, 2020
Ping sweep with bash
View ping_sweep.sh
#!/bin/sh
for i in {1..254} ;do (ping -c 1 192.168.1.$i | grep "bytes from" &) ;done
@kiknaio
kiknaio / books.md
Created Nov 13, 2019
Books to read from Rain Geometric ☔️ team
@kiknaio
kiknaio / npm-permission.sh
Last active Apr 29, 2019
Fix NPM permission problem
View npm-permission.sh
sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config
View i18n-express4-cookie-example.js
@kiknaio
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
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
kiknaio / index.html
Last active Jan 8, 2017 — forked from anonymous/index.html
FreeCodeCamp - Advanced challenge
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
@kiknaio
kiknaio / datalists.html
Created Sep 1, 2016
HTML5 Datalists for suggesting completion
View datalists.html
<form>
<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>
</datalist>
</form>