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 / 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 / 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 / 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 / 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 / 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 / SpaceVim.md
Created January 25, 2022 06:38 — forked from bespokoid/SpaceVim.md
SpaceVim cheatsheet #tools
# 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 / 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