Skip to content

Instantly share code, notes, and snippets.

View argamanza's full-sized avatar
🇮🇱

Tzahi Argaman argamanza

🇮🇱
View GitHub Profile
@argamanza
argamanza / en-he-capslock-toggle.json
Created August 2, 2023 08:17
Karabiner Elements Caps Lock language toggle
{
"title":"Language Toggler",
"rules":[
{
"description":"Switch between HE <-> EN (Caps Lock)",
"manipulators":[
{
"conditions":[
{
"input_sources":[
#!/bin/bash
echo 'Hello World'
@argamanza
argamanza / functions.php
Last active June 1, 2020 13:39
Ultimate Member + Google Profile Avatars integration
/*##################################################################
# Integrate Ultimate Member and Google Profile Avatars plugins #
##################################################################*/
// Part 1: Add 'google_avatar' user meta with default value of 'true'
// define the wp_login callback
function initiate_google_avatar($user_login, $user) {
$user_id = $user->ID;
#!/bin/sh
if [ -z "$1" ]
then
echo "Usage: ./etcd_put.sh [file]"
exit 1
else
file=$1
echo "Key/Values file: $file"
if [[ `/sbin/init --version` =~ upstart ]]; then echo using upstart;
elif [[ `systemctl` =~ -\.mount ]]; then echo using systemd;
elif [[ -f /etc/init.d/cron && ! -h /etc/init.d/cron ]]; then echo using sysv-init;
else echo cannot tell; fi
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/home/argamanza/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
System: Host: TzahiDeveleap Kernel: 5.1.8-1-MANJARO x86_64 bits: 64 Desktop: KDE Plasma 5.15.5 Distro: Manjaro Linux
Machine: Type: Laptop System: Dell product: Latitude 5590 v: N/A serial: <filter>
Mobo: Dell model: 0RMKK4 v: A00 serial: <filter> UEFI: Dell v: 1.6.2 date: 11/27/2018
Battery: ID-1: BAT0 charge: 63.2 Wh condition: 67.2/68.0 Wh (99%)
CPU: Topology: Quad Core model: Intel Core i7-8650U bits: 64 type: MT MCP L2 cache: 8192 KiB
Speed: 800 MHz min/max: 400/4200 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 4: 800 5: 800 6: 800 7: 801 8: 800
Graphics: Device-1: Intel UHD Graphics 620 driver: i915 v: kernel
Device-2: NVIDIA GM108M [GeForce MX130] driver: nouveau v: kernel
Display: x11 server: X.Org 1.20.5 driver: intel,nouveau unloaded: modesetting resolution: 1920x1080~60Hz
OpenGL: renderer: Mesa DRI Intel UHD Graphics 620 (Kabylake GT2) v: 4.5 Mesa 19.0.6
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 620 (rev 07)
/dev/fb0
/dev/dri/card1
/dev/dri/card0
/dev/media0
/dev/video1
/dev/video0
server glx vendor string: SGI
client glx vendor string: Mesa Project and SGI
Vendor: Intel Open Source Technology Center (0x8086)
server glx vendor string: SGI
client glx vendor string: Mesa Project and SGI
Vendor: Intel Open Source Technology Center (0x8086)
OpenGL vendor string: Intel Open Source Technology Center
# Match on all types of devices but joysticks
#
# If you want to configure your devices, do not copy this file.
# Instead, use a config snippet that contains something like this:
#
# Section "InputClass"
# Identifier "something or other"
# MatchDriver "libinput"
#
# MatchIsTouchpad "on"