This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*var getStackTrace = function () { | |
var obj = {}; | |
Error.captureStackTrace(obj, getStackTrace); | |
return obj.stack; | |
};*/ | |
function a0_0x2022(_0xcf00d8, _0x46623d) { | |
const _0xf90af8 = a0_0xf90a(); | |
return ( | |
(a0_0x2022 = function (_0x2022ef, _0xef2f2) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WITH tab AS ( | |
SELECT | |
a.attrelid::regclass::text AS t, | |
a.attname AS c, | |
pg_get_serial_sequence(a.attrelid::regclass::text, a.attname) AS s, | |
nextval(pg_get_serial_sequence(a.attrelid::regclass::text, a.attname)) AS v | |
FROM pg_attribute a | |
JOIN pg_class c ON c.oid = a.attrelid | |
WHERE | |
a.attrelid::regclass::text LIKE '%' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Disabling all NMEA sentences | |
$PUBX,40,GGA,0,0,0,0*5A // Disable GGA | |
$PUBX,40,GLL,0,0,0,0*5C // Disable GLL | |
$PUBX,40,GSA,0,0,0,0*4E // Disable GSA | |
$PUBX,40,GSV,0,0,0,0*59 // Disable GSV | |
$PUBX,40,RMC,0,0,0,0*47 // Disable RMC | |
$PUBX,40,VTG,0,0,0,0*5E // Disable VTG | |
$PUBX,40,ZDA,0,0,0,0*44 // Disable ZDA | |
# Enabling all NMEA sentences |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Tested on an upgraded Ubuntu 20.04 | |
apt install netplan.io | |
systemctl unmask systemd-networkd.service | |
systemctl unmask systemd-resolved.service | |
ENABLE_TEST_COMMANDS=1 netplan migrate | |
netplan try | |
reboot | |
apt purge ifupdown resolvconf | |
ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf |
After adding the Extension target to a project
- Go to the menu bar -> Product -> Scheme -> Edit Scheme.
- Under the info tab change the executable dropdown menu to "Xcode.app".
- If you have a testing file add it to the "Arguments Passed On Launch" field under the Arguments tab.
This should make True Color (24-bit) and italics work in your tmux session and vim/neovim when using Alacritty (and should be compatible with any other terminal emulator, including Kitty).
Running this script should look the same in tmux as without.
curl -s https://gist.githubusercontent.com/lifepillar/09a44b8cf0f9397465614e622979107f/raw/24-bit-color.sh >24-bit-color.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
This gist shows how to run asyncio loop in a separate thread. | |
It could be useful if you want to mix sync and async code together. | |
Python 3.7+ | |
""" | |
import asyncio | |
from datetime import datetime | |
from threading import Thread | |
from typing import Tuple, List, Iterable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Symfony\Component\Finder\Finder; | |
use Twig\Environment; | |
use Twig\Loader\FilesystemLoader; | |
class FilesystemCacheWarmer | |
{ | |
private $twig; |
NewerOlder