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
git filter-branch --force --env-filter ' | |
NAME="anonymous" | |
EMAIL="anonymous@anonymous.anonymous" | |
export GIT_COMMITTER_NAME="$NAME" | |
export GIT_COMMITTER_EMAIL="$EMAIL" | |
export GIT_AUTHOR_NAME="$NAME" | |
export GIT_AUTHOR_EMAIL="$EMAIL" |
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
cd $OPENSHIFT_DATA_DIR | |
#Install java8 | |
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u45-b14/jdk-8u45-linux-x64.tar.gz | |
tar xvf jdk-8u45-linux-x64.tar.gz | |
export PATH=$OPENSHIFT_DATA_DIR/jdk1.8.0_45/bin:$PATH | |
export JAVA_HOME="$OPENSHIFT_DATA_DIR/jdk1.8.0_45" | |
#Install nodejs and npm: | |
wget https://nodejs.org/dist/v0.12.5/node-v0.12.5-linux-x86.tar.gz |
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
import java.io.ByteArrayInputStream; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
import java.security.KeyFactory; | |
import java.security.KeyStore; | |
import java.security.KeyStoreException; | |
import java.security.NoSuchAlgorithmException; | |
import java.security.PrivateKey; |
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
INSERT INTO `obi`.`wp_users` (`ID`, `user_login`, `user_pass`, `user_nicename`, `user_email`, `user_url`, `user_registered`, `user_activation_key`, `user_status`, `display_name`) VALUES ('4', 'admin', MD5('admin'), 'admin', 'admin@admin.com', 'http://www.test.com/', '2011-06-07 00:00:00', '', '0', 'admin'); | |
INSERT INTO `obi`.`wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, '4', 'wp_capabilities', 'a:1:{s:13:"administrator";s:1:"1";}'); | |
INSERT INTO `obi`.`wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, '4', 'wp_user_level', '10'); |
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
// ==UserScript== | |
// @name github-network.user.js | |
// @namespace https://github.com/ | |
// @description Add network menu item to the main page of repository | |
// @include https://github.com/* | |
// @version 2.0.1 | |
// @grant none | |
// ==/UserScript== | |
var repo = window.location.pathname; | |
if (repo) { |
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
#/etc/grub.d/40_custom | |
#!/bin/sh | |
exec tail -n +3 $0 | |
# This file provides an easy way to add custom menu entries. Simply type the | |
# menu entries you want to add after this comment. Be careful not to change | |
# the 'exec tail' line above. | |
menuentry "Windows 7" { | |
insmod part_msdos | |
insmod ntfs |
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
[user] | |
name = user | |
email = user@gmail.com | |
[alias] | |
co = checkout | |
s = status | |
b = branch | |
c = commit -a -m | |
l = log --stat | |
g = log --graph |
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
#/etc/X11/xorg.conf.d/xorg.conf | |
#Use capslock button to change keyboard layouts. | |
Section "InputClass" | |
Identifier "keyboard-all" | |
Driver "evdev" | |
Option "XkbLayout" "us,ru" | |
Option "XkbOptions" "grp:caps_toggle,grp_led:scroll" | |
MatchIsKeyboard "on" | |
EndSection |
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
// ==UserScript== | |
// @name youtube-subscriptions-refresh.user.js | |
// @namespace https://www.youtube.com/feed/subscriptions | |
// @description Make My Subscriptions tab clickable for refresh | |
// @include https://www.youtube.com/feed/subscriptions | |
// @version 1.0.0 | |
// @grant none | |
// ==/UserScript== | |
var tab = document.getElementsByClassName("epic-nav-item-heading")[0]; | |
tab.addEventListener("click", function () { |
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
// ==UserScript== | |
// @name github-stars | |
// @namespace https://github.com/ | |
// @description Add stars link to github head | |
// @include https://github.com/* | |
// @version 1.0.0 | |
// @grant none | |
// ==/UserScript== | |
$('.header-nav.left').append('<li class="header-nav-item">' + | |
'<a data-ga-click="Header, go to stars, text:stars" href="https://github.com/stars" class="header-nav-link">' + |
NewerOlder