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://d.stavrovski.net/blog/post/how-to-install-and-setup-oracle-java-jdk-in-centos-6 | |
# rpm | |
wget --no-cookies \ | |
--no-check-certificate \ | |
--header "Cookie: oraclelicense=accept-securebackup-cookie" \ | |
"http://download.oracle.com/otn-pub/java/jdk/7u55-b13/jdk-7u55-linux-x64.rpm" \ | |
-O jdk-7-linux-x64.rpm | |
# ubuntu |
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
$script = <<SCRIPT | |
yum -y install git rpm rpm-build vim java-1.7.0-openjdk-devel | |
wget http://www.eu.apache.org/dist/maven/maven-3/3.3.3/binaries/apache-maven-3.3.3-bin.tar.gz | |
tar -xvzf apache-maven-3.3.3-bin.tar.gz | |
#Add Maven to PATH | |
echo export PATH=/home/vagrant/apache-maven-3.3.3/bin:\$PATH >> /home/vagrant/.bashrc | |
#Replace settings.xml, uncomment below |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
=== CLEAN TARGET MiniZip OF PROJECT Clutch WITH THE DEFAULT CONFIGURATION (Release) === | |
Check dependencies | |
Clean.Remove clean build/Release-iphoneos/libMiniZip.a | |
builtin-rm -rf /Users/someUser/project/tweak/Clutch/build/Release-iphoneos/libMiniZip.a | |
Clean.Remove clean build/Clutch.build/Release-iphoneos/MiniZip.build | |
builtin-rm -rf /Users/someUser/project/tweak/Clutch/build/Clutch.build/Release-iphoneos/MiniZip.build |
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 time | |
from telethon import sync, TelegramClient, events | |
# sample API_ID from https://github.com/telegramdesktop/tdesktop/blob/f98fdeab3fb2ba6f55daf8481595f879729d1b84/Telegram/SourceFiles/config.h#L220 | |
# or use your own | |
api_id = | |
api_hash = '' | |
# fill in your own details here | |
phone = '+yourphone' |
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
--- | |
- name: Generate configmap k8s | |
template: src=templates/configmap.yaml dest=.k8s/configmap-output.yaml | |
vars: | |
- a_config_path: "config/a-config.yaml" | |
- b_config_path: "config/b-config.yaml" | |
- name: Apply configmap | |
k8s: | |
state: present |
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
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: my-configmap | |
data: | |
a-config.yaml: | | |
foo: | |
bar: {baz: qux, quux: quuz} | |
corge: grault | |
garply: waldo |
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
--- | |
foo: | |
bar: | |
baz: qux | |
quux: quuz | |
corge: grault | |
garply: waldo |
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
#!/usr/bin/python | |
import oyaml as yaml | |
import os | |
class FilterModule(object): | |
def filters(self): | |
return { | |
'to_yaml_preserve_order': self.to_yaml_preserve_order | |
} |
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
--- | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
creationTimestamp: null | |
name: my-configmap | |
data: | |
a-config.yaml: | | |
{{ a_config_path | to_yaml_preserve_order | indent }} | |
bconfig.yaml: | |
OlderNewer