View TokenBasedRememberMeServices.php
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 | |
namespace Umpirsky\MyBundle\Security\Http\RememberMe; | |
use Symfony\Component\Security\Http\RememberMe\TokenBasedRememberMeServices as BaseTokenBasedRememberMeServices; | |
use Symfony\Component\HttpFoundation\Cookie; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\Security\Core\Exception\AuthenticationException; | |
use Symfony\Component\Security\Core\User\UserInterface; |
View ORMUuidQueryBuilderLoader.php
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 | |
namespace Umpirsky\Form\ChoiceList; | |
use Doctrine\ORM\QueryBuilder; | |
use Doctrine\DBAL\Connection; | |
use Doctrine\DBAL\Types\Type; | |
use Doctrine\DBAL\Platforms\AbstractPlatform; | |
use Symfony\Bridge\Doctrine\Form\ChoiceList\EntityLoaderInterface; | |
use Symfony\Component\Form\Exception\LogicException; |
View keyboard-backlight
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
#!/bin/bash | |
# Turn keyboard backlight on/off using https://github.com/MatMoul/g810-led | |
g413-led -a FFFFFF # always turn on on startup (it turns off for some reason on reboot) | |
dbus-monitor --session "type=signal,interface=org.gnome.SessionManager.Presence,member=StatusChanged" | | |
while read x; do | |
case "$x" in | |
*"uint32 3"*) g413-led -a 000000;; | |
*"uint32 0"*) g413-led -a FFFFFF;; |
View error.swift
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
fun a() { | |
try { | |
b(); | |
} catch (Exception e) { | |
// whatever | |
} | |
} | |
fun b() { | |
c(); |
View convert
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
#!/bin/sh | |
# chardetect orignial | |
IFS_BAK=$IFS | |
IFS=" | |
" | |
for line in $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS; do | |
iconv -f Windows-1250 -t utf-8//IGNORE $line > $line.tmp |
View userContent.css
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
input:not(.tactile-searchbox-input):not(.urlbar-input):not(.textbox-input):not(.form-control):not([type='checkbox']) { | |
-moz-appearance: none !important; | |
background-color: white; | |
color: black; | |
} | |
#downloads-indicator-counter { | |
color: white; | |
} |
View tld-html
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
https://www.iana.org/domains/root/db | |
aaa | |
aarp | |
abb | |
abbott | |
abogado | |
ac | |
academy | |
accenture | |
accountant |
View gist:a36ff364d8ddcdd2627b
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
Verifying that +umpirsky is my blockchain ID. https://onename.com/umpirsky |
View ubuntu-raid.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
# http://askubuntu.com/questions/505446/how-to-install-ubuntu-14-04-with-raid-1-using-desktop-installer | |
# http://askubuntu.com/questions/660023/how-to-install-ubuntu-14-04-64-bit-with-a-dual-boot-raid-1-partition-on-an-uefi%5D | |
sudo -s | |
apt-get -y install mdadm | |
apt-get -y install grub-efi-amd64 | |
sgdisk -z /dev/sda | |
sgdisk -z /dev/sdb | |
sgdisk -n 1:0:+100M -t 1:ef00 -c 1:"EFI System" /dev/sda | |
sgdisk -n 2:0:+8G -t 2:fd00 -c 2:"Linux RAID" /dev/sda |
NewerOlder