Skip to content

Instantly share code, notes, and snippets.

@jayluxferro
jayluxferro / Kali_Desktop_Environments_Installation_and_Removal.md
Last active May 14, 2024 20:33
Kali Desktop Environments Installation and Removal

XFCE Desktop


How to install XFCE Desktop Environment in Kali Linux:

Command:

apt-get install kali-defaults kali-root-login desktop-base xfce4 xfce4-places-plugin xfce4-goodies

How to remove XFCE in Kali Linux:

Command:

@terlar
terlar / kubectl.fish
Last active January 31, 2021 04:11
Kubernetes fish completions
# kubernetes - is an open source system for managing containerized
# applications across multiple hosts, providing basic mechanisms for
# deployment, maintenance, and scaling of applications.
# See: https://kubernetes.io
function __kubectl_no_command
set -l cmd (commandline -poc)
if not set -q cmd[2]
return 0
end
@awesomebytes
awesomebytes / alienware15r3_install_ubuntu14.04.05.md
Created December 8, 2016 09:37
Install Ubuntu 14.04 on Alienware 15 R3 instructions

How to install Ubuntu 14.04.05 on Alienware 15 R3

Tiny guide to install Ubuntu 14.04.05 on a brand new Alienware 15 R3.

Let windows 10 install

Just next, next, next filling up your data.

You should get a BIOS update alert from the Alienware Update widget. If not, right click on the Down arrow icon in the bottom right extra icons ^ thing and right click, then click Check for Updates.

@myusuf3
myusuf3 / delete_git_submodule.md
Created November 3, 2014 17:36
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
@RichardBronosky
RichardBronosky / multiple_ssh_setting.md
Last active May 13, 2023 09:28 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"

TheWayToGo-day4

今天阅读的内容是第十一章和第十二章的前两个章节,其中,第十一章介绍的是 Go 语言的 interface 和 reflection。而 interface 是 Go 语言的一个非常重要的特性,通过 interface ,Go 语言可以实现多态,可以实现动态类型所谓的鸭子类型,所以多花了一些时间来理解这个概念。当然,看完也不能说是完全理解,还是需要通过项目实践。而 reflection 是通过 reflect 包实现的,实现了对类型的 reflection 可以为 Go 提供一些动态的特点。下面总结今天的要点。

### 第十一章:Interfaces and reflection

Go 语言不是一个传统的 OO 语言,它没有类,也没有继承,但是它通过一个非常灵活的概念,可以让使用者非常方便地实现 OO 的一些概念和层次,而又不需要处理传统 OO 语言那样复杂的东西。这个概念就是 interface,在我看来 interface 的概念很清楚。正如其本意所说明的,接口。一个实现了某个 interface 的方法的类型,就被认为可以用在使用这个 interface 的地方,比如接受这个 interface 作为参数的函数。通过 interface 还可以实现多态,下面是这章的要点:

1.首先是 interface 的定义形式:type name interface { Method1(param_list) return_type },一个 interface 可以有多个的 method,从这个形式看来,有点像是一组指定名名称的方法;

@goyalankit
goyalankit / bash_to_zsh_history.rb
Last active October 28, 2023 05:07
Import bash history to zsh history.
#################################################################
# = This script transfers bash history to zsh history
# = Change bash and zsh history files, if you don't use defaults
#
# = Usage: ruby bash_to_zsh_history.rb
#
# = Author: Ankit Goyal
#################################################################
# change if you don't use default values
@lifuzu
lifuzu / invoke_curl.groovy
Created April 18, 2014 19:19
using groovy to invoke curl
// Define cURL process with correct arguments.
def proc = "curl -o log/${day.format('yyyy-MM-dd')}.log "
+ "http://servername/import-data/${day.format('yyyy-MM-dd')}"
.execute()
// cURL uses error output stream for progress output.
Thread.start { System.err << proc.err }
// Wait until cURL process finished and continue with the loop.
proc.waitFor()
@tomoemon
tomoemon / Vagrantfile
Last active November 6, 2023 13:27
sample Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
#!/bin/sh
#
# /etc/rc.d/init.d/supervisord
#
# Supervisor is a client/server system that
# allows its users to monitor and control a
# number of processes on UNIX-like operating
# systems.
#
# chkconfig: - 64 36