Skip to content

Instantly share code, notes, and snippets.

View ac1dr3d's full-sized avatar
:shipit:
follow the white rabbit.

აკაკი ტყემალაძე ac1dr3d

:shipit:
follow the white rabbit.
View GitHub Profile
@ac1dr3d
ac1dr3d / README.md
Created November 27, 2023 13:03 — forked from navarrothiago/README.md
Turn your smartphone or tablet camera into a WebCam to make video conference in Linux
# Reinstall SpaceVim along with useful bunch of tools that work well together with SpaceVim.
# This is for Ubuntu 20.04
sudo apt install -y ctags miscfiles python3-dev python3-pip rsync shellcheck software-properties-common wbritish wbritish-huge ruby ruby-dev nodejs gcc g++ make universal-ctags python3-pygments ripgrep
sudo select-default-wordlist
sudo apt-get update
sudo apt-get install -y --reinstall neovim
sudo update-alternatives --install /usr/bin/vi vi /usr/bin/nvim 5
sudo update-alternatives --install /usr/bin/vim vim /usr/bin/nvim 5
@ac1dr3d
ac1dr3d / SpaceVim.md
Created January 25, 2022 06:38 — forked from bespokoid/SpaceVim.md
SpaceVim cheatsheet #tools
@ac1dr3d
ac1dr3d / minikubedelete
Created November 3, 2021 18:16 — forked from sharepointoscar/minikubedelete
Minikube - Delete all pods from default namespace
# delete all pods
kubectl delete --all pods --namespace=default
# deete all deployments
kubectl delete --all deployments --namespace=default
# delete all services
kubectl delete --all services --namespace=default
@ac1dr3d
ac1dr3d / difference.js
Created March 10, 2021 06:16 — forked from Yimiprod/difference.js
Deep diff between two object, using lodash
/**
* Deep diff between two object, using lodash
* @param {Object} object Object compared
* @param {Object} base Object to compare with
* @return {Object} Return a new object who represent the diff
*/
function difference(object, base) {
function changes(object, base) {
return _.transform(object, function(result, value, key) {
if (!_.isEqual(value, base[key])) {
@ac1dr3d
ac1dr3d / fix-infinite-redirect.php
Created June 16, 2020 18:39 — forked from mo3aser/fix-infinite-redirect.php
infinite redirect on static front page WordPress
<?php
/**
* Plugin Name: Fix infinite redirect on static front page
* Description: Use this simple plugin to Fix infinite redirect on static front page with some WordPress versions
* Plugin URI: https://tielabs.com/
* Author: TieLabs
* Author URI: https://tielabs.com
* Version: 0.1.0
* License: GPLv2 or later
*/
@ac1dr3d
ac1dr3d / doom.txt
Created January 12, 2020 10:34 — forked from hjertnes/doom.txt
Doom Emacs Cheatsheet
SPC
SPC: find file
, switch buffer
. browse files
: MX
; EX
< switch buffer
` eval
u universal arg
x pop up scratch
@ac1dr3d
ac1dr3d / mac.sh
Created December 10, 2019 07:48 — forked from antimech/search-mac-device-vendor-offline.sh
Search for device vendor quickly (offline). Requires nmap installed. Put in /bin/ directory and add +x permission for ease of use.
# !/bin/bash
grep $1 $(locate mac-prefixes)
@ac1dr3d
ac1dr3d / ScrollManager.jsx
Created May 6, 2019 17:48 — forked from jeffijoe/ScrollManager.jsx
Save and restore scroll position in React
/*
The MIT License
Copyright (c) Jeff Hansen 2018 to present.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION W
@ac1dr3d
ac1dr3d / net.js
Created April 6, 2019 15:29 — forked from sid24rane/net.js
Simple TCP Client and Server in Node.js (Covering all useful Properties & Methods)
var net = require('net');
// creates the server
var server = net.createServer();
//emitted when server closes ...not emitted until all connections closes.
server.on('close',function(){
console.log('Server closed !');
});