Skip to content

Instantly share code, notes, and snippets.

:octocat:

Wael Nasreddine kalbasit

:octocat:
Block or report user

Report or block kalbasit

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View .tmux.conf
# ============================================= #
# Start with defaults from the Sensible plugin #
# --------------------------------------------- #
run-shell /nix/store/sy5y4892r4zp4q881363bcclx099prgn-tmuxplugin-sensible/share/tmux-plugins/sensible/sensible.tmux
# ============================================= #
set -g default-terminal "screen"
set -g base-index 0
setw -g pane-base-index 0
View nixops-test.sh
#! /usr/bin/env nix-shell
#! nix-shell <shabka/shell.nix>
nixops "$@"
View proto.sh
#! /usr/bin/env bash
set -euo pipefail
OS="$(go env GOHOSTOS)"
ARCH="$(go env GOARCH)"
echo -e ">>> Compiling the Go proto"
for label in $(bazel query 'kind(go_proto_library, //...)'); do
package="${label%%:*}"
View mk-external.nix
mkExternal =
{ name, revision, src, patches }:
stdenvNoCC.mkDerivation {
inherit src patches;
name = "${name}-${revision}";
preferLocalBuild = true;
buildPhase = ''
echo -n "${revision}" > .git-revision
View workaround.sh
if ! nix-shell -p hello --run 'hello' &>/dev/null; then
# The following condition addresses https://github.com/NixOS/nix/issues/2523
if [[ "$(uname -s)" == "Darwin" ]] && [[ "$( grep -E 'nix-daemon.*fork()' /var/log/system.log | wc -l )" -gt 0 ]]; then
>&2 echo ">>> I ran into a Mac-specific bug (https://github.com/NixOS/nix/issues/2523) and I'm applying the workaround automatically for it."
sudo launchctl remove org.nixos.nix-daemon
sed \
-e "s:<key>Program</key>:<key>EnvironmentVariables</key><dict><key>OBJC_DISABLE_INITIALIZE_FORK_SAFETY</key><string>YES</string></dict>&:g" \
/Library/LaunchDaemons/org.nixos.nix-daemon.plist > /tmp/org.nixos.nix-daemon.plist
sudo mv /tmp/org.nixos.nix-daemon.plist /Library/LaunchDaemons/org.nixos.nix-daemon.plist
sudo chown root: /Library/LaunchDaemons/org.nixos.nix-daemon.plist
View 56500-build
bazel-watcher
boringssl
cadvisor
cide
cni-plugins
deepin.dbus-factory
deepin.dde-api
deepin.dde-daemon
deepin.deepin-desktop-base
deepin.deepin-desktop-schemas
View keybase.md

Keybase proof

I hereby claim:

  • I am kalbasit on github.
  • I am ylcodes (https://keybase.io/ylcodes) on keybase.
  • I have a public key ASAYUIH9miRsfDVHaDMbY6r697SH1Kz-o86NFt-c5oEfXgo

To claim this, I am signing this object:

View gist:2ca595cf1a8b05d737bdcacb20da51ca
nix-env -f '<nixpkgs>' -iE '(terraform.withPlugins (ps: [
ps.aws
ps.github
ps.null
ps.template
]))'
@kalbasit
kalbasit / pcscd.log
Created Jan 24, 2019
YubiKey 5 issues
View pcscd.log
Jan 23 21:12:30 hades systemd[1]: Started PCSC-Lite daemon.
Jan 23 21:12:30 hades pcscd[29501]: 00000000 ifdhandler.c:150:CreateChannelByNameOrChannel() failed
Jan 23 21:12:30 hades pcscd[29501]: 00000017 readerfactory.c:1106:RFInitializeReader() Open Port 0x200000 Failed (usb:1050/0406:libudev:0:/dev/bus/usb/001/010)
Jan 23 21:12:30 hades pcscd[29501]: 00000025 readerfactory.c:376:RFAddReader() Yubico Yubikey 4 U2F+CCID init failed.
Jan 23 21:12:30 hades pcscd[29501]: 00128627 ifdhandler.c:150:CreateChannelByNameOrChannel() failed
Jan 23 21:12:30 hades pcscd[29501]: 00000007 readerfactory.c:1106:RFInitializeReader() Open Port 0x200001 Failed (usb:0a5c/5832:libudev:0:/dev/bus/usb/001/004)
Jan 23 21:12:30 hades pcscd[29501]: 00000001 readerfactory.c:376:RFAddReader() Broadcom Corp 5880 [Broadcom USH] (0123456789ABCD) init failed.
View aws.nix
resources = {
ec2SecurityGroups = {
ssh-in = {
inherit accessKeyId region;
description = "Allow incoming SSH connection from anywhere";
rules = [
{ fromPort = 22; toPort = 22; protocol = "tcp"; sourceIp = "0.0.0.0/0"; }
# TODO(low): https://github.com/NixOS/nixops/issues/683
# {fromPort = 22; toPort = 22; protocol = "tcp"; sourceIp = "::/0"; }
You can’t perform that action at this time.