Skip to content

Instantly share code, notes, and snippets.

View mbtamuli's full-sized avatar
🤩
Learning stuff

Mriyam Tamuli mbtamuli

🤩
Learning stuff
View GitHub Profile
@dims
dims / README.md
Last active July 21, 2024 11:36
Kubernetes Resources
# Install these packages (use your favorite AUR tool here)
yay -S minikube kubectl docker-machine-driver-kvm2 libvirt qemu-headless ebtables
# Get libvirt going
sudo systemctl enable libvirtd.service
sudo usermod -a -G libvirt $(whoami)
# This fix thanks to http://blog.programmableproduction.com/2018/03/08/Archlinux-Setup-Minikube-using-KVM/
sudo virsh net-autostart default
@yitong-ovo
yitong-ovo / archvm.sh
Last active February 5, 2020 10:08 — forked from Phaeilo/archvm.sh
Archlinux VM automated installation script.
#!/bin/bash
# The MIT License (MIT)
#
# Copyright (c) 2015 Philip Huppert
# fork by Yitong
#
# 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
@gaearon
gaearon / modern_js.md
Last active July 18, 2024 10:37
Modern JavaScript in React Documentation

If you haven’t worked with JavaScript in the last few years, these three points should give you enough knowledge to feel comfortable reading the React documentation:

  • We define variables with let and const statements. For the purposes of the React documentation, you can consider them equivalent to var.
  • We use the class keyword to define JavaScript classes. There are two things worth remembering about them. Firstly, unlike with objects, you don't need to put commas between class method definitions. Secondly, unlike many other languages with classes, in JavaScript the value of this in a method [depends on how it is called](https://developer.mozilla.org/en-US/docs/Web/Jav
@PatelUtkarsh
PatelUtkarsh / wp-config.php
Last active October 29, 2018 08:24
Valet share url fix for WordPress with https support
<?php
/**
* Add this block in wp-config.php file.
*
* Move any other `WP_HOME` or `WP_SITEURL` in else condition if present.
*/
if ( isset( $_SERVER['HTTP_X_ORIGINAL_HOST'] ) ) {
$is_ssl = isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] );
$actual_link = ( $is_ssl ? "https" : "http" ) . "://{$_SERVER[ 'HTTP_X_ORIGINAL_HOST' ]}";
define( 'WP_HOME', $actual_link );
@benchonaut
benchonaut / README.md
Last active July 9, 2022 12:00
links collection of interesting stuff -- be careful --don't be evil !!
@fideloper
fideloper / tags.py
Created November 4, 2016 13:21
Change many aws instances tags (boto3)
import boto3
import sys
ec2 = boto3.client('ec2')
# Grab where backup retention is 14 days so we can reduce it to 7
instances = ec2.describe_instances(Filters=[{'Name': 'tag:Retention', 'Values': ['14']}])
ids = []
@fstab
fstab / MATRIX.md
Last active January 5, 2022 12:31
How to use matrix.org and vector.im as an IRC client

How to use matrix.org and vector.im as an IRC client

How to Join an IRC Channel on matrix.org

Join the room #freenode_<#channel>:matrix.org, replacing <#channel> with the name of the IRC channel. For example, in order to join the #prometheus IRC channel, join the room #freenode_#prometheus:matrix.org on matrix.org.

In vector.im, rooms can be joined with the directory symbol on the bottom left.

@Xainey
Xainey / Vagrantfile
Created August 1, 2016 19:49
Vagrant/Docker Example for Gitlab/Jenkins
# -*- mode: ruby -*-
# vi: set ft=ruby :
#Docker Engine and Compose needs to be installed or added to provision.
ip_address = "192.168.30.30"
hostname = 'dockerbox.dev'
subdomains = ['git.dockerbox.dev', 'whoami.dockerbox.dev', 'jenkins.dockerbox.dev']
Vagrant.configure(2) do |config|
@PatelUtkarsh
PatelUtkarsh / greythr.sh
Last active August 16, 2023 08:21
Attendence Login or logout to greythr
#!/bin/bash
#set login & password or this will ask everytime
#login=
#password=
#comment this if you set login password on top!
read -p "User name or email: " login
echo -n Password: