Skip to content

Instantly share code, notes, and snippets.

#! /bin/bash
end=$((SECONDS+70))
while [ $SECONDS -lt $end ]; do
system76-power profile performance
system76-power profile performance
echo 1515 | sudo tee /sys/class/backlight/intel_backlight/brightness
sleep 1
RunOrRaise(class, run)
{
if WinExist(class) {
WinActivate, %class%
}
else {
Run, %run%
}
}
[
{ "keys": ["ctrl+d"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} },
{ "keys": ["ctrl+left"], "command": "move_to", "args": {"to": "bol", "extend": false} },
{ "keys": ["ctrl+right"], "command": "move_to", "args": {"to": "eol", "extend": false} },
{ "keys": ["ctrl+up"], "command": "move_to", "args": {"to": "bof", "extend": false} },
{ "keys": ["ctrl+down"], "command": "move_to", "args": {"to": "eof", "extend": false} },
{ "keys": ["ctrl+["], "command": "jump_back" },
{ "keys": ["ctrl+]"], "command": "jump_forward" },
{ "keys": ["ctrl+super+d"], "command": "duplicate_line" },
]
#! /bin/bash
# Load libcomposite
modprobe libcomposite
# Create a gadget called usb-gadgets
cd /sys/kernel/config/usb_gadget/
mkdir -p usb-gadgets
cd usb-gadgets
@lucian303
lucian303 / # php@7.4 - 2021-03-17_10-25-15.txt
Created March 18, 2021 02:20
php@7.4 on macOS 10.15.7 - Homebrew build logs
Homebrew build logs for php@7.4 on macOS 10.15.7
Build date: 2021-03-17 10:25:15
(defn fizz-buzz
[num]
(cond
(and
(= (mod num 3) 0)
(= (mod num 5) 0)) "FizzBuzz"
(= (mod num 3) 0) "Fizz"
(= (mod num 5) 0) "Buzz"
:else num))
.host:/ /mnt/hgfs fuse.vmhgfs-fuse allow_other 0 0
(ns api-proxy.logging.core
(:require [taoensso.timbre :as timbre]
[taoensso.timbre.appenders.core :as appenders]
[raven-clj.core :refer [capture]]
[raven-clj.interfaces :refer [stacktrace http]]
[environ.core :refer [env]]
[mount.core :as mount]
[compojure.api.exception :as ex]
[schema.utils :as su]
[clj-json.core :as json]
(defn sentry-appender
"Add a timbre appender for sending logs to Sentry.io"
[app-ns]
{:enabled? true
:async? true
:min-level :warn
:rate-limit nil
:output-fn :inherit
:fn
(fn [data]
@lucian303
lucian303 / private.xml
Last active October 3, 2015 17:19
Karbiner OS X Key Config for Double Tapping Control
<?xml version="1.0"?>
<root>
<item>
<name>Lucian</name>
<identifier>Lucian</identifier>
<autogen>__DoublePressModifier__ KeyCode::CONTROL_L, KeyCode::CONTROL_L, KeyCode::F12</autogen>
</item>
</root>