This file contains hidden or 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
| bindsym XF86AudioPlay exec --no-startup-id /usr/local/bin/mm-control play | |
| bindsym XF86AudioStop exec --no-startup-id /usr/local/bin/mm-control stop | |
| bindsym XF86AudioNext exec --no-startup-id /usr/local/bin/mm-control next | |
| bindsym XF86AudioPrev exec --no-startup-id /usr/local/bin/mm-control prev | |
| # you may want to set the correct sink ID here | |
| bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 1 -- -10% | |
| bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 1 -- +10% | |
| bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 1 toggle |
This file contains hidden or 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
| CC = gcc # C compiler | |
| CFLAGS = -DNOT_WIN -fPIC -Wall -Wextra -O2 -g # C flags | |
| LDFLAGS = -shared # linking flags | |
| RM = rm -f # rm command | |
| TARGET_LIB = libGee.External.Capstone.Proxy.so # target lib | |
| SRCS = proxy.c # source files | |
| OBJS = $(SRCS:.c=.o) | |
| .PHONY: all |
This file contains hidden or 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
| private readonly ConcurrentBag<Tuple<Func<IUser, object>, Func<IUser, Task>>> GlobalUserListeners = new ConcurrentBag<Tuple<Func<IUser, object>, Func<IUser, Task>>>(); | |
| private readonly ConcurrentDictionary<int, IList<Tuple<Func<IUser, object>, Func<IUser, Task>, object>>> UserListeners = new ConcurrentDictionary<int, IList<Tuple<Func<IUser, object>, Func<IUser, Task>, object>>>(); | |
| private readonly ConcurrentBag<Tuple<Func<IChannel, object>, Func<IChannel, Task>>> GlobalChannelListeners = new ConcurrentBag<Tuple<Func<IChannel, object>, Func<IChannel, Task>>>(); | |
| private readonly ConcurrentDictionary<int, IList<Tuple<Func<IChannel, object>, Func<IChannel, Task>, object>>> ChannelListeners = new ConcurrentDictionary<int, IList<Tuple<Func<IChannel, object>, Func<IChannel, Task>, object>>>(); | |
| public void AddListener<T>(Func<T, object> mapper, Func<T, Task> listener) { | |
| ConcurrentBag<Tuple<Func<T, object>, Func<T, Task>>> globalListeners; | |
| ConcurrentDictionary< |
This file contains hidden or 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 -e | |
| echo "============================================================================= | |
| | Automatic Phalanger on Debian/Ubuntu installer | | |
| |---------------------------------------------------------------------------| | |
| | A few notes: | | |
| | - Be sure to run this script as root. | | |
| | - Downloading stuff can take a while | | |
| | - Autohosting is enabled, so php files are automatically executed | | |
| | - Tested on Debian 7 (wheezy) and Debian 8 (but should work on Ubuntu) | |
This file contains hidden or 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
| %secp = $($mediaplayer.position() / 1000); | |
| %minp= $(%secp / 60); | |
| %secp = $(%secp - $(%minp / 60)); | |
| %secp %= 60; | |
| %secl = $($mediaplayer.length() / 1000); | |
| %minl= $(%secl / 60); | |
| %secl = $(%secl - $(%minl / 60)); | |
| %secl %= 60; | |
| if(%secp < 10) { |