Skip to content

Instantly share code, notes, and snippets.

View theonelucas's full-sized avatar
🐔
whoami > /dev/null

Theone theonelucas

🐔
whoami > /dev/null
View GitHub Profile
@bradtraversy
bradtraversy / webdev_online_resources.md
Last active June 25, 2024 22:17
Online Resources For Web Developers (No Downloading)
@MeFoDy
MeFoDy / DailyCssImages.md
Last active September 11, 2023 12:48
Daily CSS Images: full list of tasks

Daily CSS Images

Week 1

Day 1. Bear Cub

The challenge begins! Don't overthink it. A cub can be made in only a few shapes.

Day 2. Elephant

@ichramm
ichramm / check-aur-updates.sh
Last active March 4, 2021 00:36
(Archlinux) Update check for packages installed from the AUR
#!/bin/bash
pacman -Qmq | while read package; do
cur_version=$(pacman -Qi $package | egrep 'Version *:' | sed 's/Version *: *//'); # fast
aur_version=$(yaourt -Si $package | egrep 'Version *:' | sed 's/Version *: *//'); # slow
if [ "$cur_version" = "$aur_version" ]; then
echo -e "\e[0;32mUp to date: \e[0m$package";
else
echo -e "\e[1;33mNeeds update: \e[0m$package \e[0;33m(installed: $cur_version, aur: $aur_version)\e[0m";
fi
@Manu343726
Manu343726 / gist:ca0ceb224ea789415387
Created September 19, 2015 18:15
Running ARM docker image with QEMU on x86_64 Arch Linux host
# Install quemu, docker, etc
yaourt -S qemu qemu-user-static binfmt-support
# The quemu-user-static AUR package is outdated and broken. The .deb package they pull is no longer in the ubuntu repository.
# Edit the PKGBUILD and use qemu-user-static_2.4+dfsg-3_amd64.deb (With SHA1 sum "84d83a16c60c82b6c579f2f750b04a3ac26c249b")
# Enable ARM emulation
update-binfmts --enable qemu-arm
@jeansch
jeansch / gsettings-dump
Created September 18, 2013 20:26
Dump gsettings.
#!/bin/sh
# Dump gsettings
for s in $(gsettings list-schemas); do
for k in $(gsettings list-keys $s); do
echo -n "$s.$k = "; gsettings get $s $k;
done;
done
@cboden
cboden / example.php
Last active February 11, 2024 14:38
Ratchet Routing
<?php
$collection = new RouteCollection;
$collection->add('chatRoom', new Route('/demo', array(
'_controller' => new ChatRoom
, 'allowedOrigins' => 'socketo.me'
)));
$collection->add('echo', new Route('/echo', array(
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active June 29, 2024 08:12
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname