Skip to content

Instantly share code, notes, and snippets.

View dw5's full-sized avatar
🇨🇭
Making better tasting swiss cheese for mail

dw5

🇨🇭
Making better tasting swiss cheese for mail
View GitHub Profile
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
import random
import sys
def print_same_line(text):
sys.stdout.write('\r')
sys.stdout.flush()
@dw5
dw5 / config_HighSettings.ini
Created March 12, 2018 18:59
self edited config.ini for Crazy Drive Away russian game
[OPTIONS]
HighDetail=true
ContinuousVB=true
ShowCursor=1
StencilShadows=true
ShowConsole=true
TimeSpeed=0.01
DynamicVB=true
FlySpeed=40
VideoWidth=400
@nlgxzef
nlgxzef / NFSMW-Markers.ct
Created January 25, 2018 16:38
NFSMW - Select More than 2 Markers
<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="24">
<CheatEntries>
<CheatEntry>
<ID>0</ID>
<Description>"Selectable Marker Count"</Description>
<VariableType>Byte</VariableType>
<Address>0x7B3D7D</Address>
</CheatEntry>
<CheatEntry>
@dw5
dw5 / SWINEExtraOptionsSettings.ini
Last active November 1, 2019 13:31
SWINEExtraOptionsSettings.ini
[Hotkeys] // Look at http://cherrytree.at/misc/vk.htm for key values (decimal)
AddSP = 104 // Hotkey to add SP (Default = 104 = Num8 key)
DecSP = 98 // Hotkey to decrease SP (Default = 98 = Num2 key)
AddOrDecSPAmount = 100 // Amount to add/decrease when pressed AddSP or DecSP keys. (Default = 100)
[Camera]
MaxZoomIn = -10 // Maximum zoom in value for camera. (Default = 10.0)
MaxZoomOut = 4444 // Maximum zoom out value for camera. (Default = 20.0)
MaxAngleUp = -2 // Maximum up angle value for camera. (Default = -1.13)
MaxAngleDown = 0.1 // Maximum down angle value for camera. (Default = -0.7)
#!/bin/bash
# date: 2017-11-17
# license: GPLv3 https://www.gnu.org/licenses/gpl-3.0.txt
# author: nanpuyue <[email protected]> https://blog.nanpuyue.com
echo 'install: ~/.mozilla/native-messaging-hosts/hide_titlebar.json'
[[ -d ~/.mozilla/native-messaging-hosts ]] || mkdir -p ~/.mozilla/native-messaging-hosts
cat > ~/.mozilla/native-messaging-hosts/hide_titlebar.json << EOF
{
"name": "hide_titlebar",
@dvlden
dvlden / ffmpeg.md
Last active January 3, 2025 16:28
Convert video files to MP4 through FFMPEG

This is my personal list of functions that I wrote for converting mov files to mp4!

Command Flags

Flag Options Description
-codec:a libfaac, libfdk_aac, libvorbis Audio Codec
-quality best, good, realtime Video Quality
-b:a 128k, 192k, 256k, 320k Audio Bitrate
-codec:v mpeg4, libx264, libvpx-vp9 Video Codec
@nlgxzef
nlgxzef / NFSMWExtraOptionsSettings.ini (Visual Treatment Section).txt
Last active February 2, 2025 15:06
Various Visual Treatment Settings for NFSMW Extra Options
// Various Visual Treatment Settings for NFSMW Extra Options
// WARNING: USE ONLY ONE AT A TIME
/* ---------------------------------------------------------------- */
// Default settings (EA BLACK BOX) in Extra Options
[VisualTreatment]
EnableVisualTreatmentOverride = 0 // Enables all visual treatment tweaks in this section. (0 = False (Default), 1 = True)
Red = 0.88 // Red amount for Visual Treatment. (Default = 0.88)
Green = 0.8 // Green amount for Visual Treatment. (Default = 0.8)
@hualet
hualet / how-to-get-involved-as-a-developer.md
Last active December 12, 2019 00:23
如何参与开发

介绍

deepin作为一个年轻、充满活力的发行版,越来越受到中国以及世界各地的用户以及开发者的喜爱。秉承着“让用户开箱即用”的原则, 我们不仅独立开发出轻量而又美观的深度桌面环境(DDE),而且推出了众多广受用户喜爱的深度原创应用。 在此基础之上,我们的开发者平台也在慢慢完善,希望越来越多的开发者可以参与到我们的开发过程中,把好的产品提供给所有用户。

参与方式

目前,我们提供以下方式可以让开发者参与到deepin项目中来:

import React, { Component } from 'react';
import Video from 'react-native-video';
import {
TouchableWithoutFeedback,
TouchableHighlight,
PanResponder,
StyleSheet,
Touchable,
Animated,
Easing,
@silverkorn
silverkorn / ffmpeg-nonfree-build-ubuntu-16.04.sh
Last active April 23, 2024 19:02
An automated script to build FFmpeg non-free on Debian/Ubuntu with as much features as possible. (Including mediainfo for debugging) Raw
# TODO: Verify to link statically some dependencies usually not available in a default instllation of RHEL/CentOS (ex.: libxcb)
###################
## Configuration ##
###################
FFMPEG_CPU_COUNT=$(nproc)
FFMPEG_ENABLE="--enable-gpl --enable-version3 --enable-nonfree --enable-runtime-cpudetect --enable-gray --enable-openssl --enable-libfreetype"
FFMPEG_HOME=/usr/local/src/ffmpeg