Skip to content

Instantly share code, notes, and snippets.

View drye's full-sized avatar

Primož Verdnik drye

View GitHub Profile
export AWS_PROFILE=470465538235_DEV-API
# Description: This function is used to execute kubectl commands in a specific namespace.
# If the NAMESPACE environment variable is not set, it defaults to "sobi".
# Parameters:
# - $@: The kubectl command and its arguments.
# Usage: k [kubectl command and arguments]
# Example:
# - k get pods
k() {
@drye
drye / open-slack-bookmark.js
Last active February 17, 2023 13:09
Open last saved Slack bookmark
#!/bin/bash
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Open last Slack boomark
# @raycast.mode silent
# Optional parameters:
# @raycast.icon 🧍
# @raycast.argument1 { "type": "text", "placeholder": "days", "optional": true }
@drye
drye / push-slack-bookmark.js
Last active February 17, 2023 19:51
Push slack bookmark
#!/usr/bin/env node
// Required parameters:
// @raycast.schemaVersion 1
// @raycast.title Push slack bookmark
// @raycast.mode silent
// Optional parameters:
// @raycast.icon 🧍🏻
// @raycast.argument1 { "type": "text", "placeholder": "Slack link" }
@drye
drye / jira-enrich.js
Last active February 17, 2023 13:12
Enrich Jira tickets with markdown links with descriptions
#!/usr/bin/env LANG=en_GB.UTF-8 node
// Required parameters:
// @raycast.schemaVersion 1
// @raycast.title Jira enrich
// @raycast.mode silent
// Optional parameters:
// @raycast.icon 😅
@drye
drye / keybase.md
Last active August 29, 2015 14:00

Keybase proof

I hereby claim:

  • I am drye on github.
  • I am drye (https://keybase.io/drye) on keybase.
  • I have a public key whose fingerprint is 09BB 4B71 2E91 F053 7331 7233 3278 33DA 3EE8 3927

To claim this, I am signing this object:

@drye
drye / clone-intera-projects.sh
Last active December 30, 2015 00:09
Glone all intera projects
#!/bin/sh
echo "This will clone all of the required Intera repos. Hold tight!"
git clone [email protected]:intera-doo/intrix.git
git clone [email protected]:intera-doo/intrix-custom.git
git clone [email protected]:intera-doo/intrix-extensions.git
git clone [email protected]:intera-doo/intrix-deploy.git
git clone [email protected]:intera-doo/intrix-control.git
git clone [email protected]:intera-doo/intera-webpage.git
@drye
drye / pingmonitor.sh
Created August 7, 2013 08:44
Continuously ping a set of hosts and log results to a file
#!/bin/bash
HOSTS="www.google.com www.bing.com"
# no of ping requests
COUNT=1
# timeout in seconds
TIMEOUT=1
LOG=/var/log/pingmonitor.log
@drye
drye / Irssi Screen Startup.md
Last active April 12, 2024 10:38
Start Irssi with Screen on startup on Arch Linux on Raspberry PI

Start Irssi with Screen on startup on Arch Linux on Raspberry PI

Put this in the file /etc/systemd/system/[email protected]

[Unit]
Description=irssiscreen
After=network.target
# bash <(curl -s https://gist.github.com/drye/5387341/raw/ec72cddfe43ec3d39c91a3c118cb68ab14a049f8/enable_dnsmasq_on_osx.sh)
# ----------------------
# installing dnsmasq and enable daemon
# ----------------------
brew install dnsmasq
sudo cp -v $(brew --prefix dnsmasq)/homebrew.mxcl.dnsmasq.plist /Library/LaunchDaemons
# ----------------------
# adding resolver for vbox domain
# ----------------------
@drye
drye / private.xml
Last active December 15, 2015 15:29
Private.xml file for KeyRemap4MacBook - changing the keyboard layout to Slovenian language temporarily while pressing the Caps lock key.
<?xml version="1.0"?>
<root>
<item>
<name>Slovenian charaters while holding caps lock (mapped to F19 with pc keyboard hack)</name>
<identifier>private.slovenian_chars</identifier>
<autogen>__KeyToKey__ KeyCode::F19, KeyCode::VK_NONE,
Option::KEYTOKEY_BEFORE_KEYDOWN,
KeyCode::VK_CHANGE_INPUTMODE_SLOVENIAN,
KeyCode::VK_WAIT_10MS,
KeyCode::VK_WAIT_10MS,