Skip to content

Instantly share code, notes, and snippets.

@sr75
sr75 / wget-jdk-oracle-install-example.txt
Last active March 16, 2023 11:28
wget command to install Oracle JAVA JDK from stupid oracle website for centos and ubuntu
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
@denji
denji / ssh-ed25519-freebsd.md
Last active December 28, 2022 13:28
Could not load host key: /etc/ssh/ssh_host_ed25519_key

Generate keys for system SSH deamon

System openssh

Generate all key types:

/etc/rc.d/sshd keygen
@iamtekeste
iamtekeste / Download Google Drive files with WGET
Created July 8, 2015 11:00
Download Google Drive files with WGET
Download Google Drive files with WGET
Example Google Drive download link:
https://docs.google.com/open?id=[ID]
To download the file with WGET you need to use this link:
https://googledrive.com/host/[ID]
Example WGET command:
@wavezhang
wavezhang / java_download.sh
Last active April 28, 2025 14:45
download java from oracle without login
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/12.0.2+10/e482c34c86bd4bf8b56c0b35558996b9/jdk-12.0.2_linux-x64_bin.tar.gz
@ephemient
ephemient / ⁄etc⁄pacman.d⁄hooks⁄linux-modules-post.hook
Last active May 24, 2024 13:13
(Arch Linux) Keep current modules around during kernel upgrade
[Trigger]
Operation = Upgrade
Type = Package
Target = linux
[Action]
Description = Restore Linux kernel modules
When = PostTransaction
Depends = coreutils
Depends = rsync
var CryptoJS = require('crypto-js')
var request = require('request-promise')
/*
* npm install crypto-js request-promise request
* node wx_t1t_hack.js
*/
// export function testEncription(msg, fullKey) {
// var fullKey = fullKey.slice(0, 16)
@Clarence-pan
Clarence-pan / hack.js
Last active March 3, 2022 11:33
微信跳一跳, 你懂得
/*
* Recommend run with node v8.9.x or higher version
* npm install lodash crypto-js request-promise request
* node hack.js
*/
const version = 5 // the version of t1t
const score = 370 // the score you wanna get
const playTimeSeconds = score * 0.01 // simulate the playing time (seconds)
@dreampuf
dreampuf / go_installation.sh
Last active September 13, 2020 02:55
How to install golang 1.11 in CentOS5
# details in: https://golang.org/doc/install/source
# a patch for centos 5 build: https://github.com/golang/go/issues/24980#issuecomment-384193598
export GOROOT="/usr/local/go"
export PATH="$GOROOT/bin:$PATH"
mkdir /usr/local/go ~/go
curl -L https://dl.google.com/go/go1.4-bootstrap-20171003.tar.gz | tar xf - -C /usr/local/go
cd /usr/local/go/src
./make.bash
curl -L https://dl.google.com/go/go1.11.src.tar.gz | tar xf - -C ~/go
@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active April 28, 2025 06:38
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized
@vorbei
vorbei / latin_cjk_font_mixer.js
Last active June 15, 2022 02:05
Sketch 中英文复合字体插件
const fontManager = [NSFontManager sharedFontManager];
const UI = require('sketch/ui');
//注意:更新后的插件版本,配置请填写 Font Family 名称,请不要再选择 Postscript 名称
//顺序:英文字体,中文字体,数字字体(请依照自己安装的字体和喜好配置)
const options = {
'SF, 苹方, Mono':
'SF Pro Text, PingFang SC, SF Mono',
'Arial, 微软雅黑':
'Arial, Microsoft YaHei',
'New York, 思源宋体':