Skip to content

Instantly share code, notes, and snippets.

@totaku
totaku / style.css
Created March 11, 2014 09:38
2 backgrounds
background: url('banner1.jpg'), url('banner2.jpg');
background-position: left top, left top;
background-repeat: no-repeat, repeat;
@totaku
totaku / Cartman.txt
Last active August 29, 2015 14:16
Cartman
Cartman: God damn it!
Record Dealer: Whoa! Calm down there!
Cartman: Who cares? I can never win a bet because you stupid assholes don't give out platinum albums.
Record Dealer: But you spread the word of the lord. You brought faith in Jesus.
Cartman: D'oh! Fuck Jesus!
Butters: Calm down, Eric. You're gonna hurt the band!
Token: Yeah, we're losing our fans.
Cartman: Who fucking cares, Token? I can never beat Kyle now. I'll say it again. Fuck Jesus!
© Eric Cartman
@totaku
totaku / style.css
Last active August 29, 2015 14:17
iPad in portrait & landscape
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) {
}
@totaku
totaku / gist:4022170438333eea46ca
Created March 18, 2015 12:31
iPad in landscape
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) {
}
@totaku
totaku / gist:f7338c167995e49a9c1f
Created April 20, 2015 07:50
301 redirect nginx
location /raznoe/intervyu-s-yaponskoy-porno-aktrisoy {
rewrite ^/raznoe/intervyu-s-yaponskoy-porno-aktrisoy(.*) http://totaku.ru/goluboy-ekran/intervyu-s-yaponskoy-porno-aktrisoy permanent;
}
@totaku
totaku / map.js
Created June 10, 2016 06:00
Maps dar74
<script type="text/javascript" charset="utf-8" async src="https://api-maps.yandex.ru/services/constructor/1.0/js/?sid=U2aOEOsKQpX7ikHa_nF2G9SueloYywg7&width=600&height=400&lang=ru_RU&sourceType=constructor&scroll=true"></script>
# from https://cipherli.st/
# and https://raymii.org/s/tutorials/Strong_SSL_Security_On_nginx.html
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
ssl_ecdh_curve secp384r1;
ssl_session_cache shared:SSL:10m;
ssl_session_tickets off;
ssl_stapling on;
.rm-remove{background:url(//calendar.google.com/googlecalendar/images/combined_v22.png) -199px -52px;cursor:pointer;height:10px;width:10px;line-height:10px}.dp-popup{position:absolute;border:1px solid black;background:#e3e9ff;font-size:9pt;line-height:1em;width:170px;z-index:25000003}.dp-dayh{font-size:78%}.dp-monthtable{width:100%;padding:0;-webkit-user-select:none}.dp-cell{text-align:center;padding:3px 2px;font-family:Arial,sans-serif;font-size:12px;color:#222;font-weight:normal}.dp-heading{cursor:pointer;font-weight:bold;vertical-align:middle}.dp-cur{font-weight:bold;padding-bottom:4px;text-align:center;white-space:nowrap;font-size:100%;color:#20c}.dp-prev,.dp-next{font-size:100%;padding-bottom:6px;cursor:pointer;color:#20c}.dp-prev{text-align:right}.dp-next{text-align:left}.dp-sb-cur{color:#20c;cursor:pointer;font-size:13px;font-weight:bold;padding:7px 0;text-align:left;text-decoration:underline;-moz-user-select:none;-webkit-user-select:none}.dp-sb-nav{padding:7px 0;text-align:right;white-space:nowrap}.dp
server {
server_name www.example.ru;
return 301 $scheme://example.ru$request_uri;
}
server {
server_name example.ru;
root /home/user/www/example.ru/main; ## <-- Your only path reference.
access_log off;
core: 8.x
type: theme
base theme: aegan
name: 'Haruo'
description: 'My first Drupal8 subtheme'
package: 'Custom'
# Regions
regions: